Re: [Zope] How manage error with zsql

2008-12-06 Thread Dieter Maurer
robert rottermann wrote at 2008-12-6 17:15 +0100: >I think you should write in a python script: > >try: > result = context.insert_data.zsql I expect (at least) two errors here. "context.insert_data()" has a chance to work. > msg = 'data inserted' >except ZeroDivisionError: > msg = 'ZeroDivisi

Re: [Zope] Multiple zope instances using the same storage

2008-12-06 Thread robert rottermann
Mark Gibson schrieb: > I have an unusual setup. I have 4 distinct Zope instances (4 seperate > Data.fs'). Each Data.fs is identical - Data is kept in a RDBMS. I have > a product I need to install that stores data in the ZODB. This data is > stored in one folder. > > Now, I *think* I can sim

[Zope] Multiple zope instances using the same storage

2008-12-06 Thread Mark Gibson
I have an unusual setup. I have 4 distinct Zope instances (4 seperate Data.fs'). Each Data.fs is identical - Data is kept in a RDBMS. I have a product I need to install that stores data in the ZODB. This data is stored in one folder. Now, I *think* I can simply mount this folder in each ZOD

Re: [Zope] How manage error with zsql

2008-12-06 Thread Andreas Jung
** *Line 2* Unauthorized: You are not allowed to access 'type' in this context I think this is a know issue and be have a bugreport + patch already for that within the Launchpad bugtracker. However I cant the ticket number right now. Andreas begin:vcard fn:Andreas Jung n:Jung

Re: [Zope] How manage error with zsql

2008-12-06 Thread robert rottermann
hi, I think you should write in a python script: try: result = context.insert_data.zsql msg = 'data inserted' except ZeroDivisionError: msg = 'ZeroDivisionError occured' return msg and in your tal you write: > >tal:content="context/MyPythonscript"> > > > allways try to put lo

Re: [Zope] Guestbook example app stops working

2008-12-06 Thread Bernard Devlin
I think I've worked out what is happening. I'm assuming that the index_html is written in ZPT; when edited TTW via the ZMI the "expand macros when editing" is checked, so I guess the various TAL features are being removed (hence it works until it is saved, and after that the dynamic parts are miss