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

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 igno

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 ConflictErrors

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. ), HTML entities are not converted. This is calling and rendering whatever someDTML is... However if I call

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 stora

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 - Content

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] 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 ge

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. ZEO.

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 abo

[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] cut&paste 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 cut&paste 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 zodb-dev

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 to

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 i

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 t

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 mo

Re: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Chris Withers
Lennart Regebro wrote: if not hasattr(pack, '_m'): pack._m=fd.__dict__ fd.debug_compile = debug_compile fd.debug_compile__roles__ = ('Manager',) Ah, but did you need to use zdb's recompile method? Seems to work. I just needed to debug a script, and it worked fine! Great product! Th

Re: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Chris Withers
Pascal Peregrina wrote: That solution was given to me by someone on the zope mailing list by the time Zope 2.8.0 was out :) *shrugs* Still a fix for zdb that would have been handy for me to have. Are you using any zodb-based python scripts or are all yours FSPythonScripts? cheers, Chris

Re: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Chris Withers
Pascal Peregrina wrote: If what is intended with this code is to monkey patch some class, then I had a similar problem on 2.8.0 and I solved it by using setattr() instead of item assignment (and it works with 2.7.6). It depends, did you try using the recompile method and did it work with your

Re: [Zope] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Chris Withers
Luca Olivetti wrote: folder_permissions, raise_exc=debug_mode) File "/usr/local/zope-2.8.1-final/lib/python/OFS/Application.py", line 773, in install_product initmethod(context) File "/home/luca/zopetest/Products/zdb/__init__.py", line 64, in initialize pack._m['debug_compile

Re: [Zope] Re: Output only the first or a particular record using TAL

2005-09-29 Thread Chris Withers
Julian Yap wrote: Another query I had was on the practice of using control flow (ie. if, for, etc.. statements). I guess the best way is to keep your control flow in Python scripts? Is this the common practise? Well, it seems to be that a little bit of python in a tal:condition is quite comm

Re: [Zope] SiteAccess (Enh. VHM) still needed, or merged to Zope?

2005-09-29 Thread Chris Withers
Jeff Kowalczyk wrote: Reportedly last updated 2001-08-19, is SAE really so mature that it has not subsequently needed updates or merited a merge into Zope's own VHM? Use the one that ships with Zope, it's likely to be better maintained... I need to map the incoming URL "http://(*.)foo.com/new

Re: [Zope] External Method Working Directory?

2005-09-29 Thread Chris Withers
jwithers wrote: eep, another one, hope we're not related ;-) Can anyone tell me what the default working directory for an external method is? You can't rely on it being anything. If you're working with files, you need to be very careful... Further, I need this to create a file temporarily

Re: [Zope] Re: Using the set object within page templates

2005-09-29 Thread Chris Withers
Alexander Limi wrote: A more interesting question: shouldn't it be available by default? It's a basic data strucure along the lines of lists and dicts, right? Or have I missed a use case for it where it may be scary to use in a Python Script? :) No, it's just an object type that came along

[Zope] Zope Debugger 0.8.0 Released!

2005-09-28 Thread Chris Withers
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 set_trace set_trace() It requires no changes to Zope, CMF or

Re: [Zope] including a ZPT inside a repeat loop

2005-09-28 Thread Chris Withers
Matthew White wrote: oops! I thought I'd clean up my code snippet to make it a little more readable, and instead introduced an error. Here it is in full: As another thing here, the above is pretty expensive, since you call new_get_queue twice, whatever happens, how about the follow

Re: [Zope] Any hope of *merging* 2 'zope instance home's ??

2005-09-28 Thread Chris Withers
[EMAIL PROTECTED] wrote: I have 2 Zope/Plone sites each with their own 'zope instance home'. Any hope of *merging* these into *ONE* zope instance home so that I can do /search/ over both??? Wel, certainly possible to merge... How merge both Data.fs's? do a .zexp of the one site and import

Re: [Zope] Using the set object within page templates

2005-09-27 Thread Chris Withers
Andreas Jung wrote: Is there no way to allow sets to be used within templates/scripts? As I said: No, by default. Look at lib/python/Products/PythonScripts/README.txt. Andreas means "yes", but you need to do some work. See lib/python/Products/PythonScripts/standard for examples ;-) cheer

Re: [***SPAM*** Score/Req: 04.00/04.00] Re: [Zope] I still can't load Zope at start up on a Mac OS X Server

2005-09-27 Thread Chris Withers
Garito wrote: Chris Withers escribió: Now I'm trying launchd method Sorry but if I launch it manually (zopectl start) it works fine patient: ow, doctor, it hurts when I do that doctor: well, don't do that then! So just stick with zopectl. I suspect you'll find if you dig

Re: [Zope] How to create an ansynchronous method

2005-09-26 Thread Chris Withers
David Pratt wrote: really interesting.I think it would be a really good thing to see fire and forget with a process you create as a series of steps that can also be queued in one or more queues. Well, I think ZAsync would be great for building and managing the queues, with Stepper steps being

Re: [Zope] I still can't load Zope at start up on a Mac OS X Server

2005-09-26 Thread Chris Withers
Hi, Garito wrote: Hi all Now I'm trying launchd method I have: lanunchd[309]: ZopeSistes: respawning too quickly! throtting or exits with exit code: 1 errors at system.log (it depends how I launch zope) Yep, your Zope is dying. Try just using runzope with debug-mode on in zope.conf and mayb

[Zope] Re: schema won't update - persistant .pyc files??

2005-09-23 Thread Chris Withers
Alexander Limi wrote: On Fri, 23 Sep 2005 23:18:49 +0200, Chris Withers <[EMAIL PROTECTED]> wrote: Does anyone know if the other Members-as-content product that I've seen out there is any better than CMFMember, which is pretty horrific, by all accounts? Have a look at Memb

Re: [Zope] how determine all Zope/Plone dependencies for chroot jail?

2005-09-23 Thread Chris Withers
[EMAIL PROTECTED] wrote: I'd like to run Zope/Plone in a chroot jail. How determine all dependencies to make this possible?? (What does it need outside of the zope instance home?) Just the Zope software, and a python install, should be pretty simple... Chris -- Simplistix - Content Manageme

Re: [Zope] runzope vs zopectl fg ?

2005-09-23 Thread Chris Withers
Simon Michael wrote: Question: is runzope now equivalent to zopectl fg (turning on debug mode for you etc.) and if so could we drop it ? They're the same, but zopectl actually calls runzope, so no, we can't drop it ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting

Re: [Zope] Re: schema won't update - persistant .pyc files??

2005-09-23 Thread Chris Withers
Does anyone know if the other Members-as-content product that I've seen out there is any better than CMFMember, which is pretty horrific, by all accounts? (try lots of member,s high load, and watch the conflict errors pour in ;-) Chris Peter Bengtsson wrote: 2005/9/22, michael nt milne <[EMA

Re: [Zope] reading values from radio buttons (python script)

2005-09-23 Thread Chris Withers
Lennart Regebro wrote: Because the people who designed the HTML form functionality are brain dead morons, "Not checked" and "not existing" is the same thing. Therefore you need to do this: request.form.get('fieldname', False) Or, perversely, put in a 2nd hidden field, named something like fie

Re: [Zope] create a new log file

2005-09-23 Thread Chris Withers
Andreas Jung wrote: I think you can not reuse the zLOG API of Zope for custom logfiles. You need to implement your own logging based on the Python 'logging' module. Check the Python documentation for information for details. Well, he may just be fine specifying an additional handler in zope.

Re: [Zope] Re: Output only the first or a particular record using TAL

2005-09-23 Thread Chris Withers
Julian Yap wrote: I used the following and it works great (without some formatting for clarity): Customer: hmm, this strikes me as just plain wrong :-S Why is getCustomerLicenses returning more than one row if you only want the first one? If it only returned one row, then you could d

Re: [Zope] Re: Zope iso-8859-1 to utf-8

2005-09-23 Thread Chris Withers
Also, watcha out for the gotcha in BaseResponse.py, which can end up doing a default encoding to latin-1 in some circumstances. I really want to make that hard coded thing configurable in zope.conf at some stage... Chris Pascal Peregrina wrote: I see... And what python function would you u

Re: [Zope] how dump Zope database content into a file system directory tree?

2005-09-23 Thread Chris Withers
[EMAIL PROTECTED] wrote: Possible to dump content in Zope database into a file system tree? What is your aim here? What Zope products are you using? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___

Re: [Zope] How to create an ansynchronous method

2005-09-23 Thread Chris Withers
Hi David, Just a note in passing to say that what you're really after in this case is Gary Poster's ZASync. Gary's talked to me about getting Stepper (which is basically batch processing triggered via cron using a ZEO connection) to do the work of processing ZAsync's queue, which would be coo

Re: [Zope] How to create an ansynchronous method

2005-09-23 Thread Chris Withers
Ron Bickers wrote: I have no idea. Maybe it'll do what you want, but I don't understand what it really does just from the description. The work I needed to do was external to Zope anyway (reading data from a MySQL database, building PDFs with Reportlab, sending email), so it's actually better

Re: [Zope] Same product in multiple instances automatically?

2005-09-15 Thread Chris Withers
Kirk Strauser wrote: OH! I see what you mean. $ZOPE is defined in $INSTANCE/etc/zope.conf. In my case, it's set to /usr/local/www/Zope, and there's a Products directory inside it. FreeBSD installs new products to that directory. I hadn't noticed that there was also a /usr/local/www/Zope/

Re: [Zope] Put a property value for a DTML document in Formulator field

2005-09-15 Thread Chris Withers
Martin Koekenberg wrote: Hello, Im building a edit form. The original values are in a DTML document. My question, how can I get a default value from a DTML Document property in formulator field (string) as de default value ? mydoc.getProperty('name','my default') cheers, Chris -- Simplisti

Re: [Zope] Same product in multiple instances automatically?

2005-09-15 Thread Chris Withers
Paul Winkler wrote: JCC wrote: If you want your instances to use Products from some other directory, name it here. The one possible "gotcha", dating back to the Zope 2.6.x / CMF 1.3.x days, is that CMF (and Plone) would not work properly if installed somewhere other than $INSTANCE_HOME/Produ

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-15 Thread Chris Withers
Jonathan Cyr wrote: I appreciate the amount of effort that you contribute to the community... but that said... you really are quite rude and obnoxious hence the "Go easy" warning. Some might say you are being rude and obnoxious by deliberately ignoring good advice and continuingto whinge

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-15 Thread Chris Withers
(and after the flame bait, something real to argue with) Jonathan Cyr wrote: Happy to have the choice, don't get me wrong. I found DTML very easy, I'm old school and generate all of my HTML/CSS by hand. Indeed, generating HTML by hand is specifcally why I use ZPT. The well-formed-ness and as

Re: [Zope] Zope tutorial / help & VHM problem

2005-09-15 Thread Chris Withers
Administrator wrote: If there's a workaround then I'd be happy to hear it. If not, should I log this as a bug? Yeah, probabyl a bug in the tutorial, plese file at http://www.zope.org/Collectors/Zope cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - htt

[Zope] Stepper 1.2.0 Released!

2005-09-14 Thread Chris Withers
This is a new release fixing several bugs and introducing two new features. Stepper is a framework for performing asynchronous tasks on Zope servers The major changes for this release were: - you can now control whether errors processing an object abort the processing of a whole sequence sequ

Re: [Zope] ERROR(200) KeywordIndex unindex_object could not remove documentId -702398584 from index workitems_from. This should not happen.

2005-09-12 Thread Chris Withers
Chris McDonough wrote: This is actually nothing to worry about. The error message doesn't take into account that the error it's reporting could be a conflict error (these are normal errors seen during Zope execution). The catalog probably shouldn't bother logging the error in this case.

Re: [Zope] FYI on Debian 3.1/zope Re: Images too (StructuredDocument size limit reduced after 2.5.1 to 2.7.5 upgrade)

2005-09-09 Thread Chris Withers
John Schinnerer wrote: That was what I needed, the parameter name...my sysadmin set it low for security reasons, not realizing Clueless overly paranoid sysadmins strike again ;-) No actually, he's very clueful and security-conscious, and I was mistaken about how it got set that low, it a

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Chris Withers
Jonathan Cyr wrote: I have to choose which features of Zope to learn and use, based on a much larger criteria than I can present here. I do not wish to mix ZPT and DTML in my project... I had chosen DTML, before ZPT was mature... It may be better, but I don't care for now... when I'm able to re

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-08 Thread Chris Withers
Jonathan Cyr wrote: I am constructing an RSS 2.0 feed for a zope app. I am creating the rss.xml file in a DTML method. Use ZPT, it's much better suited to this... to include in the feed is a structured-text paragraph. To use any XHTML in a feed you must "html_quote" all of the extended ch

Re: [Zope] RFC: Requiring Python 2.4 in Zope 2.9

2005-09-08 Thread Chris Withers
Jim Fulton wrote: At: http://www.zope.org/Wikis/DevSite/Proposals/RequirePython24> Is a proposal to require Python 2.4 for Zope 2.9 (to be released this December). Comments are welcome. :) Well, it'd be nice if Python 2.4 was at least "acceptable" for 2.8.x first, so the 3rd part product

Re: [Zope] Re: Images too (StructuredDocument size limit reduced after 2.5.1 to 2.7.5 upgrade)

2005-09-08 Thread Chris Withers
John Schinnerer wrote: That was what I needed, the parameter name...my sysadmin set it low for security reasons, not realizing it would impact my content editing products, he will bump it up and hopefully that will fix this. Clueless overly paranoid sysadmins strike again ;-) Chris -- Simpl

Re: [Zope] Re: (1 conflicts since startup at 2005-08-04T14:45:39)

2005-09-07 Thread Chris Withers
Hi Tom, Tom Hallam wrote: Chris Withers wrote: You don't have CMF Member installed by any chance do you? > Yes I did - Not any more as it seems to bomb with Plone 2.1. The error messages have now stopped. Glad to hear it! :-) cheers, Chris -- Simplistix - Content Manageme

Re: [Zope] php header() equivalent in zope, translation please

2005-09-07 Thread Chris Withers
Ed Colmar wrote: if (!(strpos($HTTP_USER_AGENT,"EVE-minibrowser")===false)) { if ($HTTP_SERVER_VARS["HTTP_EVE_TRUSTED"]=="no") { header("|eve.trustme:|http://www.mywebsite.net/::please| allow me to access your pilot information.|"); } else { ?> Pilot: Location: // Station: Don't speak PHP

Re: [Zope] attributes on a file

2005-09-06 Thread Chris Withers
Michael wrote: could someone please tell me how I would modify the "file library" example to store an attribute with the file? (like the guest_name in message book) well, I don't have the example to hand, but my guess would be that you're looking to do something like: from AccessControl impo

Re: [Zope] Defining and creating a temporary storage for each user

2005-09-06 Thread Chris Withers
Marco Bizzarri wrote: You mean mantaining just in the memory... uhmmm I should double check with the fact that the object in memory should mantain some reference to an object on the ZODB... which should be no problem at all. Yeah, you'll have to be careful with references. If it were me, I

Re: [Zope] Truncating strings with DTML

2005-09-06 Thread Chris Withers
Peter Bengtsson wrote: easy: You don't need to use _.string.legacy() functions. Just put your python expression inside the quotation marks. If you're new to python, don't let DTML be your place to learn python. Use a nice editor like IDLE. Just to emphasise what Peter is saying: do this in ZPT

Re: [Zope] Re: (1 conflicts since startup at 2005-08-04T14:45:39)

2005-09-06 Thread Chris Withers
No, but I have in the past. You don't have CMF Member installed by any chance do you? cheers, Chris Tom Hallam wrote: So on a development site with one person accessing it occasionally you wouldn't expect to see any?! Tom Chris Withers wrote: It's when Zope's optimist

[Zope] Stepper1.1.0 Released!

2005-09-05 Thread Chris Withers
Stepper is a framework for performing asynchronous tasks on Zope servers. This is a new release fixing some minor bugs and introducing some new features. The major changes for this release were: - a new 'finalise' hook has been added to steps - an option has been added such that processing o

Re: [Zope] Zope startup error: Archetypes: IndexError: list index out of range

2005-09-05 Thread Chris Withers
Paul Sue wrote: OK ... But surely, there must be some way to get Zope/Plone working on Solaris! I think we have Windows Server 2003 box I can try :) I'd suggest that is a better option than Solaris, there are more people doing it in the real world, and so you're more likely to get help if s

Re: [Zope] Python editor in zope?

2005-09-05 Thread Chris Withers
Sean Dunn wrote: I'm new to Zope, and am getting tired of using textarea's to edit my Python/[HD]TML code. My space-bar thumb is starting to get an unnatural twitch, from hitting it multiple times at the beginning of every line of code. :-) My advice, if you're on Windows, would be to use any

Re: [Zope] Defining and creating a temporary storage for each user

2005-09-05 Thread Chris Withers
Marco Bizzarri wrote: Since these are temporary data, we would like to create them in a temporay storage, either one for each user or one for all of them. If they are temporary, then why do they need ot be stored in a storage at all? Chris -- Simplistix - Content Management, Zope & Python C

Re: [Zope] Re: Zope scalabilty and problems

2005-09-05 Thread Chris Withers
michael nt milne wrote: I am setting up sites using Plone and am concerned to read some of the comments on it. Is it really that bad performance wise? "it depends", unless you have a lot of experience with it, Zope and CMF, you might well find yourself with a slow site on your hands and not m

Re: [Zope] Re: Zope scalabilty and problems

2005-09-05 Thread Chris Withers
Hi Dieter, Dieter Maurer wrote: I am setting up sites using Plone and am concerned to read some of the comments on it. Is it really that bad performance wise? No, it is not. ...I agree, if it is correctly set up and optimised, which isn't the case if someone is here complaining about perfor

Re: [Zope] Re: (1 conflicts since startup at 2005-08-04T14:45:39)

2005-09-02 Thread Chris Withers
It's when Zope's optimistic concurrency model encounters a conflict but where it managed to resolve it by retrying the request. So, this is only a problem if you see LOTS of them, as it'll mean you're taking a big performance hit and you should think about what's causing the conflicts... A g

Re: [Zope] Zope scalabilty and problems

2005-09-02 Thread Chris Withers
Andrew Sawyers wrote: Did Matt indicate if he was running multiple zeo app servers? It might help to be spreading the load. 1, writes a day is not outrageous Yes, but he's using Plone, which implies not only all of the CMF reindexing overhead, but also all the AT and Plone layers on

Re: [Zope] Zope startup error: Archetypes: IndexError: list index out of range

2005-09-02 Thread Chris Withers
Paul Sue wrote: Hi, OK, I rebuilt Zope because I think last time, I didn't have a clean directory. Simple advise: don't use Solaris unless you really really have to. Especially not for an app server, but even running a storage server will cause you unnecessary pain... Chris -- Simplistix

Re: [Zope] Sending Fax through MailHost

2005-09-02 Thread Chris Withers
Chris Larsen wrote: Lennart- the fax piece is something on my exchange server so as long as the headers are correct it will interpret and route to the physical fax server accordingly. The problem is that I can't seem to discover through googling what these headers look like. Oh well, something

Re: [Zope] Defining and creating a temporary storage for each user

2005-09-02 Thread Chris Withers
Marco Bizzarri wrote: Users should have their own storage, so that they can create/modify objects inside that, without influencing the general, shared database. The ZODB mounting machinery isn't designed for this case and it would take a lot of work on your part to make it do what you need,

Re: [Zope] Excel spreadsheet attachment in dtml-sendmail

2005-09-01 Thread Chris Withers
Hi Chris, Seeing the problems you're having, may I suggest you look at using python's excellent "email" package in an external method to generate these mails rather than suffering with the horrific DTML below? I think you'd find it much easier to generate the headers needed for your faxes, a

Re: [Zope] Help STX in UTF-8

2005-09-01 Thread Chris Withers
Vlada Macek wrote: It's Zope 2.7.5. What can I do to display the file correctly? IIRC, somewhere in ZPublisher/BaseRequest.py there's a hard-coded encoding to latin-1, try changing that to utf-8... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - htt

Re: [Zope] Visibility and Copy&Paste support

2005-09-01 Thread Chris Withers
Willi Langenberger wrote: Is there a way to hide products from the product add list without losing the ability to paste its corresponding objects? I'm not aware of anything, I'd put a description of this problem into the collector :-S Chris -- Simplistix - Content Management, Zope & Python

Re: [Zope] Zope scalabilty and problems

2005-09-01 Thread Chris Withers
Kennamore, Matthew G [NTK] wrote: The Technologies we are using are Zope, Zeo, plone and so forth. Why are we having these large issues? It depends entirely on your application. Plone doesn't help you here, and I'd certainly consider replacing that long before I think about trying to ditc

Re: [Zope] Where to authenticate during traversal

2005-08-31 Thread Chris Withers
Dieter Maurer wrote: I forgot to mention that you need to reindex the index "allowedRolesAndUsers" for descendants when you change the permissions and descendants inherit them. Well, I know THAT ;-) (in fact, it's something I'm hoping to optimise some time soon...) I notice you're still sile

Re: [Zope] passing a parameter - namespace and dtml-with

2005-08-30 Thread Chris Withers
Sean Kelley wrote: Only problem is I am using a dtml-in inside the category_results method which calls a sql method and it now gives me an error: ... Perhaps its not finding the title1 value I am trying to pass to it? Honestly, thes emore explicit nature of ZPT would leave you with a LOT l

Re: [Zope] NauScheduler problem

2005-08-30 Thread Chris Withers
Barry Drake wrote: NauSchedule is a very cool product for scheduling automatic tasks, though there are only three sentences of documentation for installation. You may wish to have a look at Stepper and/or ZASync ;-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting

Re: [Zope] Where to authenticate during traversal

2005-08-29 Thread Chris Withers
Dieter Maurer wrote: How do you explain that Zope 2.8.x does *NOT* use a simple "restrictedTraverse" (in "Products.ZCatalog.CatalogBrains.AbstractCatalogBrain.getObject") but instead an "unrestrictedTraverse" to the parent followed by a "restrictedTraverse" for the last step? Using a "simple res

Re: [Zope] NauScheduler problem

2005-08-29 Thread Chris Withers
Barry Drake wrote: Chris, Tried that first. The email on the page for this product returns and unknown recipient. Also, there is zero documentation. In that situation, I'd look for an alternative product ;-) What are you looking to do? Chris -- Simplistix - Content Management, Zope & Pytho

Re: [Zope] NauScheduler problem

2005-08-26 Thread Chris Withers
Hi Barry, Dunno what NauScheduler is, but you should contact the product author to find out what the problem is... cheers, Chris Barry Drake wrote: I'm getting an attribute error when I try to run Zope 2.7.6, which is occurring when NauScheduler starts up: AttributeError: ignoreLater I

[Zope] Re: Stepper

2005-08-26 Thread Chris Withers
Hi Gary, Gary Poster wrote: For our use case, the (quite frequent) cron kick could get to be very, very painful with long running tasks that may overlap (think *lots* of ConflictErrors). Ah well, if they're doing the same thing, just kicked off frequently, and you're worried about one ru

[Zope] Where to authenticate during traversal

2005-08-25 Thread Chris Withers
Dieter Maurer wrote: - the getObject method never tries to catch any exceptions, it just uses a simple restrictedTraverse to turn the path stored in the ZCatalog into an object Sad that the long discussion could not convince you that "restrictedTraverse" is not the correct approach... Sad th

[Zope] Re: Stepper

2005-08-25 Thread Chris Withers
Hi Gary, Gary Poster wrote: Hey Chris. Ever on the lookout for better things to replace our code (e.g., zasync), I took a look at Stepper. It looks nice and simple (as per your company name, I suppose ;-). It's particularly nice that it looks easier to set up than zasync. Thanks! :-)

[Zope] Stepper 1.0.0 Released! ( was SaneBrains 1.0.0 Released!, d'oh!)

2005-08-25 Thread Chris Withers
Chris Withers wrote: Stepper 1.0.0 Released! ...well, this bit was right at least ;-) If anyone wants to give stepper a try, I'm happy to help out! cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplis

[Zope] SaneBrains 1.0.0 Released!

2005-08-25 Thread Chris Withers
Stepper 1.0.0 Released! This is a framework for performing asynchronous tasks on Zope servers. It is written as a Zope Product and can be used in several different ways: - for running sequences of migration code from the console. - for running batch processes via cron - for unit testing piece

Re: [Zope] ZEO on Windows

2005-08-24 Thread Chris Withers
michael nt milne wrote: Hi Does anyone know if the 2.0.5 windows release of Plone includes ZEO? Ask on a Plone list. Is there any configuration information on this? Dunno what you mean. Also does Zope 2.8 for linux have ZEO as standard. Yes. Finally, if you don't run ZEO does this

[Zope] SaneBrains 1.0.0 Released!

2005-08-23 Thread Chris Withers
SaneBrains patches ZCatalog's brain objects such that they don't unnecessarily catch exceptions. The brain objects are patched such that: - the getObject method never tries to catch any exceptions, it just uses a simple restrictedTraverse to turn the path stored in the ZCatalog into an object

Re: [Zope] Re: Token 'ATOM' required, 'and' found

2005-07-25 Thread Chris Withers
Peter Bengtsson wrote: Don't get hung up on that. What I'm after is the technique I can use upon the QueryParser for "ignoring" these operator words. RTSL ;-) QueryParser.py has a massive doc string at the top of it ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting

Re: [Zope] Token 'ATOM' required, 'and' found

2005-07-25 Thread Chris Withers
Peter Bengtsson wrote: But, is there a more robust solution to this? The "correct" thing to do here is to write your own query parser, but that's a lot of hard work. I just catch the two exceptions that the QueryParser can throw and return an empty result set. cheers, Chris -- Simplisti

Re: [Zope] Re: Getting a methods parent (in a product)

2005-07-25 Thread Chris Withers
Tres Seaver wrote: The actual issue is that attribute access will break if you have an unwrapped object; 'aq_parent(foo)' will return 'None' in that case. AttributeError: aq_parent AttributeEror: None has no attribute "myattribute" Take your pick I guess ;-) *grinz* Chris -- Simplistix -

Re: [Zope] Re: ZTUtils.Iterator value in ZPT

2005-07-24 Thread Chris Withers
David Pratt wrote: Ah, I see what you're after, something akin to an SQL sequence, right? Well, Iterator ain't that ;-) I guess something like that but that is what an iterator does. Why makes you think ZTUtils Iterators were designed for this? Well, by hand is not the solution either. It

Re: [Zope] FW: Problem downloading large files

2005-07-24 Thread Chris Withers
Laurikainen, Tuukka wrote: We're having some problems downloading large files from Zope/Plone running on win32, through an SSL connection. Uploads seem work ok. Then stop being dense and just use Apache as an https proxy. Works a treat, unlike ZServerSSL, which feels like a horrible hack to me

Re: [Zope] Re: ZTUtils.Iterator value in ZPT

2005-07-21 Thread Chris Withers
David Pratt wrote: Thanks Tres. The 1's are explained for sure but I can't see a always doing the job for this. What I need is an object that keeps track of the last number given to it so it will supply the next based on its state. For use in a flat form with say a dozen fields you are not

Re: [Zope] Re: Zope Foundation Update

2005-07-20 Thread Chris Withers
Florent Guillaume wrote: The current state of what ZC proposes doesn't prevent anyone from doing anything reasonable. "Give them your hand, and they'll ask for your arm"... Indeed. I don't have any problem with ZC keeping the trademarks, but why are they tying the creation of the foundation o

Re: [Zope] Re: Zope Foundation Update

2005-07-20 Thread Chris Withers
Philip Kilner wrote: Agreed/understood - but ZC are part of the community, too - the BDFL part, I guess. Well, ZC are becoming less benign and more dictatorial, and that's where the BDFL model breaks down... Chris -- Simplistix - Content Management, Zope & Python Consulting - ht

Re: [Zope] Re: Zope Foundation Update

2005-07-20 Thread Chris Withers
Philip Kilner wrote: This has the potential to make the Zope community look like muppets, and not in a good "Swedish chef" kind of way... I'm not sure muppetism applies to the Zope community, it appears to be Zope Corporation who are coming out of this looking less than clever. It's a shame,

Re: [Zope] ZopeProfiler (python profiler) - strange results

2005-07-20 Thread Chris Withers
You might get more help by asking this question on one of the python lists, I know the profiler output has confused the hell out of me on more than one occasion ;-) Chris Maciej Wisniowski wrote: Hi! I've just run ZopeProfiler few times to check which functions are slowest in my site and dur

Re: [Zope] ZTUtils.Iterator value in ZPT

2005-07-20 Thread Chris Withers
David Pratt wrote: .. html form contents .. a field What are you actually trying to do here? Would the following work? .. html form contents .. a field http://www.simplistix.co.uk

<    4   5   6   7   8   9   10   11   12   13   >