Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Applet broken in yesterdays and todays cvs HEAD

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Hide all messages in topic

All messages in topic

Re: Applet broken in yesterdays and todays cvs HEAD

Reply

Author draco <manannan at cfl dot rr dot com>
Full name draco <manannan at cfl dot rr dot com>
Date 2003-06-17 15:37:09 PDT
Message On Tue, Jun 17, 2003 at 11:50:01PM +0300, Tuomo Soini wrote dev:
> current.log
> Traceback (most recent call last):
> File "/usr/share/current/​current_apache.py", line 301, in callAPIMethod
> result = apply(func, params)
> File "/usr/share/current/​api/applet.py", line 25, in poll_status
> return resultr
> NameError: global name 'resultr' is not defined
s/resultr/result/

alternately, apply this patch:

$ cvs diff
Index: applet.py
====================​====================​====================​=======
RCS file: /cvs/current/src/api​/applet.py,v
retrieving revision 1.3
diff -u -r1.3 applet.py
--- applet.py 16 Jun 2003 18:05:58 -0000 1.3
+++ applet.py 17 Jun 2003 22:36:24 -0000
@@ -22,7 +22,7 @@
     result = {}
     result['checkin_interval'] = 15360
     result['server_status'] = 'normal'
- return resultr
+ return result


 def poll_packages(release, arch, last_checkin, uuid):



--
draco
"I know you think you thought you knew what you thought I said,
but I'm not sure you understood what you thought I meant." -- fortune
Attachments

Applet broken in yesterdays and todays cvs HEAD

Reply

Author bleve
Full name Tuomo Soini
Date 2003-06-17 13:50:01 PDT
Message Here is some logs:

current.log

Jun 17 23:39:03 Requesting: applet.poll_status
Jun 17 23:39:03 with params = []
Jun 17 23:39:03 method = applet.poll_status
Jun 17 23:39:03 module = applet
Jun 17 23:39:03 function = poll_status
Jun 17 23:39:03 (/usr/share/current/​current_apache.py, callAPIMethod(),
296): pa
rams = []
Jun 17 23:39:03 Dispatching: applet.poll_status
Jun 17 23:39:03 ERROR: Recognized function applet.poll_status blew up
with undef
ined error
Jun 17 23:3903 : EXCEPTION in /usr/share/current/c​urrent_apache.py,
callAPIMetho
d(), 315 [logException()]
Traceback (most recent call last):
   File "/usr/share/current/​current_apache.py", line 301, in callAPIMethod
     result = apply(func, params)
   File "/usr/share/current/​api/applet.py", line 25, in poll_status
     return resultr
NameError: global name 'resultr' is not defined
Jun 17 23:39:03 exception said: global name 'resultr' is not defined
Jun 17 23:39:03 params were: []
Jun 17 23:39:03 Result is a Fault
Jun 17 23:39:03 (/usr/share/current/​current_apache.py,
sendClientResult(), 249):
  Data sent.
Jun 17 23:39:03 sendClientResult() finished

apache error_log:

[Tue Jun 17 22:38:30 2003] [error] [client 62.236.96.206] PythonHandler
current_apache: Traceback (most recent call last):
[Tue Jun 17 22:38:30 2003] [error] [client 62.236.96.206] PythonHandler
current_apache: File "/usr/lib/python2.2/​site-packages/mod
_python/apache.py", line 323, in HandlerDispatch! module =
import_module(module_name, config)
[Tue Jun 17 22:38:30 2003] [error] [client 62.236.96.206] PythonHandler
current_apache: File "/usr/lib/python2.2/​site-packages/mod
_python/apache.py", line 502, in import_module! module =
imp.load_module(mname, f, p, d)
[Tue Jun 17 22:38:30 2003] [error] [client 62.236.96.206] PythonHandler
current_apache: File "/usr/share/current/​current_apache.py
", line 37, in ?! from api import *
[Tue Jun 17 22:38:30 2003] [error] [client 62.236.96.206] PythonHandler
current_apache: ImportError: No module named api


--
Tuomo Soini <tis at foobar dot fi>
Foobar Oy <http://foobar.fi/>


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe@curr​ent.tigris.org
For additional commands, e-mail: dev-help at current dot tigris dot org
Messages per page: