[Zope-dev] LONG int breaks mysqlUserfolder

2001-02-18 Thread francine broekhove

Hi,

i wonder if this is where i should post this message?

Anyway, i've been upgrading my zope from 2.1.6 (python 1.5.2)  to zope 2.3.0src (with 
Python 2.0). I changed my Mysqlda to the latest version (in which a long definition 
has replaced the previous int). 

I breaks any application that uses indexes (int) in a mysql database, like f.i. my 
tree tag (see previous posts) and f.i. the mysqlUserfolder product.

Can anyone tell me how to get int working again without the 'L' using mysqlUserfolder. 
Note - i use Python 2.0 but still get the same problem.
What am i doing wrong?

Greetings Francine

_
Get Your Private, Free Email at A HREF="http://www.burningmail.com" 
target="_new"http://www.BurningMail.com/A

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] LONGing for normal integers... the sequal

2001-02-16 Thread francine broekhove

Hi guys,

after solving the problem with the long integers (thanx) there's another related 
incident happening with the tree tag. 

I've used the tree tag according to the 'book' like:
dtml-tree id=search_id branches_expr="sql.zt_child_lookup(parent_id=search_id)" ... 
/dtml-tree

The Mysqlda returns again something incompatible  (couldn't it simply be handled in 
the Mysqlda code for downward compatibility reasons?) so i get:

'call of non-function (type long int)' which kills the zope function, with Info: 
(['E5M=', []], {'childless_decoration': '', 'id': 'search_id', 
'branches_expr': method Eval.eval of Eval instance at 0x899ea4c, 'url': 'tpURL'}, 
(['E5M=', []],), (['E5M=', []],)))

Trying to fix it with an adjusted ('_.int(search_id)' didn't work, which is hardly 
surpricing as i do not know what i'm doing in the first place when the tree tag is 
involved.


So again LONGing (..the E5M seems somehow appropriate ..). In the mean time 
i'm trying to figure it out. Will keep you posted.

(zope 2.3.0.src, python 2.0, MySQL-python-0.3.2, MySQL 3.23, Z MySQL DA 2.0.0)

_
Get Your Private, Free Email at A HREF="http://www.burningmail.com" 
target="_new"http://www.BurningMail.com/A

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] LONGing for normal integers ...

2001-02-10 Thread francine broekhove

Hi everyone,

i've updated my Zope (finaly) and my Python and my Linux (have been bussy). But, 
trying to fire up my 'old' applications in Zope, mostly connected to MySQL databases, 
i get an annoying 'L' behind every integer.

All my indexes are integers. I could rewrite all my dtml to include _.int(integer) or 
something, but that seems completely stupid. Isn't there a more 'central' way to solve 
this. F.i. should i adapt some python types? Does anyone know what is wrong and how to 
fix this?

Thanx (a million)
Francine

_
Get Your Private, Free Email at A HREF="http://www.burningmail.com" 
target="_new"http://www.BurningMail.com/A

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Unsupported UserDb LoginRequired bug

2000-11-19 Thread francine broekhove

Hi everyone,

i know UserDb is not supported, but ...
I need a userlogin system on zope 2.1.6. and gave it a try with UserDb 1.3.0. It 
'seemed' (spooky stuff this authentication) to work fine, until i moved a folder it 
resided in. 
Now i get the usual (it's been mentioned as from around august 1999 in these lists - 
i've not found a solution for it helping anyone who has gone before me - who thought 
up UserDb anyway? :-(   ):


Traceback (innermost last):
  File /usr/local/bin/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in 
publish_module
  File /usr/local/bin/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in 
publish
  File /usr/local/bin/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in 
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /usr/local/bin/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 151, in 
publish
  File /usr/local/bin/Zope-2.1.6-src/lib/python/ZPublisher/BaseRequest.py, line 430, 
in traverse
  File /usr/local/bin/Zope-2.1.6-src/lib/python/Products/UserDb/UserDb.py, line 289, 
in validate
(Object: RoleManager)
  File /usr/local/bin/Zope-2.1.6-src/lib/python/Products/UserDb/UserDb.py, line 264, 
in cookie_validate
(Object: RoleManager)
LoginRequired: (see above)

I'd like to know why as i'm trying for two days now to get it fixed somehow - to those 
who experienced the same my heart goes out to you - you should go out and have fun 
instead, like i should.

HELP, anyone?

Greetings Francine

_
Get Your Private, Free Email at A HREF="http://www.burningmail.com" 
target="_new"http://www.BurningMail.com/A

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )