Re: [Zope] sql query results - DTML method problem
#8 dtml-in expr="findClassTitle(code=52.139)" you might wanna try either dtml-in expr="findClassTitle(code=_['class_code'])" or dtml-in expr="findClassTitle(code=_.getitem('class_code'))" dtml-in expr="findClassTitle(code=dtml-var class_code)" *** syntax error regards. -- pashah ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] REQUEST.set('n', n+1) broken on zope.org
Maybe you should try this with the "" ie dtml-call "REQUEST.set('n', 1)" dtml-call "REQUEST.set('n', n+1)" regards. -- Pavel Cosmos-Mebel, JSC. http://www.cosmos-mebel.spb.ru - Original Message - From: "Richard Jones" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 5 ??? 2000 ?. 9:16 Subject: [Zope] REQUEST.set('n', n+1) broken on zope.org As the subject says, REQUEST.set('n', n+1) is broken on zope.org. The following DTML will raise an AttributeError on __add__: dtml-call REQUEST.set('n', 1) dtml-call REQUEST.set('n', n+1) Is this a permanent change and is this going into the Zope codebase? Richard -- Richard Jones [EMAIL PROTECTED] Senior Software Developer, Bizar Software www.bizarsoftware.com.au ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help with Nested ZSQL methods
try calling like this : dtml-in "sql_get_items(_.None,_)" also you might what to use dmt-sql var instead of dtml-var inside ZAQL Methods. regards -- pashah Here's the operative part of the dtml method that calls these methods: == dtml-in sql_get_schedules TABLE BORDER="3" TRTHItem No./THTHDescription/THTHMn/DOT No./THTHUnits/TH/TR dtml-in sql_get_items TR TDdtml-var ItemNo/TD TDdtml-var Description/TD TDdtml-var MnDOTNo/TD TDdtml-var UnitDescription/TD /TR dtml-in TABLE /dtml-in == I get the error: Error Type: Bad Request Error Value: ['SchedID'] I suspect there is some type of namespace-related problem going on here where the var SchedID is not getting passed to the internal ZSQL method. P. Johnson ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZODBC configuration problems
sources I receive the error "Invalid connection string" except for one of If you are using the last ZODBCDA there should be no problems granted that you have provided the proper connection string. check the connection object, there sould be written down smth. like 'datasource login pass' or 'datasource pass login' I don`t remember exactly. regards. -- pashah ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope and Windows DB's = NOT! ?
is anybody successfully using a Windows DB such as MS SQL server 7 with Zope? i`ve been using it with MS SQL6.5 1,5 year, no problem... it seems that the ODBC adaptor is ancient and very error prone so can i conclude that Zope and DB integration under windows is not an option? Hmm... are you talking about ZODBCDA 3.0.3 or ZmxODBCDA 0.0.1 ? I`ve had some problems with ZmxODBCDA but it is only 0.0.1, younger versions of ZODBCDA were error prone, 3.0.3 is very good. regards. -- Pavel Cosmos-Mebel, JSC. http://cosmos-mebel.spb.ru ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )