[Zope] have problem with managing objects within a external product

2007-03-09 Thread Allen Huang
I made a simple product using python that stores some varibles, but I couldn't make it acts like a folderish, stores objects, and have a content tab page using manage_main like when I use to have when I use internal product. I reviewed the tutorials on how to make internal products and I found t

Re: [Zope] have problem with managing objects within a external product

2007-03-09 Thread Andreas Jung
--On 9. März 2007 00:01:50 -0800 Allen Huang <[EMAIL PROTECTED]> wrote: I made a simple product using python that stores some varibles, but I couldn't make it acts like a folderish, stores objects, and have a content tab page using manage_main like when I use to have when I use internal produc

Re: [Zope] Two mysql / timestamp related fixes

2007-03-09 Thread Tino Wildenhain
Gaute Amundsen schrieb: On Thursday 08 March 2007 17:27, Tino Wildenhain wrote: Gaute Amundsen schrieb: Hi. 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisting of only "") Thats a very bad idea. Better make zsql methods for every query I know the orthod

[Zope] No space left on device

2007-03-09 Thread tonylabarbara
Hi; I'm moving everything over to a new server because the old server's OS is corrupt. I've d'l'd a 300MB *.zexp file from the old server. (I have to d'l it to my PC over a slow satellite connection, then upload it to the new server because of the corruption.) When I went to install it, I got th

Re: [Zope] Calling a Variable

2007-03-09 Thread Tino Wildenhain
Martijn Pieters schrieb: On 3/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: Incorrect, you can only use ? to interpolate variables into a path expression: Th

Re: [Zope] No space left on device

2007-03-09 Thread Andreas Jung
--On 9. März 2007 03:45:05 -0500 [EMAIL PROTECTED] wrote: Hi; I'm moving everything over to a new server because the old server's OS is corrupt. I've d'l'd a 300MB *.zexp file from the old server. (I have to d'l it to my PC over a slow satellite connection, then upload it to the new server bec

Re: [Zope] Calling a Variable

2007-03-09 Thread Martijn Pieters
On 3/9/07, Tino Wildenhain <[EMAIL PROTECTED]> wrote: I notice ZPT gets weirder and weirder... How many syntactic specialities will we add to path expressions? ;) ?var interpolation have been supported since the first checkin Evan Simpson made nearly 6 years ago, the feature has been a bit unde

[Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Remil Mathew
Hi, How can run multiple query in an Z sql method.. I am using Mysql.. Also is there any method to return a value from insert query? Thanks Remil ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] No space left on device

2007-03-09 Thread tonylabarbara
-Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; zope@zope.org Sent: Fri, 9 Mar 2007 4:49 AM Subject: Re: [Zope] No space left on device --On 9. März 2007 03:45:05 -0500 [EMAIL PROTECTED] wrote: > > Hi; > > I'm moving everything over to a new server because the old

Re: [Zope] No space left on device

2007-03-09 Thread Maciej Wisniowski
> Where? I added this line to zopectl and rebooted: > TMPDIR="/usr/local/zope/tmp" > (usr has plenty of space) but it didn't help. TMPDIR="/usr/local/zope/tmp" export TMPDIR also there is df -h command that shows free space on devices, you may use this to observe how it changes while importing

[Zope] CMF 2.1.0-beta released

2007-03-09 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The CMF developer community is hereby announcing the release of CMF version 2.1.0-beta. The CMF 2.1 series will be used as the foundation for the Plone 3.0 release, which will see its first beta over the next few days as well. What is the CMF? The

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Andreas Jung
--On 9. März 2007 14:42:57 +0530 Remil Mathew <[EMAIL PROTECTED]> wrote: Hi, How can run multiple query in an Z sql method.. Sure. SQL Statement just have to separated by . I am using Mysql.. Also is there any method to return a value from insert query? An insert statement does not retu

Re: [Zope] No space left on device

2007-03-09 Thread Tino Wildenhain
Maciej Wisniowski schrieb: Where? I added this line to zopectl and rebooted: rebooted? Lets hope you only restartet zope :-) Regards Tino ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML en

Re: [Zope] No space left on device

2007-03-09 Thread tonylabarbara
Right, restarted. But it didn't work, Tino. Any ideas? -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: zope@zope.org Sent: Fri, 9 Mar 2007 6:28 AM Subject: Re: [Zope] No space left on device Maciej Wisniowski schrieb: > >> Where? I added this line to zopectl and r

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Tino Wildenhain
Andreas Jung schrieb: --On 9. März 2007 14:42:57 +0530 Remil Mathew <[EMAIL PROTECTED]> wrote: Hi, How can run multiple query in an Z sql method.. Sure. SQL Statement just have to separated by . I am using Mysql.. Also is there any method to return a value from insert query? An insert

Re: [Zope] Calling a Variable

2007-03-09 Thread Chris Withers
[EMAIL PROTECTED] wrote: Hi; I thought I could call a variable in a page template by defining it and then putting a ? in front of it in a URL, like this: template_id string:index; here python:here.restrictedTraverse('s/c/x/root/en-us/Help')"> redefining 'here' isn't a good idea... I th

Re: [Zope] Calling a Variable

2007-03-09 Thread Chris Withers
Tino Wildenhain wrote: I notice ZPT gets weirder and weirder... It's always been that weird ;-) If you want sanity, try Twiddler instead :-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk __

Re: [Zope] Two mysql / timestamp related fixes

2007-03-09 Thread Gaute Amundsen
On Friday 09 March 2007 09:40, Tino Wildenhain wrote: > Gaute Amundsen schrieb: > > On Thursday 08 March 2007 17:27, Tino Wildenhain wrote: > >> Gaute Amundsen schrieb: > >>> Hi. > > > > > > > >>> 1 ) > >>> First I got a ValueError 'query' when using a very simple zsql method. > >>> (consisting of

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Gaute Amundsen
On Friday 09 March 2007 10:12, Remil Mathew wrote: > Hi, > How can run multiple query in an Z sql method.. I am using Mysql.. > Also is there any method to return a value from insert query? > > Thanks > Remil could you possibly be thinking of? insert foo into bar SELECT LAST_INSERT_ID() gaute

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Jary Busato
Yes, I must do it when I need to know an autonumber PK after an insert. when DB support transaction i write: begin transaction insert foo into bar SELECT LAST_INSERT_ID() as lastid commit Then, a DTML method:   Make the insert and write the id returned by the select. Illorca Gaute Amun

Re: [Zope] Two mysql / timestamp related fixes

2007-03-09 Thread Tino Wildenhain
Gaute Amundsen schrieb: On Friday 09 March 2007 09:40, Tino Wildenhain wrote: Gaute Amundsen schrieb: On Thursday 08 March 2007 17:27, Tino Wildenhain wrote: Gaute Amundsen schrieb: Hi. 1 ) First I got a ValueError 'query' when using a very simple zsql method. (consisting of only "") Tha

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Andreas Jung
--On 9. März 2007 15:30:23 +0100 Jary Busato <[EMAIL PROTECTED]> wrote: Yes, I must do it when I need to know an autonumber PK after an insert. when DB support transaction i write: begin transaction insert foo into bar SELECT LAST_INSERT_ID() as lastid commit Sorry, but you must be crazy

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Jary Busato
My only need is to be sure to keep the right id; I did'nt use this method for other operations. You sayd that it's not recommended but I don't understand why in this simple context. Andreas Jung ha scritto: --On 9. März 2007 15:30:23 +0100 Jary Busato <[EMAIL PROTECTED]> wrote: Yes, I must

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Marco Bizzarri
On 3/9/07, Jary Busato <[EMAIL PROTECTED]> wrote: Yes, I must do it when I need to know an autonumber PK after an insert. when DB support transaction i write: begin transaction insert foo into bar SELECT LAST_INSERT_ID() as lastid commit Then, a DTML method: Make the insert an

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Jary Busato
If I understood you're telling me that begin and commit statements are "redundant". Sometimes conflicts are not correctly managed by ZTM (no rollbacks in db) Marco Bizzarri ha scritto: On 3/9/07, Jary Busato <[EMAIL PROTECTED]> wrote: Yes, I must do it when I need to know an autonumber PK af

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Tino Wildenhain
Jary Busato schrieb: If I understood you're telling me that begin and commit statements are "redundant". No in this case they would be an error. Sometimes conflicts are not correctly managed by ZTM (no rollbacks in db) Examples? Which bug reports? Regards Tino _

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Andreas Jung
--On 9. März 2007 16:45:56 +0100 Jary Busato <[EMAIL PROTECTED]> wrote: My only need is to be sure to keep the right id; I did'nt use this method for other operations. You sayd that it's not recommended but I don't understand why in this simple context. Simple or complex context..that does

Re: [Zope] can not install ZMySQLDA

2007-03-09 Thread Daniel
Sorry! I'm new to this fields. Where can I change this "PYTHON_EGG_CACHE"? Is it in zope.conf? I can not find it. Thanks, -DY On Thu, March 8, 2007 10:28 pm, Maciej Wisniowski wrote: > >> I already change the permission. >> 8 drwxrwxrwx 4 zope zope 4096 Mar 7 22:13 .python-eggs >> The result

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Marco Bizzarri
On 3/9/07, Jary Busato <[EMAIL PROTECTED]> wrote: If I understood you're telling me that begin and commit statements are "redundant". Yes, exactly: they are issued by Zope at the boundaries of a transaction. Sometimes conflicts are not correctly managed by ZTM (no rollbacks in db) Are you u

Re: [Zope] can not install ZMySQLDA

2007-03-09 Thread Andreas Jung
--On 9. März 2007 08:19:50 -0800 Daniel <[EMAIL PROTECTED]> wrote: Sorry! I'm new to this fields. Where can I change this "PYTHON_EGG_CACHE"? Is it in zope.conf? I can not find it. PYTHON_EGG_CACHE is an environment variable and has nothing to do with Zope. -aj pgpg8H33YRPNw.pgp Descript

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Marco Bizzarri
On 3/9/07, Jary Busato <[EMAIL PROTECTED]> wrote: Marco Bizzarri ha scritto: > On 3/9/07, Jary Busato <[EMAIL PROTECTED]> wrote: >> If I understood you're telling me that begin and commit statements are >> "redundant". > > Yes, exactly: they are issued by Zope at the boundaries of a transaction.

Re: [Zope] How can run multiple query in an Z sql method

2007-03-09 Thread Maciej Wisniowski
>> If I understood you're telling me that begin and commit statements are >> "redundant". > > No in this case they would be an error. > >> Sometimes conflicts are not correctly managed by ZTM (no rollbacks in db) > > Examples? Which bug reports? Stored procedures implementation in DCOracle2 (ori

Re: [Zope] can not install ZMySQLDA

2007-03-09 Thread Daniel
export PYTHON_EGG_CACHE="/tmp" chmod 777 tmp /opt/Plone-2.5.2/zeocluster/bin/restartcluster.sh It still has the same error, and did not got to the /tmp directory. Where did I set wrong? Thanks, Daniel ExtractionError: Can't extract file(s) to egg cache The following error occurred while tryin

Re: [Zope] External Methods and Authentication error

2007-03-09 Thread Dieter Maurer
Jonathan wrote at 2007-3-8 09:27 -0500: > ... > Module /apps/Zope-2.9.2/Extensions/playwiser-1.0.py, line 3228, in >IncrementViewCount > Module OFS.PropertyManager, line 320, in manage_changeProperties > Module Shared.DC.Scripts.Bindings, line 311, in __call__ This looks funny. Your "manage

Re: [Zope] SQL Server Network Error

2007-03-09 Thread Dieter Maurer
David VanKirk wrote at 2007-3-8 10:08 -0500: >I have Zope and SQL Server setup on the same machine, with no firewall >running on that PC, so there is no firewall between the two. >Occasionally I will get the following error, upon refreshing the page >the error disappears. > >Error Type: ReplayTrans