Re: [Zope] Zope security and packing the database

2005-10-12 Thread Chris Withers
Cameron Beattie wrote: def main(): urllib._urlopener = MyUrlOpener() url = %s/Control_Panel/Database/manage_pack?days:float=%s % \ *sigh* url whacking, bleugh! If I use the backup user then urllib can't get the url due to no authentication so errors as follows: What roles do

Re: [Zope] Zope Debugger lets WingDbg fail to connect toclient

2005-10-12 Thread Chris Withers
Hi John, Wingware Support wrote: sorry, here it is. It is the the WingDbg Product, but you probably will be unable to install/use it as it depends on the WingIDE (at least part of it) to be installed on the server, too. And as WingIDE is not open source, I am not allowed to hand it on. The

Re: [Zope] reading zope.config file for ClientStorage

2005-10-12 Thread Chris Withers
Mika, David P (Research) wrote: OK, the opts object really did have everything loaded. On careful inspection the opts.configroot has an attribute databases with a list of Zope.Startup.datatypes.ZopeDatabase instances. I can do what I originally set out to do which was to open a

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Chris Withers
Get a packet sniffer going, looks like something is missing from the request when you hit reload! cheers, Chris Garito wrote: Hi all I try to read an xml file using from xml.dom.minidom import parseString It works fine but when I push the reload button raise these error Error Type:

Re: [Zope] help with MailTemplates 1.0.0

2005-10-12 Thread Nicolas Georgakopoulos
Chris Withers wrote: Nicolas Georgakopoulos wrote: Whatever you have selected is resolving to a string instead of a MailHost object :-S I have selected a Zope mailhost object Please explain exactly what you did, including how you create the MailHost, the Mail Template and the

Re: [Zope] INSTALLING gcc (and ZOPE) on DEBIAN

2005-10-12 Thread benmania
It's probably not going to be enough anyway. Oh.But is it possible to install a later DEBIAN PACKAGE VERSION because installing DEBIAN PACKAGES does work? Whenever I try to install ZOPE via apt-get, it is just the 2.6 version that is installed but I need a 2.7 ZOPE version. What is the end

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Garito
Chris Withers escribió: Get a packet sniffer going, looks like something is missing from the request when you hit reload! cheers, Chris Garito wrote: Hi all I try to read an xml file using from xml.dom.minidom import parseString It works fine but when I push the reload button raise

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Garito
Alan Milligan escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Garito wrote: Chris Withers escribió: Get a packet sniffer going, looks like something is missing from the request when you hit reload! cheers, Chris Garito wrote: Hi all I try to read an xml file

[Zope] zope.conf read-only settings

2005-10-12 Thread Steven Hayles
AFAICS the directives zserver-read-only-mode and read-only-database just set the environment value ZOPE_READ_ONLY and no change in ZOPE's operation results. Am I right? This is ZOPE 2.7.7 Setting read-only in the database storage does make a difference (in my configuration, Formulator 1.6.2

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Fred Drake
On 10/12/05, Garito [EMAIL PROTECTED] wrote: Alan Milligan escribió: ... You do realise that pyexpat has a limitation of 8192 bytes between xml tags - if your parse string is longer than this, it will fail. You can recompile your expat parser to accept larger sizes, but this drastically

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Fred Drake
On 10/12/05, Garito [EMAIL PROTECTED] wrote: Alan Milligan escribió: You do realise that pyexpat has a limitation of 8192 bytes between xml tags - if your parse string is longer than this, it will fail. You can recompile your expat parser to accept larger sizes, but this drastically affects

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Fred Drake
On 10/12/05, Alan Milligan [EMAIL PROTECTED] wrote: I discovered this a couple of years ago wondering why RedHat's up2date XML-RPC client didn't wrap download files in base64 tags. They've actually done some strange stuff in this client to use normal http calls to download RPM packages.

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Tino Wildenhain
Fred Drake schrieb: On 10/12/05, Alan Milligan [EMAIL PROTECTED] wrote: I discovered this a couple of years ago wondering why RedHat's up2date XML-RPC client didn't wrap download files in base64 tags. They've actually done some strange stuff in this client to use normal http calls to download

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Fred Drake
On 10/12/05, Tino Wildenhain [EMAIL PROTECTED] wrote: Err. Whats wrong with HTTP to transfer files? (Provided its not XML-RPC ;) Sorry; I was being facetious. -Fred -- Fred L. Drake, Jr.fdrake at gmail.com Society attacks early, when the individual is helpless. --B.F. Skinner

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Fred Drake
On 10/12/05, Alan Milligan [EMAIL PROTECTED] wrote: And you are allowed to be. It is a bit strange in an XML-RPC dialog to drop out to http occasionally ... Actually, I'd expect large files over XML-RPC to be handled by sending a URL, and have the client GET the file separately. But then, I

Re: [Zope] INSTALLING gcc (and ZOPE) on DEBIAN

2005-10-12 Thread Andreas Pakulat
On 12.10.05 12:15:33, [EMAIL PROTECTED] wrote: It's probably not going to be enough anyway. Oh.But is it possible to install a later DEBIAN PACKAGE VERSION because installing DEBIAN PACKAGES does work? Whenever I try to install ZOPE via apt-get, it is just the 2.6 version that is

[Zope] How can i call a pyhton module's function from with in Page Temmplates?

2005-10-12 Thread Thomas Apostolou
Hello, i saw that from within a DTML Method one is able to call a fuction of a python module in the file system. Now i want to get the funtion's results from within a Page Template. Is the right way to make a Script(Python) that calls this module's function and then call this Script(Python) from

Re: [Zope] How can i call a pyhton module's function from with in Page Temmplates?

2005-10-12 Thread Peter Bengtsson
If you already know DTML but need to learn ZPTs I suggest you have a look at this old document http://www.zope.org/Members/peterbe/DTML2ZPT 2005/10/12, Thomas Apostolou [EMAIL PROTECTED]: Hello, i saw that from within a DTML Method one is able to call a fuction of a python module in the file

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Garito
Fred Drake escribió: On 10/12/05, Alan Milligan [EMAIL PROTECTED] wrote: And you are allowed to be. It is a bit strange in an XML-RPC dialog to drop out to http occasionally ... Actually, I'd expect large files over XML-RPC to be handled by sending a URL, and have the client GET

[Zope] Determining user from session object - who is logged in?

2005-10-12 Thread Gaute Amundsen
I thought the place to start wold be: /temp_folder/session_data/ I have built a small little thing to play with the contents of that. External method and script below. However I have not been able to figure out a way to connect these sessions with logged in users. I suppose I could make

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Garito
Fred Drake escribió: On 10/12/05, Garito [EMAIL PROTECTED] wrote: Alan Milligan escribió: You do realise that pyexpat has a limitation of 8192 bytes between xml tags - if your parse string is longer than this, it will fail. You can recompile your expat parser to accept larger sizes,

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Garito
Alan Milligan escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Garito wrote: Fred Drake escribió: On 10/12/05, Alan Milligan [EMAIL PROTECTED] wrote: And you are allowed to be. It is a bit strange in an XML-RPC dialog to drop out to http occasionally ...

Re: [Zope] Determining user from session object - who is logged in?

2005-10-12 Thread Chris McDonough
On Wed, 2005-10-12 at 19:32 +0200, Gaute Amundsen wrote: I thought the place to start wold be: /temp_folder/session_data/ I have built a small little thing to play with the contents of that. External method and script below. However I have not been able to figure out a way to connect

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Garito
Alan Milligan escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Garito wrote: Alan Milligan escribió: Garito wrote: Fred Drake escribió: On 10/12/05, Alan Milligan [EMAIL PROTECTED] wrote: And you are allowed to be. It is a bit strange

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Fred Drake
On 10/12/05, Garito [EMAIL PROTECTED] wrote: I run your test but no error was raised Right. I attach an xml file like I use and who raise the error, perhaps these could help to reproduce the error If you replaced SAMPLE_TEXT in the test script with this data, an error would indeed be raised,

[Zope] selected in select lists

2005-10-12 Thread Garry Saddington
I have a variable called 'groupabbrev' in the REQUEST. I am trying to automatically select an option in a select list based on this variable. I have tried this code and many others, and many googles but have not found anything that works. Can anyone see what I am doing wrong? select

Re: [Zope] selected in select lists

2005-10-12 Thread J Cameron Cooper
Garry Saddington wrote: I have a variable called 'groupabbrev' in the REQUEST. I am trying to automatically select an option in a select list based on this variable. I have tried this code and many others, and many googles but have not found anything that works. Can anyone see what I am doing

Re: [Zope] selected in select lists

2005-10-12 Thread Garry Saddington
J Cameron Cooper wrote: Garry Saddington wrote: I have a variable called 'groupabbrev' in the REQUEST. I am trying to automatically select an option in a select list based on this variable. I have tried this code and many others, and many googles but have not found anything that works. Can

Re: [Zope] Determining user from session object - who is logged in?

2005-10-12 Thread Gaute Amundsen
On Wednesday 12 October 2005 20:19, Chris McDonough wrote: On Wed, 2005-10-12 at 19:32 +0200, Gaute Amundsen wrote: I thought the place to start wold be: /temp_folder/session_data/ I have built a small little thing to play with the contents of that. External method and script below.

Re: [Zope] Determining user from session object - who is logged in?

2005-10-12 Thread Chris McDonough
On Oct 12, 2005, at 4:50 PM, Gaute Amundsen wrote: On Wednesday 12 October 2005 20:19, Chris McDonough wrote: On Wed, 2005-10-12 at 19:32 +0200, Gaute Amundsen wrote: I thought the place to start wold be: /temp_folder/session_data/ I have built a small little thing to play with the

Re: [Zope] selected in select lists

2005-10-12 Thread Garry Saddington
Nicolas Gouzy wrote: I think this code works : select name=groupabbrev dtml-in getpastoralgroups option value=dtml-var expr=_['sequence-item'] dtml-if expr=groupabbrev==_['sequence-item'] selected/dtml-if dtml-var expr=_['sequence-item']/option /dtml-in /select -- Nicolas Gouzy [EMAIL

Re: [Zope] selected in select lists

2005-10-12 Thread J Cameron Cooper
Garry Saddington wrote: J Cameron Cooper wrote: Garry Saddington wrote: I have a variable called 'groupabbrev' in the REQUEST. I am trying to automatically select an option in a select list based on this variable. I have tried this code and many others, and many googles but have not found

Re: [Zope] selected in select lists

2005-10-12 Thread J Cameron Cooper
Garry Saddington wrote: Nicolas Gouzy wrote: I think this code works : select name=groupabbrev dtml-in getpastoralgroups option value=dtml-var expr=_['sequence-item'] dtml-if expr=groupabbrev==_['sequence-item'] selected/dtml-if dtml-var expr=_['sequence-item']/option /dtml-in /select --

Re: [Zope] selected in select lists

2005-10-12 Thread Garry Saddington
J Cameron Cooper wrote: Garry Saddington wrote: Nicolas Gouzy wrote: I think this code works : select name=groupabbrev dtml-in getpastoralgroups option value=dtml-var expr=_['sequence-item'] dtml-if expr=groupabbrev==_['sequence-item'] selected/dtml-if dtml-var

Re: [Zope] Determining user from session object - who is logged in?

2005-10-12 Thread Gaute Amundsen
On Wednesday 12 October 2005 22:58, Chris McDonough wrote: On Oct 12, 2005, at 4:50 PM, Gaute Amundsen wrote: On Wednesday 12 October 2005 20:19, Chris McDonough wrote: On Wed, 2005-10-12 at 19:32 +0200, Gaute Amundsen wrote: I thought the place to start wold be: /temp_folder/session_data/

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Garito
Fred Drake escribió: On 10/12/05, Garito [EMAIL PROTECTED] wrote: I run your test but no error was raised Right. I attach an xml file like I use and who raise the error, perhaps these could help to reproduce the error If you replaced SAMPLE_TEXT in the test script with

Re: [Zope] Re: Zope Hotfix 2005-10-09 broke my zope 2.7.5

2005-10-12 Thread John Schinnerer
Aloha, Well, according to a comment on the hotfix page on problems with applying it to 2.7.0, which was posted after I had already killed my 2.7.5 by applying it, there are some issues which might break it on/during startup, such as config file items expected but not present for at least one of

Re: [Zope] Error Type: ExpatError

2005-10-12 Thread Fred Drake
On 10/12/05, Garito [EMAIL PROTECTED] wrote: What do you need? In this bit of code: Module Products.Yanged.SitioYanged, line 268, in ObtenerNodo 266 | 267 | if 'NodoRaiz' not in args: 268| args['NodoRaiz'] = parseString(self.Dame({'nombre': self.getId() +

[Zope-Checkins] CVS: Packages/ZEO - __init__.py:1.19.4.32 version.txt:1.9.4.31

2005-10-12 Thread Tim Peters
Update of /cvs-repository/Packages/ZEO In directory cvs.zope.org:/tmp/cvs-serv28344/ZEO Modified Files: Tag: Zope-2_7-branch __init__.py version.txt Log Message: 3.2.10 final. === Packages/ZEO/__init__.py 1.19.4.31 = 1.19.4.32 === --- Packages/ZEO/__init__.py:1.19.4.31 Wed Oct

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ Move to ZODB 3.4.2 final.

2005-10-12 Thread Tim Peters
Log message for revision 39102: Move to ZODB 3.4.2 final. Changed: _U Zope/branches/Zope-2_8-branch/doc/ _U Zope/branches/Zope-2_8-branch/lib/python/ _U Zope/branches/Zope-2_8-branch/utilities/ -=- Property changes on: Zope/branches/Zope-2_8-branch/doc

[Zope-Checkins] SVN: Zope/trunk/ Merge rev 39102 from the 2.8 branch.

2005-10-12 Thread Tim Peters
Log message for revision 39103: Merge rev 39102 from the 2.8 branch. Move to ZODB 3.4.2 final. Changed: _U Zope/trunk/doc/ _U Zope/trunk/lib/python/ _U Zope/trunk/utilities/ -=- Property changes on: Zope/trunk/doc

[Zope-Checkins] CVS: Packages/OFS - Image.py:1.145.2.13

2005-10-12 Thread Sidnei da Silva
Update of /cvs-repository/Packages/OFS In directory cvs.zope.org:/tmp/cvs-serv12347/lib/python/OFS Modified Files: Tag: Zope-2_7-branch Image.py Log Message: - OFS.Image.manage_FTPget() would str() it's .data attribute, potentially loading the whole file in memory as

[Zope-Checkins] CVS: Zope/doc - CHANGES.txt:1.625.2.363

2005-10-12 Thread Sidnei da Silva
Update of /cvs-repository/Zope/doc In directory cvs.zope.org:/tmp/cvs-serv12347/doc Modified Files: Tag: Zope-2_7-branch CHANGES.txt Log Message: - OFS.Image.manage_FTPget() would str() it's .data attribute, potentially loading the whole file in memory as a

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ - OFS.Image.manage_FTPget() would str() it's .data attribute,

2005-10-12 Thread Sidnei da Silva
Log message for revision 39108: - OFS.Image.manage_FTPget() would str() it's .data attribute, potentially loading the whole file in memory as a string. Changed to use RESPONSE.write() iterating through the Pdata chain, just like index_html(). Changed:

[Zope-Coders] Zope tests:

2005-10-12 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Tue Oct 11 11:01:02 2005 UTC to Wed Oct 12 11:01:02 2005 UTC. There were no messages. ___ Zope-Coders mailing list Zope-Coders@zope.org http://mail.zope.org/mailman/listinfo/zope-coders

Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/ Collector #556: sqlvar now returns 'null' rather than 'None'.

2005-10-12 Thread Andreas Jung
--On 11. Oktober 2005 07:50:34 +0100 Chris Withers [EMAIL PROTECTED] wrote: Andreas Jung wrote: IMO there is no need to ship the Zope core with *any* DB package except the ZODB. I dunno, it's very handy to be able to rely on something RDB-like being installed when you want to tests

[Zope-dev] Hold the press!

2005-10-12 Thread Sidnei da Silva
I would like to fix this pearl of memory-comsumption in OFS.Image manage_FTPget: def manage_FTPget(self): Return body for ftp. snip return str(self.data) That and port a fix from webdav.NullResource.PUT to webdav.LockNullResource.PUT. But I fear a release is coming

[Zope-dev] Re: Hold the press!

2005-10-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sidnei da Silva wrote: I would like to fix this pearl of memory-comsumption in OFS.Image manage_FTPget: def manage_FTPget(self): Return body for ftp. snip return str(self.data) That and port a fix from

Re: [Zope-dev] Hold the press!

2005-10-12 Thread Chris McDonough
Go Sidnei go! I suspect Andreas won't be all *that* happy about such a bugfix going in on the last day but I don't think the release is until tomorrow, FWIW. ;-) On Oct 12, 2005, at 4:30 PM, Sidnei da Silva wrote: I would like to fix this pearl of memory-comsumption in OFS.Image

Re: [Zope-dev] Hold the press!

2005-10-12 Thread Andreas Jung
--On 12. Oktober 2005 17:30:17 -0300 Sidnei da Silva [EMAIL PROTECTED] wrote: But I fear a release is coming out today? If that's the case could it hold back a bit? I'm already working on the fix. I'll work on the 2.8.2 release today after 4pm (German time) and on 2.7.8 by tomorrow...