RE: [Zope-dev] Another bug in DA.py?

2000-06-23 Thread Brian Lloyd

 After trying this with version 2.2.0b2 I became the following 
 result: Error, Unauthorized, NoBrains

  If I try the following ZSQL method it displays de authorization
  window:
  dtml-let Cl="get_Cliente(N_='22606')[0]"
  select * from Cliente where N_='22606'
  /dtml-let
  but if I try the next ZSQL method it displays the correct result
(the
  difference is theinteger index in the first line):
  dtml-let Cl="get_Cliente(N_='22606')"
  select * from Cliente where N_='22606'
  /dtml-let
  As you can see the "dtml-let" isn't usefull, but this is a
simplified
  example.
  For reference here is the get_Cliente ZSQL method:
  select * from Cliente where dtml-sqltest N_ type=string
  Very simple.
  Thank you in advance.

Juan - I'm not sure what's going on here. I can't reproduce this 
here no matter what I do :( I've tried using Gadfly and MySQL, and 
doing this works fine for me, both trying it anonymously and as 
a manager. I'm assuming that you did a fresh, from-scratch 2.2beta2
install and that if you are using source release you rebuild your 
binaries when you upgraded?

Brian Lloyd[EMAIL PROTECTED] 
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 


___
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] Another bug in DA.py?

2000-06-22 Thread Brian Lloyd

 If I try the following ZSQL method it displays de authorization
window:
 dtml-let Cl="get_Cliente(N_='22606')[0]"
 select * from Cliente where N_='22606'
 /dtml-let
 but if I try the next ZSQL method it displays the correct result (the
difference is theinteger index in the first line):
 dtml-let Cl="get_Cliente(N_='22606')"
 select * from Cliente where N_='22606'
 /dtml-let
 As you can see the "dtml-let" isn't usefull, but this is a simplified
example.
 For reference here is the get_Cliente ZSQL method:
 select * from Cliente where dtml-sqltest N_ type=string
 Very simple.
 Thank you in advance.

Juan - 

This is due to a missing declaration in the Results and Record objects 
returned by SQL Methods. It is fixed in beta 2 (which I hope to release 
by tomorrow at the latest).


Brian Lloyd[EMAIL PROTECTED] 
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 


___
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 )