Re: [Zope] database connections from external method

2005-10-21 Thread Chris Withers
Vangelis Mihalopoulos wrote: Tino Wildenhain wrote: The threading is handled by the ZDA, so you can use query() or what the method actually is. I couldn't find a method like that... any hints? Have a look at the ZSQL methods code, I remember this being pretty old and convoluted :-(

Re: [Zope] database connections from external method

2005-10-21 Thread Chris Withers
Vangelis Mihalopoulos wrote: I am loading the zodb in read-only mode. If someone breaks into Zope What do you mean by this? (which btw i believe to be very secure) The why do you consider it a risk? i don't want him to be able to directly access (read/write) the database i am using.

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-21 Thread Chris Withers
Anders Bruun Olsen wrote: Ahh.. that makes sense I guess. It just seems counterintuitive that you can return a string in a normal function, but not in __getitem__. I have a feeling you're after traverse_subpath, which is available in both Python Scripts and Page Templates... cheers, Chris

Re: [Zope] [OT] ParsedXML dev mail list

2005-10-21 Thread Chris Withers
Garito wrote: Sorry for the off topic but I try to subscribe to ParsedXML dev mail list but I can't (mail list doesn't exists) Doesn't look like it. Is ParsedXML an Infrae or a Zope Corp product? You could always try asking about your problem on this list... cheers, Chris -- Simplistix -

Re: [Zope] Re: implicit vs. explicit ownership?

2005-10-21 Thread Chris Withers
Jürgen Herrmann wrote: hmm, i'm a bit confused now. do you say that changeOwnershipType() only has to do with executeable ownership? Yep, I think so... especially i have to know which methods of the IOwned interface are essential and have to be reimplemented properly on my objects. Why do

Re: [Zope] write file to FS (LocalFS?)

2005-10-21 Thread Chris Withers
Dieter Maurer wrote: Be careful with External Methods and locks: An External Method does not share the module namespace with the same External Methods in other workers. Thus, you should not use locks defined in the source file of the External Method (but outside in a true Python

Re: [Zope] Re: inheriting from SimpleUserFolder's User

2005-10-21 Thread Chris Withers
Florent Guillaume wrote: Actually all third-party userfolders I know of reimplement allowed() in terms of calling getRolesInContext(). SUF doesn't, it aims to keep Simple ;-) I would like to see this fixed in Zope though, I agree the code that's there probably isn't much fo a performance

Re: [Zope-DB] Closing idle DCoracle2 Connections?

2005-10-21 Thread Chris Withers
Cynthia Kiser wrote: open. FYI just closing the database connection via the ZMI does not release the idle connections Oracle still sees. Yes, that button actually does nothing ;-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope-DB] Closing idle DCoracle2 Connections?

2005-10-21 Thread Chris Withers
Dieter Maurer wrote: Usually, there is not need for a sophisticated connection management. Just do not create unnecessary DA instances. Yes, this is the most common mistake... Bugs should be fixed and not worked around with more complex software (complex connection management). Well, it

Re: [Zope] write file to FS (LocalFS?)

2005-10-20 Thread Chris Withers
Rakotomandimby Mihamina wrote: On Wed, 2005-10-19 at 13:44 +0100, Chris Withers wrote: Rakotomandimby Mihamina wrote: I am on a unix-like operating system, Zope 2.8, CMF, CPS (SVN Trunk). I would like users to be abble to write some file on the filesystem. Why? I manage a group of users

Re: [Zope] now learning zpt

2005-10-20 Thread Chris Withers
Garry Saddington wrote: Would you also stop using dtml in zsql methods If I could, I would, but ZSQL methods only support DTML :-( (At least for mail there's now MailTemplates (plug, plug ;-) and you don't have to use dtml-sendmail anymore ;-) and do the processing of multiple records in

Re: [Zope] A Flash file in Zope262

2005-10-19 Thread Chris Withers
J Cameron Cooper wrote: GAYOT Philippe SZSIC35 - BOM wrote: I want to show a Flash file in my home's page under ZopeCMF 262. Could anyone tell me the best way to do that ? It is precisely no different from the way you would do it with any other web server, except that the Flash movie comes

Re: [Zope] Display images stored in Relational DB

2005-10-19 Thread Chris Withers
Thomas G. Apostolou wrote: I have an External Method GetPrList witch is connected to a python module that reads like this You really want to be uxing mxODBC and it's Zope DA... X.SODATA is jpg stored in SQL 2K in a field degined as [SODATA] [image] NULL Bleugh... binary data in RBDs suck

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

2005-10-19 Thread Chris Withers
Stephan Deibel wrote: You can turn on and off debugging from the WingDBG control panel which installs/removes the tracer hook and also the monkey patches. When off, it's the same as if no debugger were running (except that WingDBG lets you turn it on again dynamically). Is the WingDBG

Re: [Zope] write file to FS (LocalFS?)

2005-10-19 Thread Chris Withers
Rakotomandimby Mihamina wrote: I am on a unix-like operating system, Zope 2.8, CMF, CPS (SVN Trunk). I would like users to be abble to write some file on the filesystem. Why? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope] Showing image field from SQL Server 2K

2005-10-19 Thread Chris Withers
Thomas G. Apostolou wrote: How can i show image field from SQL Server 2K? Do i have to select and show it with a special way? Yes, I already answered you about this earlier: http://mail.zope.org/pipermail/zope/2005-October/162375.html cheers, Chris -- Simplistix - Content Management, Zope

Re: [Zope] now learning zpt

2005-10-19 Thread Chris Withers
Hi Gary, Garry Saddington wrote: Having had a bit of a lambasting over my use of dtml, I have started to learn zpt. Congratulations, welcome to the zLight ;-) However, I am curious about the following: How do you do the equivalent of name=comp.name:records to submit multiple values to

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

2005-10-18 Thread Chris Withers
Thomas G. Apostolou wrote: dtml-in expr=GetData(sysDSN=sysDSN, usr=usr, mypass=mypass, sTable=sTable, sFields=sFields) dtml-if sequence-even tr class=even dtml-else tr class=odd /dtml-if dtml-in sequence-item tddtml-var sequence-item /td

Re: [Zope] Re: access rule and authentication

2005-10-18 Thread Chris Withers
Tres Seaver wrote: AcceseRules run during path traversal, before any authentication is done (Zope2 does inside out authentication starting at the published objectd). You might be able to force user validation to be attempted earlier, e.g. by calling 'validate' directly on the user folder.

Re: [Zope] COREBlog 1.2.1 on Zope 2.7.5 year_created problem

2005-10-18 Thread Chris Withers
Allen Schmidt wrote: * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Util, line 198, in eval __traceback_info__: month_created * Module string, line 0, in ? NameError: name 'year_created' is not defined Nope, might be time to contact the

Re: [Zope] Deleting objects from an external method

2005-10-18 Thread Chris Withers
Nikko Wolf wrote: That was my expectation too, but alas -- it does not work for me. Have you specifically tried this? Yes, many times... Set up: - Plone Site with Delete objects permission granted only to Manager (not inheriting privs) - (Plone) Folder abc with an object xyz under

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

2005-10-17 Thread Chris Withers
Wingware Support wrote: Just a couple notes on this: We monkey patch only while the debugger is active Does this mean When WingDbg is installed or is there more to it than that? Also, someone mentioned changing the monkey patch to call inherited. Not sure what you mean by that...

Re: [Zope] zope.conf read-only settings

2005-10-17 Thread Chris Withers
S.Hayles wrote: 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 Not really sure what you're asking? Did you try these and find they made no

Re: [Zope] Need for advice ...

2005-10-17 Thread Chris Withers
Enrique Arizón wrote: By desire of the gods and the ebays lords a bargain Sun Enterprise 250 arrived to my hands this week. The machine is equiped with 6x50GBytes SCSI HDs that can be setup in RAID 0, 1, 5 and 01 combinations and two Sparc 64bits CPUs with Solaris 10. The idea is to use it

Re: [Zope] selected in select lists

2005-10-17 Thread Chris Withers
Garry Saddington wrote: This code does not work;-). That, in itself, as an argument for using ZPT. The reason it doesn't work is probably because of some subtlety in name lookup of your DTML method. Showing DTML to other people, say, on a mailing list, is much harder to grok than a ZPT,

Re: [Zope] Need for advice ...

2005-10-17 Thread Chris Withers
Enrique Arizón wrote: By desire of the gods and the ebays lords a bargain Sun Enterprise 250 arrived to my hands this week. The machine is equiped with 6x50GBytes SCSI HDs that can be setup in RAID 0, 1, 5 and 01 combinations and two Sparc 64bits CPUs with Solaris 10. The idea is to use it

Re: [Zope] apache open proxy configuration problem

2005-10-17 Thread Chris Withers
Kanealii, Priam Mr KRS wrote: RewriteRule ^/p_(.*) http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}/VirtualHostRoot/p_$1 [L,P] I'm pretty sure that P there means it's still using mod_proxy ;-) cheers, Chris PS: Ed: you can't stop people firing requests at your server, hence the

Re: [Zope] Deleting objects from an external method

2005-10-17 Thread Chris Withers
Nikko Wolf wrote: I'm trying to allow users to delete objects that have been accidentally created. I have criteria for what that means, but since I *DO NOT* want them to delete object except by this method, I want to avoid granting Delete objects to them (non-Managers). Have the delete

Re: [Zope] selected in select lists

2005-10-17 Thread Chris Withers
Garry Saddington wrote: The comparison is dynamic. Ah, so thisgroupabrev comes from the request? See? I could never have known that from JUST reading the DTML. In ZPT, it would have been request/thisgroupabrev and all would have been clear. The user selects an option, that option is

[Zope-Annce] MailTemplates 1.1.0 Released!

2005-10-16 Thread Chris Withers
These allow you to use the full power of the the python email package along with Zope's Page Template technology to easily build and send fully standards compliant emails. This release adds the ability to create attachments using string data. It also fixes a long list of bugs uncovered by

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

2005-10-14 Thread Chris Withers
Thomas Apostolou wrote: i saw that from within a DTML Method one is able to call a fuction of a python module in the file system. I don't think so... Now i want to get the funtion's results from within a Page Template. Which function? Give us an example of what you've tried... Is the

Re: [Zope] selected in select lists

2005-10-14 Thread Chris Withers
Garry Saddington wrote: DTML: select name=groupabbrev dtml-in getpastoralgroups option value=dtml-var thisgroupabbrev dtml-if expr=groupabbrev==_.str(thisgroupabbrev) selected/dtml-if dtml-var thisgroupabbrev/option /dtml-in /select And just for comparison, here's the ZPT: select

Re: [Zope] zope.conf read-only settings

2005-10-14 Thread Chris Withers
Steven Hayles wrote: 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 Not really sure what you're asking? Did you try these and find they made no

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

2005-10-14 Thread Chris Withers
Wingware Support wrote: Because Wing currently doesn't read files from anywhere but the file system. I have looked briefly at zdb, but have not had time to set it up yet. Man, you are short of time ;-) Wing's debugger does not use pdb or even the linecache module, so zdb's technique of

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-14 Thread Chris Withers
Nicolas Georgakopoulos wrote: FINALLY it work's! I installed VerboseSecurity and repeat the same action'sit just work. Right, well, that's not good news ;-) As Jens pointed out VerboseSecurity shouldn't be installed in 2.8, which I only just found out... The fact that it makes

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-14 Thread Chris Withers
Hi Nicolas, Nicolas Georgakopoulos wrote: thank you for your support ! Right, I'm not gonna get to do a new release as soon as I'd like since there are a few more issues I want to solve. However, as the one you found is a bit of a showstopper as far as using MailTemplates to send

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-13 Thread Chris Withers
Andreas Jung wrote: Yes, it would be handy. But one could also install the stuff as standalone product for people that really need it. I am really against this proposal - maintaining yet another nice2have package is a burden just for the sake of make the lifes of some people easier. Other

Re: [Zope] MailTemplate attachment problem..

2005-10-13 Thread Chris Withers
Yes, okay, you said it once, keep saying again and it just pisses people off. I know, I'm good at that ;-) Nicolas Georgakopoulos wrote: Trying to send an attachment I get another error: strongError Type: Unauthorized/strongbr/ strongError Value: You are not allowed to access 'add_file' in

Re: [Zope] help with MailTemplates 1.0.0

2005-10-13 Thread Chris Withers
Nicolas Georgakopoulos wrote: I make it work , the fist time I try to use it I had copied my Mailhost object from another folder and it wasn't working. I delete it and create another one with a different name. When I go to the MailTemplate object to chooses my new MailHost it was already

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

2005-10-13 Thread Chris Withers
Hi John, Wingware Support wrote: Right now, Wing only supports file system based code. Really? Why? For code in the database, I'd think you would want to set co_filename to some sort of url. You could always look at the product I mailed you about, it's not exactly big ;-) Somehow

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

2005-10-13 Thread Chris Withers
Frey, Peter wrote: this statement is true, in theory, but sometimes one hits problems that cannot be solved without help of a debugger. There may be two circumstances where on NEEDs a debugger in the production environment Hmmm, not convinced ;-) a) when the problem is that urgent that

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Chris Withers
Nicolas Georgakopoulos wrote: Trying to execute the following code from a python script from smtplib import SMTP from email.MIMEText import MIMEText I get a error: *Error Type: ImportError* *Error Value: import of SMTP from smtplib is unauthorized. You are not allowed to access 'SMTP' in

Re: [Zope] error trying to import smtplib (unauthorized)

2005-10-13 Thread Chris Withers
Nicolas Georgakopoulos wrote: I will try VerboseSecurity for a last chance ... if it doesn't work I will install the lates Zope release. No, you haven't anyway taken me through, step by step, what you've done to get where you are... What release of Zope are you using? Chris -- Simplistix

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:

[Zope-Annce] Zope Debugger 0.8.1 Released!

2005-10-11 Thread Chris Withers
This release adds support for both Zope 2.7 and Zope 2.8. Zope Debugger is an enhanced version of pdb for use with Zope. It can be used simply by inserting the following lines in any python code you'd like to debug, including Script (Python)'s and FSPythonScripts: from Products.zdb import

Re: [Zope-dev] Allowing python logging from restricted code

2005-10-11 Thread Chris Withers
Hi Jim, Jim Fulton wrote: I think you need to be very careful with this. What's the concern? I'm, at most, planning on making the getLogger function and the top level logging constants (eg: logging.INFO, etc) available... IMO, this is something that should not be turned on by default.

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-11 Thread Chris Withers
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 things like ZSQL methods... cheers, Chris -- Simplistix - Content Management,

Re: [Zope-dev] Allowing python logging from restricted code

2005-10-11 Thread Chris Withers
Hi Tim, Tim McLaughlin wrote: We are currently finishing up a debug_log much like the error log that Python scripts can write too. We would happily make that source available if you think it will fit the bill. I';d sure be interested in taking a look, but python's logging package is pretty

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

2005-10-11 Thread Chris Withers
Mika, David P (Research) wrote: from Zope.Startup import options, handlers opts = options.ZopeOptions() opts.configfile='c:\Zope-Instance-Test\etc\zope-with-zeo.conf' opts.load_schema() opts.load_configfile() What does your zope-with-zeo.conf file look

Re: [Zope] proxy role for an external method

2005-10-11 Thread Chris Withers
Reinoud van Leeuwen wrote: On Mon, Oct 10, 2005 at 07:27:11PM +0200, Andreas Jung wrote: Are you using CMF/Plone? yes. the main part of the function is: for brain in self.portal_catalog(portal_type='User', SearchableText=SearchableText):

Re: [Zope] Zope security and packing the database

2005-10-11 Thread Chris Withers
Cameron Beattie wrote: I have created a script based on zope_pack from the Zope book which allows a username and password to be specified when it is called. I wish to create a user specifically for this purpose that only has the ability to pack the ZODB. What permission is ZODB packing

Re: [Zope] Re: Presentations Available

2005-10-11 Thread Chris Withers
Hi Nick, Nick Davis wrote: BTW Both Chris and I come from the UK where complaining about things is a national sport so please no-one take offence. ;-) Nah, the Plone stuff is beyond mere national past time. The excruciating agony it's caused me on a fairly regular basis for a number of

[Zope] Stepper 1.3.0 Released!

2005-10-11 Thread Chris Withers
Stepper is a framework for scripting and running asynchronous tasks on Zope servers. This is a new release that adds support for Zope 2.8. It also fixes numerous small bugs and adds several minor new features. For more information, please see:

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

2005-10-11 Thread Chris Withers
Hi Peter, Frey, Peter 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. Yeah,

[Zope] Zope Debugger 0.8.1 Released!

2005-10-11 Thread Chris Withers
This release adds support for both Zope 2.7 and Zope 2.8. Zope Debugger is an enhanced version of pdb for use with Zope. It can be used simply by inserting the following lines in any python code you'd like to debug, including Script (Python)'s and FSPythonScripts: from Products.zdb import

Re: [Zope] help with MailTemplates 1.0.0

2005-10-11 Thread Chris Withers
Nicolas Georgakopoulos wrote: I installed the MailTemplates product to Zope and try to run the example from the readme file: -- Simple Example This example sends a simple templated mail to a specific address. Add the following to a

Re: [Zope] help with MailTemplates 1.0.0

2005-10-11 Thread Chris Withers
(for the 2nd time, please keep this on the list...) (just for the light on thinking, that means hit reply all or make sure zope@zope.org is in the cc list) Nicolas Georgakopoulos wrote: Your documentation have anothe problem , you forgot to set a subject in your example :( Oh dear, yes, I

Re: [Zope] help with MailTemplates 1.0.0

2005-10-11 Thread Chris Withers
(sheesh, what is it with people, is 'reply all' that hard to find? ;-) Tino Wildenhain wrote: tal:x replace=options/message/ *yuck* tal to render plain text. Now thats ugly ;) Suggest something better... I find it convenient, especially for generating html mail, which customer have a

Re: [Zope] How to create a file and send it by e-mail ?

2005-10-11 Thread Chris Withers
(yet again, please CC zope@zope.org in replies..) Nicolas Georgakopoulos wrote: I think I need it... I don't ;-) I have made a web page (ZPT) that a user answer's to a questionnaire , most of the answers are provided by check boxes and radio buttons. When the user submit the answers a mail

Re: [Zope] help with MailTemplates 1.0.0

2005-10-11 Thread Chris Withers
Nicolas Georgakopoulos wrote: Sorry for that , it was on purpose.. I'm new to Zope and thought that it wasn't right to bother the rest of the list with my beginner problem... The opposite is true.. by keeping this on the list, not only can other people help out, but other people can learn,

Re: [Zope] help with MailTemplates 1.0.0

2005-10-11 Thread Chris Withers
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 Python Script, in detail... I

[Zope-dev] Allowing python logging from restricted code

2005-10-10 Thread Chris Withers
Hi All, Would anyone have a problem if I added the necessary security declarations to allow the python logging module to be used from restricted code? I'd like do this both for the trunk and the 2.8 branch, unless anyone has huge objections... Furthermore, I'd like to change zope.conf to

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-10 Thread Chris Withers
Andreas Jung wrote: Argh...there is also a gadfly package coming from Zope 3. So when we remove it from the Zope 2 core we get it back with Zope 3 :-) Well, having a lightweight semi-functional rdb engine in the distro has always seemed handy for me, mainly for testing rdb-related components

Re: [Zope] Write log file from script

2005-10-10 Thread Chris Withers
Dave Kuhlman wrote: Why not zLOG? Look at: Zope-2.8.1-home/lib/python/zLOG/__init__.py Well, zLOG is hopefully going away some time soon ;-) You should really be using the python logging module, for which zLOG is now just a facade: import logging logger =

[Zope] MailTemplates 1.0.0 Released!

2005-10-10 Thread Chris Withers
These allow you to use the full power of the the python email package along with Zope's Page Template technology to easily build and send fully standards compliant emails. The key feaures are: - Use familiar ZPT syntax to generate both plain text and html email - Easily create multi-part

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

2005-10-10 Thread Chris Withers
Mika, David P (Research) wrote: To initialize ZEO clients with ClientStorage I need info such as host, port, etc. All the needed stuff is tucked away nicely in the zope.config file and I would like to be using the zope machinery access it. I know that what I need is in there somewhere, but when

[Zope-dev] Decoding of source for text/xml ZPTs

2005-10-08 Thread Chris Withers
Hi All, During complication, the XML parser that processes non-HTML mode ZPT's decodes the string of the source into unicode instructions. In HTML mode, the parse does no decoding and so we get string instructions. My question as a result is: what characterset does the XML parser in

[Zope-dev] default encoding used in ZPublisher.

2005-10-08 Thread Chris Withers
Hi All, I'd like to backport the change I made to fix: http://www.zope.org/Collectors/Zope/1490 ...to the 2.8 branch, would anyone have any objections to this? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope-dev] default encoding used in ZPublisher.

2005-10-08 Thread Chris Withers
Andreas Jung wrote: I'd like to backport the change I made to fix: http://www.zope.org/Collectors/Zope/1490 ...to the 2.8 branch, would anyone have any objections to this? The 2.8 branch is closed for new features. With the time-based schedule new features should appear regularly with new

Re: [Zope-dev] default encoding used in ZPublisher.

2005-10-08 Thread Chris Withers
Andreas Jung wrote: The 2.8 branch is closed for new features. With the time-based schedule new features should appear regularly with new major releases. So only bug fixes should go into minor releases. In fact, just noticing other mails, I'd also like to merge this to the 2.7 branch, I

Re: [Zope-dev] default encoding used in ZPublisher.

2005-10-08 Thread Chris Withers
Andreas Jung wrote: Well, this is arguably a bug fix and I incorrectly filed it as a new feature on the trunk. If you can justify it as a bugfix before god and the world,go ahead :-) Cool, will do so to the 2.7 and 2.8 branches tomorrow :-) cheers, Chris PS: I'll mark it as a bug fix in

Re: [Zope] Packaging a zope application

2005-10-07 Thread Chris Withers
Joshua Burvill wrote: Hello All, I have a zope application which operates on data in an external relational database (Firebird), as well as containing lots of folders, dtml docs, scripts, zsql methods etc within the zope db I would like to get suggestions on the best way to package the whole

Re: [Zope] Re: Presentations Available

2005-10-07 Thread Chris Withers
Rob Miller wrote: this strikes me as a bit unfair. to quote stefan holek from a post on plone-dev earlier today, most reported migration problems are due to: - Upgrading to Zope 2.8 without reading the release notes. *shrugs* I've not had need to read he release notes yet, what am I

Re: [Zope-DB] Re: Which objects can be stored in Data.fs

2005-10-07 Thread Chris Withers
Josef Meile wrote: 2) is it possible to tell zope NOT to store some things in the database (for instance in zope.conf-I've looked but not too closely and found nothing) Why don't you run a cron job that packs the database, let's say each month? You could also do a backup before packing; just

Re: [Zope] Mysql 5? Just curious.

2005-10-06 Thread Chris Withers
Richard Smith wrote: A very quick test shows the basics work just fine (adding a record to a table and displaying the whole table). Just watch authentication - they've changed the password algorithms again as in the 3/4 upgrade. The work around is in the manual. rats, probably only an

Re: [Zope] Testing products: Testing all in one batch

2005-10-06 Thread Chris Withers
Paul Winkler wrote: I have a python script that builds a big command line to test.py of the form: bin/zopectl test Products/Product1|Products/Products2|etc ...it's not pretty, but it does work, and lets you exclude geb0rken products like Archetypes from test runs... Aha, that's much like

Re: [Zope] Re: Presentations Available

2005-10-06 Thread Chris Withers
Hi Nick, Nick Davis wrote: I agree that 2+ years should have produced maturity. Zope seems to be a lot more stable than Plone. Well, Zope has had about 10 years to stabilise, versus Plone's 2 ;-) Maybe the reason people focus on your Plone talk is you touch a chord with people who too

Re: [Zope-dev] log levels

2005-10-05 Thread Chris Withers
Florent Guillaume wrote: For instance the transaction code logs at DEBUG level every transaction start and end (self.log.debug(...)). This makes the logs very verbose, and any other code I write that logs at DEBUG level gets drowned in it. Previously transaction logs were at TRACE level

Re: [Zope] Accessing CURRENT property

2005-10-05 Thread Chris Withers
Peter Bengtsson wrote: Not sure what it's called in Page Templates or Python Scripts but in DTML it's called careful_hasattr() which wraps hasattr() in a restricted context. I wouldn't trust that either ;-) hasattr's insane in that it catches prettymuch all exception, including

Re: [Zope] Testing products: Testing all in one batch

2005-10-05 Thread Chris Withers
Paul Winkler wrote: Has anybody set up a batch job to test all installed Products in a zope instance? Yes ;-) Seems like the only *useful* way I can get it to run is with a loop that does bin/zopectl test once for each subdirectory of Products that I actually care about, taking care to

Re: [Zope] Mysql 5? Just curious.

2005-10-05 Thread Chris Withers
Greg Fischer wrote: This is totally unimportant, but I was just curious to know if anyone is running Mysql 5 on Zope right now. That would be some achievement! ISn't MySQL written in C++ or something? Seriously though, Andy Dustman is your man, maybe try compiling mySQLdb and seeing if it'll

[Zope] MailingLogger 2.4.1 and 2.5.0 Released!

2005-10-05 Thread Chris Withers
MailingLogger allows configured entries from the event log to be mailed to a list of configured recipients. These releases fix a major bug involving email flood protection and add support for Zope 2.8 These releases fix the following bugs: - A bug in the email flood protection often meant

Re: AW: [Zope] Zope Debugger lets WingDbg fail to connect to client

2005-10-04 Thread Chris Withers
Hi Peter, Frey, Peter wrote: When the WingIDE Zope-Product WingDbg is installed (and working), Does WingDbg ship with its source code? yes, it does, at least in the professional version I am not sure about the light one Any chance I could get you to email me that off-list so I can see

Re: [Zope] ZEO client authentication

2005-10-04 Thread Chris Withers
Mika, David P (Research) wrote: I see that ZEO supports a simple digest authenitcation of clients and that this is set in the zeo's config file with the keys: authentication-protocol, authentication-database and authentication-realm. Further, I can see that a client can connect using e.g.

Re: [Zope] Presentations Available

2005-10-04 Thread Chris Withers
Chris Withers wrote: I finally got around to putting all my presentations online from the conferences over the last few years. The can now all be found at: http://www.simplistix.co.uk/presentations Have fun and let me know what you think! OK, thanks for the feedback, I'll try and get PDF

Re: [Zope] Re: Presentations Available

2005-10-04 Thread Chris Withers
Nick Davis wrote: Thanks for posting this, Chris. Very interesting. I would've liked to have been at the conferences where you gave these. ;-) With bricks or beer? ;-) I think you make some good points. thanks! My main gripe with Plone is its such a moving target. Hopefully as it matures

Re: [Zope] Accessing CURRENT property

2005-10-04 Thread Chris Withers
Alex Renier wrote: Hello, if I have a folder1 in a folder2 and my folder 1 has a certain property. If I want to know if folder2 has the property I use hasattr() method on folder2, Just a note in passing, hasattr is very dangerous to use in a Zope 2 context... Chris -- Simplistix -

Re: [Zope] how to use zeo under windows?

2005-10-04 Thread Chris Withers
Robert Rottermann wrote: How do I best run zeo under windows ? When I use mkzeoctrl.py as I do under linux, only a runzeo file is generated which can not be used under windows. Sheesh, they're not that hard to read you know... Anyway, here's the contents of the runzeo.bat I use: # ZEO

Re: [Zope] python: calling DTML-methods without quoting

2005-10-04 Thread Chris Withers
Chris wrote: I hope this is not a FAQ, but I looked for some info to no avail. And my answer to this FAQ, as always, is use ZPT. If I call a DTML-Method from an other Method (e.g. dtml-var someDTML), HTML entities are not converted. This is calling and rendering whatever someDTML is...

[Zope] Presentations Available

2005-10-03 Thread Chris Withers
Hi All, I finally got around to putting all my presentations online from the conferences over the last few years. The can now all be found at: http://www.simplistix.co.uk/presentations Have fun and let me know what you think! cheers, Chris -- Simplistix - Content Management, Zope Python

Re: [Zope-dev] problems setting up methods for a product that registers no classes

2005-09-30 Thread Chris Withers
Dieter Maurer wrote: You could use part of the old style initialization, the methods declaration to be precise. You see an example in .../Products/ZSQLMethods/__init__.py. Be warned, however: the old style initialization puts the declared methods on the OFS.Folder class. Yeah, I thought

Re: [Zope] how to export values from a form to SPSS or Excel format?

2005-09-30 Thread Chris Withers
Georgakopoulos Nicolas wrote: I have a page that a client submit a questionnaire (multiply choices) and I want to export the values from the answers to SPSS logistic format so I can send it by mail... No idea what SPSS is, but for excel, just do a CSV. Python has a moderately good csv

Re: [Zope] emergency access problems

2005-09-30 Thread Chris Withers
michael nt milne wrote: Anyway I've followed all the instructions in security.txt, telnetting stop right there... you should be using ssh... in as the user that made the zopeinstance and running python zpasswd.py access using SHA-1 and then entering nothing for domains ( I presumed that

Re: [Zope] External Method Working Directory?

2005-09-30 Thread Chris Withers
jwithers wrote: Because I need to feed the file to Mailman for evil purposes of my own (well, fairly mundane purposes of allowing my zope app to manipulate mailman list memberships, really) that the prototype mailman adapter I found doesn't meet. When I've needed to do simple stuff with this

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

2005-09-30 Thread Chris Withers
Hi Peter, Frey, Peter wrote: there seems to be an incompatibility between zdb and WingIDE. Likely, I don't use WingIDE at all, so I can't test... When the WingIDE Zope-Product WingDbg is installed (and working), Does WingDbg ship with its source code? If so, I'd be interested to see it

Re: [Zope] cutpaste from one mounted storage to another

2005-09-30 Thread Chris Withers
M. Krainer wrote: Am I doing something wrong or is this simply not possibly resp. is there a workaround to do a cutpaste between storage boundaries? It's not reall a supported operation. I wonder if the multidatabase work currently being done on ZODB will help with this? I'd ask on

[Zope-dev] problems setting up methods for a product that registers no classes

2005-09-29 Thread Chris Withers
...zdb in this case. I need to make a global recompile function available, since zdb requires the co_filename attribute of the script's func_code object to be set to something meaningful, rather than the useless Script (Python) it usually gets set to. Once zdb is installed, any scripts

<    12   13   14   15   16   17   18   19   20   21   >