Discussion:
[Erp5-dev] problem when add 'ERP5 Site'
gt
2007-12-07 16:31:58 UTC
Permalink
Hi all

Again, I encounter a new problem when I add ERP5 Site in ZMI. After I
clicked the button 'Create a new ERP5 Site instance', for a little
while, the browser show me a login box, the same as when first visit
ZMI. But when I input admin's username and password and click OK to
login, it show the login box again and again until I click CANCEL.
There is no exception in error_log after I CANCEL the login. Is it the
normal?

BTW, I've changed two piece of code to let the ERP5 product installed
without errors.

1, because I use the regular zope (2.8.8 for Windows, I patched the
required patch by myself) download from zope.org, it carry a
python2.3. It seems that the __name__ attribute cannot be changed in
Py2.3, so I wrap a 'try...except' in this code in
/Products/ERP5/ERP5Site.py, like below
try:
manage_addERP5SiteForm.__name__ = 'addERP5Site'
except TypeError:
pass

2, because I install erp5 in windows, the filepath include the disk
label, such as "D:\...". In source /Products/ERP5/Tool/TemplateTool.py
line 329:
if os.path.isdir(name):
This code cannot judge whether the 'name' is a windows path, because
the 'name' only include the path without disk label. I simply changed
the code (not logically) to
if os.path.isdir(name) or urltype.lower()!='http':
In my situation, the 'urltype' include the disk label, such as 'D'.

I'm not sure whether this two changes was the root cause of the
repeated appearance of the login box. Anyone could let me leave this
maze.

Thanks!

gt
--
We're paratroopers, we're supposed to be surrounded.
gt
2007-12-09 15:04:48 UTC
Permalink
I try all again, this time I installed ERP5 in my linux box. The same
problem occured without changes of source code. Additionally, there
are many warning in log file like this:

WARNING createPreferenceToolAccessor Preference type information is
not installed.

Is it related to repeated ask for login?

Thanks!

gt
Post by gt
Hi all
Again, I encounter a new problem when I add ERP5 Site in ZMI. After I
clicked the button 'Create a new ERP5 Site instance', for a little
while, the browser show me a login box, the same as when first visit
ZMI. But when I input admin's username and password and click OK to
login, it show the login box again and again until I click CANCEL.
There is no exception in error_log after I CANCEL the login. Is it the
normal?
BTW, I've changed two piece of code to let the ERP5 product installed
without errors.
1, because I use the regular zope (2.8.8 for Windows, I patched the
required patch by myself) download from zope.org, it carry a
python2.3. It seems that the __name__ attribute cannot be changed in
Py2.3, so I wrap a 'try...except' in this code in
/Products/ERP5/ERP5Site.py, like below
manage_addERP5SiteForm.__name__ = 'addERP5Site'
pass
2, because I install erp5 in windows, the filepath include the disk
label, such as "D:\...". In source /Products/ERP5/Tool/TemplateTool.py
This code cannot judge whether the 'name' is a windows path, because
the 'name' only include the path without disk label. I simply changed
the code (not logically) to
In my situation, the 'urltype' include the disk label, such as 'D'.
I'm not sure whether this two changes was the root cause of the
repeated appearance of the login box. Anyone could let me leave this
maze.
Thanks!
gt
--
We're paratroopers, we're supposed to be surrounded.
--
We're paratroopers, we're supposed to be surrounded.
Loading...