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

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

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

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

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

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

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

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

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: [***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] 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: [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] 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

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

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

[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: 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

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: [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] 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 - Content

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

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 issue

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 what

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] How to prevent web access to specific folder ?

2005-10-07 Thread Chris Withers
Vladimir Petrovic wrote: I know this can be done by restricting View/Access Contents information privileges for folders/scripts to the specific role and then giving DTML methods proxy role. But, is there any other easier methods ? That is the only sane way to do it.. I've tried using access_r

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 ap

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 missing?

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 = logging.getLogger('event.wha

[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 mess

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

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 li

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): us

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 protec

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 year

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