[Zope-Checkins] SVN: Zope/trunk/lib/python/DateTime/DateTime.py strftime() accepts unicode strings again

2005-05-25 Thread Andreas Jung
Log message for revision 30494: strftime() accepts unicode strings again Changed: U Zope/trunk/lib/python/DateTime/DateTime.py -=- Modified: Zope/trunk/lib/python/DateTime/DateTime.py === ---

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/DateTime/DateTime.py strftime() accepts unicode format strings again

2005-05-25 Thread Andreas Jung
Log message for revision 30495: strftime() accepts unicode format strings again Changed: U Zope/branches/Zope-2_8-branch/lib/python/DateTime/DateTime.py -=- Modified: Zope/branches/Zope-2_8-branch/lib/python/DateTime/DateTime.py

Re: [Zope-dev] Possible 2.8b2 bug part 3:

2005-05-25 Thread Lennart Regebro
On 5/24/05, Andreas Jung [EMAIL PROTECTED] wrote: +if isinstance(unicode, format): Well, this should be if isinstance(format, unicode): of course. But besides that, yes it works. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/

Re: [Zope-dev] proxydict problems in 2.8b2 with Localizer

2005-05-25 Thread Lennart Regebro
On 5/23/05, Lennart Regebro [EMAIL PROTECTED] wrote: I get TypeError: object does not support item assignment in line 46, class_init.py. I succeeded in working around the problem by setting __name__ and _needs_name__ on the attribute in question, I still would like a confirmation on wether

[Zope-dev] CMFSetup + ZopeTestCase interaction bug

2005-05-25 Thread Lennart Regebro
When you use the installProduct command of ZopeTestCase on a product that has a CMFSetup profile you may get the following error: File /home/zopes/27test/Products/CMFSetup/registry.py, line 567, in registerProfile raise KeyError, 'Duplicate profile ID: %s' % profile_id KeyError: 'Duplicate

[Zope-dev] Zope 2.8.0b2: WinBuilder issue

2005-05-25 Thread Christian Theune
Howdy, The InnoSetup complained about pythonservice.exe to be missing during packaging the installer. Any ideas? Cheers, Christian -- gocept gmbh co. kg - schalaunische str. 6 - 06366 koethen - germany www.gocept.com - [EMAIL PROTECTED] - phone +49 3496 30 99 112 - fax +49 3496 30 99 118 -

RE: [Zope-dev] Zope 2.8.0b2: WinBuilder issue

2005-05-25 Thread Mark Hammond
Howdy, The InnoSetup complained about pythonservice.exe to be missing during packaging the installer. Any ideas? What path does the final Inno file refer to? Is the entire path missing, or just that file missing from that path? IIRC, we explode the pywin32 installer and grab the file from

Re: [Zope] How do I delete acl_users using DTML??

2005-05-25 Thread Chris Withers
Allen Huang wrote: How do I delete acl_users using DTML code?? More to the point, why on earth would you want to?! Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist -

Re: [Zope] Managing Users with Postgresql.

2005-05-25 Thread Chris Withers
Fernando Lujan wrote: I know that it isn't the best solution, and now I want to change it! :) Which is the best solution to solve my problem? I found pgUserFolder. But I'm not so sure if this will be the best solution. Google for SimpleUserFolder, much simpler and easier. (and supported!)

Re: [Zope] strftime

2005-05-25 Thread Chris Withers
Luiz Fernando B. Ribeiro wrote: span tal:content=python: news['Date'].strftime('%d/%m/%Y')Date/span In a strange behaviour using strftime is displaying dates with 1 day past, example 10/05/2005 is being show as 09/05/2005. Well, it certainly sounds like a timezone issue, maybe in ZMySQLDA,

Re: [Zope] what are the dtml for logout and deleting a existing user??

2005-05-25 Thread Chris Withers
Jens Vagelpohl wrote: That's only as weird as basic HTTP auth itself. There *is* no other way to make the browser discard the credentials you typed in other than to tell the browser that an access is unauthorized, which will then always pop up the login box again. This has nothing to do

[Zope] ZSyncer and ZEO

2005-05-25 Thread Dennis Allison
Does ZSyncer have any problem with Zope/ZEO systems? I have some anecdotal evidence of problems as we migrate to a multiheaded Zope/ZEO systems architecture. Is there any difficult using ZSyncer between a Zope and a Zope/ZEO combination. Are there problems syncing between Zope 2.6.X and

[Zope] It is a bug ? 404 error onfly

2005-05-25 Thread [EMAIL PROTECTED]
Hi ! My contributor have a problem. His problem is very interesting, but it is in php. I try to help, but I get same problem in Zope. The problem is that: He have a site, and he is paranoid. He is not use static pages to avoid penetrations. So: in a dynamic page he is check the request. If

[Zope] Zope 2.7.2 with Ape 1.0 installed in root, fails to restart, without any usefull logging, after adding a local role

2005-05-25 Thread Tim Connor
I sent roughly this email directly to Shane Hathaway, since I hadn't asked for any help on Zope, yet, so didn't know where to look. Maybe this was a better avenue? If you read this list, Shane (or Mr. Hathaway, if you prefer), respond on whichever seems more appropriate, I guess. I don't

Re: [Zope] Zope 2.7.2 with Ape 1.0 installed in root, fails to restart, without any usefull logging, after adding a local role

2005-05-25 Thread Dennis Allison
Tim, You may want to run Zope in debug mode-- bin/runzope should do it. Also, be sure you have the event.log configured and enable. -d On Wed, 25 May 2005, Tim Connor wrote: I sent roughly this email directly to Shane Hathaway, since I hadn't asked for any help on Zope, yet, so didn't

Re: [Zope] Zope 2.7.2 with Ape 1.0 installed in root, fails to restart, without any usefull logging, after adding a local role

2005-05-25 Thread Tim Connor
Thanks, I feel like an idiot - running it as a daemon would explain why I wasn't getting as much feedback. I still don't quite get why it wasn't writing to the log though, since it is normally doing that fine. I've had that frustration with Zope before though - some errors seem to kill it in

Re: [Zope] Zope 2.7.2 with Ape 1.0 installed in root, fails to restart, without any usefull logging, after adding a local role

2005-05-25 Thread Tim Connor
Thanks Dennis, Between your and Shane's reply, I got it fixed: I just raised an error with the value of app.__ac_roles__, at that point in lib/python/OFS/Application.py and determined that ONLY the role I had added was being created. So going in and manually adding those starting default

Re: [Zope] Zope 2.7.2 with Ape 1.0 installed in root, fails to restart, without any usefull logging, after adding a local role

2005-05-25 Thread Tim Connor
I spoke too soon. I don't think it's Zope error on that type mismatch (or if it is one, it's not that one I thought). It still happens if there are multiple roles defined. As long as it hits the code adding the non-existing Owner role* the start-up croaks. So either something about Ape is

Re: [Zope] mod_zope development

2005-05-25 Thread Chris Withers
David Bear wrote: Anyone know the status of this project? It is a new page... I'm interested in how Zope Corp views this project and what Zope corp may have in the future regarding apache style pluggins. Pascal at LastMinute.com is the last person I remember doing good work in this area,

Re: [Zope] More tolerant Stripogram (solution)

2005-05-25 Thread Chris Withers
Jaroslav Lukesh wrote: Because it does not contain tags from MS Office documents if it was placed through clipboard to MSIE wysiwyg editor which I incorporate into slashdot. For that, I'd use HTMLTidy instead. Until I get to do some major work on stripogram, it's always going to be much

Re: [Zope] display object without index_html

2005-05-25 Thread Chris Withers
Dieter Maurer wrote: The rules for 'GET' requests are as follows: Perform url traversal to locate the object. If this object's index_html (maybe acquired) is 'None', then call the object; otherwise, use index_html. Thus, you archive what you want by: index_html = None __call__ =

[Zope] Re: ZSyncer and ZEO

2005-05-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis Allison wrote: Does ZSyncer have any problem with Zope/ZEO systems? I have some anecdotal evidence of problems as we migrate to a multiheaded Zope/ZEO systems architecture. Is there any difficult using ZSyncer between a Zope and a

[Zope] Re: Can ZPT form call a url?

2005-05-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phillip Hutchings wrote: The easiest way it to perform a redirect. Unfortunately, HTTP allows automatic redirects only for GET requests. But, if you can live with GET, then it is very easy. Fortunately, most web browsers are lax and let you do

[Zope] Re: Modifying __bases__

2005-05-25 Thread Derrick Hudson
On Fri, May 20, 2005 at 05:10:30PM -0400, Dan Pozmanter wrote: | Out of curiosity, I've noticed the word evil attached to patching | of various and monkey kinds. Not bad, or unwise, but evil, | implying a morality associated with the act. I think it is used mainly to give added emphasis to

RE: [Zope] Re: Modifying __bases__

2005-05-25 Thread Dan Pozmanter
Yes, this definitely makes sense. Which is why monkey patching is never used lightly, but also why clean code and good documentation are so necessary. Any code is difficult to maintain when it is murky, undocumented, and the developer lacks the relevant historical background. In any case, I'll

Re: [Zope] ZSyncer and ZEO

2005-05-25 Thread Paul Winkler
On Tue, May 24, 2005 at 11:29:02PM -0700, Dennis Allison wrote: Does ZSyncer have any problem with Zope/ZEO systems? I have some anecdotal evidence of problems as we migrate to a multiheaded Zope/ZEO systems architecture. I'd be curious to hear those anecdotes. Where I work, we use zsyncer

Re: [Zope] newbie question

2005-05-25 Thread Florent Guillaume
Barry Drake [EMAIL PROTECTED] wrote: I'm getting an error in CMFCore.utils in the _mergedLocalRoles function. The error is: Exception Type TypeError Exception Value can only concatenate tuple (not list) to tuple Note, this problem is due to a non-core product

Re: [Zope] ZSyncer and ZEO

2005-05-25 Thread Paul Winkler
On Wed, May 25, 2005 at 10:14:23AM -0400, Paul Winkler wrote: We synced from 2.7.X to 2.6.X for quite a while with no observed problems. ... which, to be clear, you should take as anecdotal evidence only. I can't guarantee that you will have no problems syncing between mismatched zope

[Zope] No ZMI - panic!!!!

2005-05-25 Thread John Poltorak
I'm trying to update a Zope site which I set up some time ago but can't get the ZMI to start up. Any ideas on what to do? When I try to acccess http://mysite:8080/ I get - Zope Site Error. How do I force a login prompt or include a login in the URL? If this is a FAQ, please tell me which Q

Re: [Zope] No ZMI - panic!!!!

2005-05-25 Thread Dennis Allison
The ZMI is accessed by appending /manage to the site url, so if you have ports redirected properly and reach the site with http://mysite.com you access the ZMI with http://mysite.com/manage If you have forgotten your password, you need to setup an emergency user --- google for it and read

[Zope] Using LocalFs in a form embedded in our application

2005-05-25 Thread Simon ALEXANDRE
Hi, We are developing a web based application using Zope as webserver. One of our expected features consists in uploading a zip file on the server and after that to unzip it Our pages are designed using zpt. I would like to include in one of my pages a simple form allowing to

Re: [Zope] ZODB question

2005-05-25 Thread Tim Peters
[Pascal Peregrina] In a Zope / Zeo configuration (2.7.6), is there a way, on the Zope instance, to know when the database (Zeo) was last packed ? [Chris Withers] Publicly, maybe not, but there'll definitely be away to find it out since the pack machinery checks this. Sorry, pack times aren't

[Zope] Re: ZSyncer and ZEO

2005-05-25 Thread Dennis Allison
Furher investigation has shown that the failing ZSyncer target had a problem with its authentication code and that was likely the cause of the failure. We are continuing to test, but it appears everything is working. We'll continue to test but I am pretty sure this was not a ZSyncer

[Zope] Re: ZSyncer and ZEO

2005-05-25 Thread Paul Winkler
On Wed, May 25, 2005 at 09:15:32AM -0700, Dennis Allison wrote: Furher investigation has shown that the failing ZSyncer target had a problem with its authentication code and that was likely the cause of the failure. We are continuing to test, but it appears everything is working. We'll

Re: [Zope] Re: ZSyncer and ZEO

2005-05-25 Thread Dennis Allison
I noted that and will upgrade in this round. It's the old problem of having live systems, distributed development, and all. The usual groundrules are: only transparent changes, no risk of errors, no disruption of 24x7 use, etc. On Wed, 25 May 2005, Paul Winkler wrote: On Wed, May 25,

[Zope] using DOM from within Zope

2005-05-25 Thread karl . eklund
Maybe this is the wrong way or something, but how can I use xml.dom.minidom (or other module in its entirety) from within Zope? I've tried various stuff in the MyScriptModules Product. This same approach seems to work with the re module. Example: Products/MyScriptModules/__init__.py: from

Re: [Zope] using DOM from within Zope

2005-05-25 Thread Dennis Allison
A common approach is to isolate the functionality that uses the module(s) and put them in an Exernal Method or write a Product that incorporates them. These approaches give much more freedom than Python Scripts which are given limited access because of security issues. On Wed, 25 May 2005

[Zope] [ANN] Epoz 2.0.0 released

2005-05-25 Thread Maik Jablonski
Hi, I've just released Epoz 2.0.0. Main new features are: - You can now use several Epoz-Wysiwyg-areas on a single page at once. This feature was often requested (esp. for use with Archetypes) and Benoit Pin did a really great job on making this real. Many, many Thanks, Benoit! Never thought

Re: [Zope] Using LocalFs in a form embedded in our application

2005-05-25 Thread David Siedband
Simon, I use LocalFS for something similar in one of my apps. I submit to a python script that has some code like this: container.Files.manage_addProduct['OFSP'].manage_addFile(id, title='', file=file) where Files is the name of my LocalFS object name. Do you have the ZipFolder product

[Zope] Open Source Announcement Question

2005-05-25 Thread Dan Pozmanter
Hey all, Where is the best place to host/announce a new open source zope product (or zope related app)? I'm used to using sf, but there a prefered site or mechanism? Dan ___ Zope maillist - Zope@zope.org

Re: [Zope] Still. Zope date datatype and TimeZone formatting problems.

2005-05-25 Thread Felipe Barousse Boue
Andreas/Tino: Thanks for your replies regarding this date and timezones issue. (Thanks Dieter Maurer for previous opinions also) It has been a long and tedious problem to chase and debug, here it goes what I have narrowed so far: Let's forget about the undelying DA, the database has nothing to

Re: [Zope] Still. Zope date datatype and TimeZone formatting problems.

2005-05-25 Thread Phillip Hutchings
The same problem happens when: 1) Using _.DateTime(datestring) 2) The datestring has minus-sign as year, month, date separators. 3) A format is applied, like fmt=%d DE %B %Y The following are examples when viewing a DTML Document containing : dtml-var _.DateTime('2005-05-25')br

[Zope] Re: Open Source Announcement Question

2005-05-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan Pozmanter wrote: Hey all, Where is the best place to host/announce a new open source zope product (or zope related app)? I'm used to using sf, but there a prefered site or mechanism? A post to zope-announce@zope.org would be one likely

Re: [Zope] Zope 2.7.2 with Ape 1.0 installed in root, fails to restart, without any usefull logging, after adding a local role

2005-05-25 Thread Tim Connor
Thanks, Shane. That fixes the problem of Zope not starting, and better than the other syntax I tried, but it still doesn't fix the core problem. My root Ape installs have issues with adding a local role, as then the default roles get axed. If you add this fix then Zope re-adds Owner (and