Mailing List Archive

Python BSCW Server Error AttributeError: altzone
I am running BSCW on SuSE Linux 5.3 with Apache 1.3. The BSCW will
allow logins and creation of users but when ever a user whether they
are an Admin or just na ordinary user tries to create a folder the
following happens.

Unanticipated Error (BSCW Release 990623-1553):
Traceback (innermost last):
File "wrapped", line 16, in ?
cl_request.run('bs_cgi')
File "BSCW3/pyc15/cl_request.py", line 1351, in run
File "BSCW3/pyc15/cl_request.py", line 801, in handle_rq
File "BSCW3/pyc15/cl_request.py", line 891, in handle_it
File "BSCW3/pyc15/op_get.py", line 65, in handle_GET
File "BSCW3/pyc15/cl_core.py", line 1166, in get
File "BSCW3/pyc15/bs_container.py", line 150, in get
File "BSCW3/pyc15/bs_container.py", line 274, in visible_entries
File "BSCW3/pyc15/bs_container.py", line 274, in <lambda>
File "BSCW3/pyc15/cl_core.py", line 98, in get_as_entry
File "BSCW3/pyc15/cl_core.py", line 946, in get_as_entry
File "BSCW3/pyc15/bs_artifact.py", line 261, in get_as_entry
File "BSCW3/pyc15/bs_artifact.py", line 91, in get_entry_params
File "BSCW3/pyc15/bs_interface.py", line 438, in event_msg
File "BSCW3/pyc15/bs_utils.py", line 304, in relative_time
File "BSCW3/pyc15/cl_request.py", line 295, in localtime
File "BSCW3/pyc15/cl_request.py", line 914, in __getattr__
File "BSCW3/pyc15/cl_request.py", line 1200, in def_timezone

AttributeError: altzone

Once this has happens that user is no longer able to log into the server.

Whne you try to edit details of the user, as an admin user you get

Unanticipated Error (BSCW Release 990623-1553):
Traceback (innermost last):
File "wrapped", line 16, in ?
cl_request.run('bs_cgi')
File "BSCW3/pyc15/cl_request.py", line 1351, in run
File "BSCW3/pyc15/cl_request.py", line 801, in handle_rq
File "BSCW3/pyc15/cl_request.py", line 891, in handle_it
File "BSCW3/pyc15/op_chdetails.py", line 118, in handle_GET
File "BSCW3/pyc15/cl_request.py", line 914, in __getattr__
File "BSCW3/pyc15/cl_request.py", line 1188, in def_localtime_now
File "BSCW3/pyc15/cl_request.py", line 295, in localtime
File "BSCW3/pyc15/cl_request.py", line 914, in __getattr__
File "BSCW3/pyc15/cl_request.py", line 1200, in def_timezone
AttributeError: altzone

A user account may be deleted but then if you try to recreate that user
with the same email address the server won't accept the address.

Since the BSCW server was written in python I thaught that some one on
this list might have experience of this problem.
_________________________________________________________________
Visit my website at http://snet.wit.ie/kieran
Python BSCW Server Error AttributeError: altzone [ In reply to ]
Kieran O' Sullivan wrote:
>
> I am running BSCW on SuSE Linux 5.3 with Apache 1.3. The BSCW will
> allow logins and creation of users but when ever a user whether they
> are an Admin or just na ordinary user tries to create a folder the
> following happens.
>
> Unanticipated Error (BSCW Release 990623-1553):
> Traceback (innermost last):
> File "wrapped", line 16, in ?
> cl_request.run('bs_cgi')
> File "BSCW3/pyc15/cl_request.py", line 1351, in run
> File "BSCW3/pyc15/cl_request.py", line 801, in handle_rq
> File "BSCW3/pyc15/cl_request.py", line 891, in handle_it
> File "BSCW3/pyc15/op_get.py", line 65, in handle_GET
> File "BSCW3/pyc15/cl_core.py", line 1166, in get
> File "BSCW3/pyc15/bs_container.py", line 150, in get
> File "BSCW3/pyc15/bs_container.py", line 274, in visible_entries
> File "BSCW3/pyc15/bs_container.py", line 274, in <lambda>
> File "BSCW3/pyc15/cl_core.py", line 98, in get_as_entry
> File "BSCW3/pyc15/cl_core.py", line 946, in get_as_entry
> File "BSCW3/pyc15/bs_artifact.py", line 261, in get_as_entry
> File "BSCW3/pyc15/bs_artifact.py", line 91, in get_entry_params
> File "BSCW3/pyc15/bs_interface.py", line 438, in event_msg
> File "BSCW3/pyc15/bs_utils.py", line 304, in relative_time
> File "BSCW3/pyc15/cl_request.py", line 295, in localtime
> File "BSCW3/pyc15/cl_request.py", line 914, in __getattr__
> File "BSCW3/pyc15/cl_request.py", line 1200, in def_timezone
>
> AttributeError: altzone

This is a (known ?) error in the 1.5.2 release of Python. It only
shows up on libc5 systems. Here is the patch:

--- /home/lemburg/orig/Python-1.5.2/Modules/timemodule.c Mon Apr 5 23:54:14 1999
+++ Modules/timemodule.c Mon Apr 26 21:03:02 1999
@@ -614,11 +614,11 @@ inittime()
p = getenv("PYTHONY2K");
ins(d, "accept2dyear", PyInt_FromLong((long) (!p || !*p)));
/* Squirrel away the module's dictionary for the y2k check */
Py_INCREF(d);
moddict = d;
-#if defined(HAVE_TZNAME) && !defined(__GNU_LIBRARY__)
+#if defined(HAVE_TZNAME) && !defined(__GLIBC__)
tzset();
#ifdef PYOS_OS2
ins(d, "timezone", PyInt_FromLong((long)_timezone));
#else /* !PYOS_OS2 */
ins(d, "timezone", PyInt_FromLong((long)timezone));
@@ -632,11 +632,11 @@ inittime()
ins(d, "altzone", PyInt_FromLong((long)timezone-3600));
#endif /* PYOS_OS2 */
#endif
ins(d, "daylight", PyInt_FromLong((long)daylight));
ins(d, "tzname", Py_BuildValue("(zz)", tzname[0], tzname[1]));
-#else /* !HAVE_TZNAME || __GNU_LIBRARY__ */
+#else /* !HAVE_TZNAME || __GLIBC__ */
#ifdef HAVE_TM_ZONE
{
#define YEAR ((time_t)((365 * 24 + 6) * 3600))
time_t t;
struct tm *p;
@@ -681,11 +681,11 @@ inittime()
ins(d, "altzone", PyInt_FromLong(timezone));
ins(d, "daylight", PyInt_FromLong((long)0));
ins(d, "tzname", Py_BuildValue("(zz)", "", ""));
#endif /* macintosh */
#endif /* HAVE_TM_ZONE */
-#endif /* !HAVE_TZNAME || __GNU_LIBRARY__ */
+#endif /* !HAVE_TZNAME || __GLIBC__ */
if (PyErr_Occurred())
Py_FatalError("Can't initialize time module");
}

--
Marc-Andre Lemburg
______________________________________________________________________
Y2000: 150 days left
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/