Hi, i can not manage to add a ZSQLMethod. I tried to change a Codesnifflet i found (which works fine): <dtml-call "REQUEST.set('ts', ZopeTime())"> <dtml-call "REQUEST.set('Autoid',_.str(_.int(ts)))"> <dtml-call "REQUEST.set('item_title','mytitle')"> <dtml-call "REQUEST.set('item_body','mybody')"> <dtml-call "manage_addDTMLMethod(id=Autoid,title=item_title,file=item_body)"> to : <dtml-call "REQUEST.set('ts', ZopeTime())"> <dtml-call "REQUEST.set('Autoid',_.str(_.int(ts)))"> <dtml-call "REQUEST.set('item_title','mytitle')"> <dtml-call "REQUEST.set('connection_id','myconnection')"> <dtml-call "REQUEST.set('arg','personId')"> <dtml-call "REQUEST.set('item_body','select * from somewhere')"> <dtml-call "manage_addZSQLMethod(Autoid,item_title,connection_id,arg,item_body)"> but i cant find why it doesn't work?! Thanx Dorian
Hi,
<dtml-call "REQUEST.set('ts', ZopeTime())"> <dtml-call "REQUEST.set('Autoid',_.str(_.int(ts)))"> <dtml-call "REQUEST.set('item_title','mytitle')"> <dtml-call "REQUEST.set('connection_id','myconnection')"> <dtml-call "REQUEST.set('arg','personId')"> <dtml-call "REQUEST.set('item_body','select * from somewhere')">
<dtml-call "manage_addZSQLMethod(Autoid,item_title,connection_id,arg,item_body)">
****** Please post the exact error message you receive when you post a question. Please don't just say "it doesn't work" ****** You want <dtml-call "manage_addProduct['ZSQLMethods'].manage_addZSQLMethod(Autoid,item_title,con nection_id,arg,item_body)"> for the last line.
dorian santner writes:
i can not manage to add a ZSQLMethod. ... <dtml-call "manage_addZSQLMethod(Autoid,item_title,connection_id,arg,item_body)">
but i cant find why it doesn't work?!
Try: "manage_addProduct['ZSQLMethod'].manage_addZSQLMethod(....)" Dieter
participants (3)
-
Dieter Maurer -
dorian santner -
Joel Burton