Re: [Zope-dev] Re: Read-only root database doesn't work ... bug orfeature?

2004-05-25 Thread Chris Withers
Chris McDonough wrote: DEATH TO THE HELP SYSTEM! I'm sure I remember reading that about the OLD help system ;-) Chris - Zope.org anyone? -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev

[Zope-dev] Announce: May Zope Bug Day!

2004-05-25 Thread Chris Withers
Hi All, I'm pleased to announce the first a series of monthly bug days: What? Zope Bug Day working from http://collector.zope.org/Zope When? Friday 28th May - from when you wake up until when the day ends! Where? #zope-dev on irc.zope.org Come along and help if you've got a chance! Read this

Re: [Zope-dev] Re: Read-only root database doesn't work ... bug orfeature?

2004-05-25 Thread Chris Withers
Chris McDonough wrote: I'm sure I remember reading that about the OLD help system ;-) This *is* the old help system. Oh? What was the on before it then? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

[Zope-dev] Zope Bug Day - Friday 28th May?

2004-05-21 Thread Chris Withers
Hi People, I offered to schedule and organise the Zope bug days for the last Friday of each month, and the first one of those is looming. Do people have any objections to Friday 28th May as a bug day? If I hear nothing, I'll begin more widely advertising next week... cheers, Chris -- Simplistix

Re: [Zope-dev] Weird couldn't load state on Zope 2.6.2

2004-05-10 Thread Chris Withers
Dieter Maurer wrote: Perhaps you could show me how to find these mailing list posts you speak of? I never search for others... I'm sorry you feel that way, I guess I'll just ignore the errors for now. Sorry you couldn't be more help :-S Chris -- Simplistix - Content Management, Zope Python

Re: [Zope-dev] Re: Dis-allow anonymous bug posting?

2004-05-10 Thread Chris Withers
Casey Duncan wrote: No, some very valuable bugs are submitted anonymously. People can be very paranoid (rightly) about their privacy. We do want to encourage bug submissions even if that means more noise. So on the one hand we say we rarely care about anonymous bug posts and on the other close

[Zope-dev] Re: [Zope3-dev] Change in repository approach to software sharing

2004-05-07 Thread Chris Withers
Jim Fulton wrote: I think you'll find this doesn't work when svn+ssh://svn.zope.org/repos/Zope3/trunk/src/ZConfig already exists. That's not relevent to the example, as, in the example, we are creating it for the first time. Yep, I know, but I've been there, and you feel great after the first

Re: [Zope-dev] Bug day report

2004-05-07 Thread Chris Withers
Casey Duncan wrote: I will try to tread a little lighter on the Reject button and add a comment requesting clarification regardless of age. If I don't hear any for a month or so, then the bug will be closed. Great, don't suppose you can do a mind-meld with Andreas and Maik and get that point

[Zope-dev] Dis-allow anonymous bug posting?

2004-05-07 Thread Chris Withers
Tim Peters wrote: While that *should* be a good example, it isn't: I only knew that bug existed because someone closed it on Bug Day (and I'm subscribed to the Collectors, and read the email they generate). *bangs head against desk* Some bugs are so vaguely described nobody could guess -- and

Re: [Zope-dev] Weird couldn't load state on Zope 2.6.2

2004-05-07 Thread Chris Withers
Dieter Maurer wrote: 2. Do you know any way of searching the list archvies that exclude the month.txt files? These are usually spurious due to being so large... Maybe, you try a different search engine. Maybe Gmane? Searching gmane.comp.web.zope.general for dieter andreas load state returned

Re: [Zope-dev] Re: [Collector] Strange reject policy

2004-05-07 Thread Chris Withers
Ken Manheimer wrote: All the actions are verbs, won't fix is not a verb. Do we have to be this pedantic? Wont' fix says what it does, it's close enough to verb usage for me: I won't fix that verb the more clearly indicates the result is won't fix? (While the distinction between refuse and

Re: [Zope-dev] Re: [Collector] Strange reject policy

2004-05-07 Thread Chris Withers
Ken Manheimer wrote: How is that better than what i implemented, Refuse? (Or maybe you missed that, since it's not in the excerpt context?) As the discussion has proceeded i'm becoming more convinced that refuse is fine... ...and I'm more convinced that wont fix is better. This is what

Re: [Zope-dev] XML-RPC incorrect 404 return code

2004-05-07 Thread Chris Withers
[EMAIL PROTECTED] wrote: IMHO the xml-rpc error handling is a mess. You can't define your own standard_error_message like method, sometimes it returns html code, sets the status code to 200 even if there's an error, etc. Is there an intention to fix these in 2.X? You appear to have an itch... and

Re: [Zope-dev] Re: Nightly Zope 3 Binary Compiles for WIndows

2004-05-06 Thread Chris Withers
Tim Peters wrote: If they have the .pyd files, they can run Zope and fix problems they find in the .py files. They have the .pyd files now. I'm keeping them up to date, and Max M wrote a clear howto (which references the .pyd Zip files on zope.org):

Re: [Zope-dev] How should an ideal Zope IDE look like?

2004-05-06 Thread Chris Withers
[EMAIL PROTECTED] wrote: More important is the second point: Having such a tool would bring a HUGE amount of value added to Zope. Mega, super huge. Sounds like the opportunity for a commercial tool. It's not NEEDED, but it makes life a LOT easier, and so would give any company with it

Re: [Zope-dev] Weird couldn't load state on Zope 2.6.2

2004-05-06 Thread Chris Withers
Dieter Maurer wrote: An incredibly old problem. I wrote at least 2 threads about it (one with Andreas Tille with about 10 messages). Please search the mailing list archives ([EMAIL PROTECTED]), for details... I tried: http://www.google.com/search?q=site%3Alists.zope.org+dieter+andreas+zsql+-jung

[Zope-dev] Re: [Zope3-dev] Change in repository approach to software sharing

2004-05-06 Thread Chris Withers
Jim Fulton wrote: We'll also have a top-level ZConfig project directory. The trunk of the ZConfig Python package will be in ZConfig/trunk/src/ZConfig. If we create a tag T1 of ZConfig, then the Python package for that tag will be in ZConfig/tags/T1/src/ZConfig. The /src/ in the above paths seems

Re: [Zope-dev] Subversion

2004-05-06 Thread Chris Withers
Lennart Regebro wrote: Well... Non-issue it is not. But it makes it much less of an issue. It would still be nice to have server-side configurations of defalts, though. Yeah, but from what Jim said, that's something the svn guys are aiming to do. I guess the best thing would be to hassle/help

Re: [reportlab-users] Re: [Zope-dev] Subversion

2004-05-06 Thread Chris Withers
(cc'ing this to zope-dev in case this is of interest to them too) Robin Becker wrote: Chris Withers wrote: Tim Peters wrote: . Cool :-) Glad to find this one is a non-issue! Chris I hacked cvs2svn.py and seem to be getting it to look up the b tag in place of the mime-types stuff which

Re: [Zope-dev] Bug day report

2004-05-06 Thread Chris Withers
Dieter Maurer wrote: True. But if they are not planned to be fixed at all, then they should be closed. You risk to get less bug reports in the collector... Filing a (good) bug report takes quite a bit of time. When you have gotten rejections for several bug reports (that took you

Re: [Zope-dev] Re: [Collector] Strange reject policy

2004-05-06 Thread Chris Withers
Ken Manheimer wrote: Done. The piece you were missing is that the categories are actually states in the collector_issue_workflow. I added a Wontfix state and a refuse transition (bringing to a total of three the transitions by which issues are dodged:), and hooked them into the existing

Re: [Zope-dev] Re: [Collector] Strange reject policy

2004-05-06 Thread Chris Withers
Chris Withers wrote: Ken Manheimer wrote: Done. The piece you were missing is that the categories are actually states in the collector_issue_workflow. I added a Wontfix state and a refuse transition (bringing to a total of three the transitions by which issues are dodged:), and hooked them

Re: [Zope-dev] Zope 2.X Session problems

2004-05-05 Thread Chris Withers
Kris Erickson wrote: Per this thread that seems to have been dropped (MaxTransientObjectsExceeded Error); This means more unique users have accessed your site than the maximum configured number of sessions. Go to the session data container objectin the the temp folder and tweak the config so

[Zope-dev] Re: Mailing Log Entries in 2.7

2004-05-05 Thread Chris Withers
Fred Drake wrote: That's not currently possible, though it wouldn't be hard to add. Perhaps some future ZConfig revision would add this. Surely ZConfig alredy allows this, it's just Zope's use of ZConfig that needs to support it? Chris -- Simplistix - Content Management, Zope Python

[Zope-dev] Re: Nightly Zope 3 Binary Compiles for WIndows

2004-05-05 Thread Chris Withers
Jim Fulton wrote: I'd be happy to set up a nightly (or weekly, let me know which would be better) scheduled task (see, it's Widnows, there is no Cron, although Schedules Tasks do have a much nicer UI ;-) ) that checked out he latest HEAD of Zope 3, compiled it and PUT it up to my Zope.org

Re: [Zope-dev] Subversion

2004-05-05 Thread Chris Withers
Tim Peters wrote: svn's story is much better (perfect, in fact) when forgetting to add eol-style: regardless of which kind of platform did the commit, the property can be added after the fact by anyone, and svn will automatically repair working copies on all platforms. Because (most) svn

Re: [ZODB-Dev] RE: [Zope-Coders] RE: [Zope-dev] Re: [Zope3-dev] ATTENTION! cvs tosubversion transitiontomorrow

2004-05-05 Thread Chris Withers
Tim Peters wrote: snip much pain and suffering This, btw, is why I prefer the: svn co https:// ...protocol. Will this be supported? cheers, Chris - who suddenly wonder how the hell you get https to use key-based auth :-S -- Simplistix - Content Management, Zope Python Consulting -

[Zope-dev] Re: Mailing Log Entries in 2.7

2004-05-05 Thread Chris Withers
Fred Drake wrote: The configuration of the logging is handled using a ZConfig component that's actually bundled with ZConfig itself on the Zope 2 head; it's in the package ZConfig.components.logger. This allows any project using ZConfig to use the same basic logging support; we actually have

Re: [Zope-dev] Subversion

2004-05-04 Thread Chris Withers
Hi Tim, Tim Peters wrote: There's a svn property you can set on a higher level folder in the repository that can control a mapping for file extensions to this property, IIRC. I am hazy on it but I know it's possible. If so, it's not documented. Perhaps you're thinking of the svn:ignore property?

[Zope-dev] Subversion

2004-05-03 Thread Chris Withers
(cross-posted to zope-dev too, seems relevent there ;-) Marius Gedminas wrote: BTW the Zope subversion conversion hit a snag due to line ending style on Windows. Apparently cvs2svn does not add the required svn:eol-style properties for text files, cvs2svn is a python script, surely you guys can

Re: [Zope-dev] Bug day report

2004-05-01 Thread Chris Withers
Casey Duncan wrote: This means it is an unsponsored bug. It should not remain open forever. Urm, I don't really think this logic is sound ;-) The bug collector is not a substitute for documentation and issues that will never be resolved should be closed. Otherwise it wastes the time of volunteer

Re: [Zope-dev] Bug day report

2004-05-01 Thread Chris Withers
Lennart Regebro wrote: There are many bugs with ambigous descriptions, or posted anonymously, or things that are rather like support questions than bugs. If I see them I close them. Hard and brutal. :) This worries me. I think we need a better documented set of circumstances that are used for

[Zope-dev] Weird couldn't load state on Zope 2.6.2

2004-04-25 Thread Chris Withers
Hi there, When I click on the Advanced tab of one of my ZSQL Methods, I see this: Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.Scripts.Bindings,

[Zope-dev] Nightly Zope 3 Binary Compiles for WIndows

2004-04-24 Thread Chris Withers
Jim Fulton wrote: FYI, there's a similar zip file now containing the same kind of thing for a current Zope3 checkout (s/Zope2/Zope3/ in the URL). If this is good enough for people trying to work from CVS on Windows, let me know and I'll update them from time to time, and maybe move them to a

[Zope-dev] Re: Zope3, CMS, IDEs

2004-04-24 Thread Chris Withers
Seb Bacon wrote: P.S. I don't agree with your pessimistic assessment of CMF, or Plone. They're both good at what they do. Funny, I do, and Joachim's the first person to put that into words that made sense for me... Chris -- Simplistix - Content Management, Zope Python Consulting -

[Zope-dev] Re: Bug days?

2004-04-24 Thread Chris Withers
Lennart Regebro wrote: From: Chris Withers [EMAIL PROTECTED] Whatever happened to the plan to have a monthly bug day on the last monday of each month or somesuch? Nothing, as usual, I guess. Even since bugdays where first thought of, more of then and more regular bugdays have been promised

Re: [Zope-dev] Re: Bug days?

2004-04-24 Thread Chris Withers
Chris McDonough wrote: Accounce on [EMAIL PROTECTED], [EMAIL PROTECTED], zope.org itself (if it's ever working ;-) ) and the nget together on irc.freenode.net #zope-dev... I don't mind being the official announcer and hassler if people are happy for me to have that role :-) +1, it would be

Re: [Zope-dev] Re: zLOG changes

2004-04-24 Thread Chris Withers
Fred Drake wrote: On Wednesday 21 April 2004 04:48 am, Chris Withers wrote: I'm guessing there is some kind of log-to-console logger already? If so, why not just add that in zope.conf and comment it out when you move to production? That would work for me, but not everyone at ZC agreed, so

[Zope-dev] Mailing Log Entries in 2.7

2004-04-24 Thread Chris Withers
that added its own ZConfig section :'( email-notifier fromChris Withers [EMAIL PROTECTED] to [EMAIL PROTECTED] to [EMAIL PROTECTED] subject Something blew up! Okay, how can I get the log level and exception type into the subject? Chris

Re: [Zope-dev] Re: The bleak Future of Zope?

2004-04-22 Thread Chris Withers
Stephan Richter wrote: Nobody is willing to contribute. ZC agreed to change zope.org to Plone so more community members can contribute. But noone has stepped up; that's very sad. Sorry, but I think you'll find several people stepped up, and ZC slapped them in the face with a big fat legal

[Zope-dev] Zope Book at ZopeWiki.org

2004-04-22 Thread Chris Withers
Andreas Jung wrote: Yeah...just had a look a zopewiki.org it seems to be a great place. I wonder why we were not able to built a such place there were it would belong to: zope.org? Indeed. I shall see if I can put some input there... Any chance ZopeWiki.org could become the master location for

[Zope-dev] Zope.org: legal problems?

2004-04-22 Thread Chris Withers
Jim Fulton wrote: - The zope.org community site is a mess. Lots of outstanding problems are not fixed, the performance of the site is more than poor (it takes ages to login, it takes ages to load pages), usability (e.g. when you perform a software release) is bad. Yes, that's a bad

[Zope-dev] Bug days?

2004-04-22 Thread Chris Withers
Lennart Regebro wrote: This means that we need more bugdays. A typical bugday squishes a whole bunch of bugs. They bugs will be harder to squish the more bugdays we have, since the easy one will be squished first, but no matter. Whatever happened to the plan to have a monthly bug day on the last

Re: [Zope-dev] The bleak Future of Zope?!

2004-04-22 Thread Chris Withers
Andre Meyer wrote: I have been developing for Zope for about half a year now and it took considerable effort to get anything going. I would suggest that's because you chose to use what are, imho, overly complex products ;-) With respect to CMS, Plone archetypes are too simplistic for complex

Re: [Zope3-dev] Re: [Zope-dev] zLOG is dead

2004-04-21 Thread Chris Withers
Barry Warsaw wrote: AFAIK, the online logging package docs are about it. That's not the easiest way to learn how to use the package unfortunately. *sigh* What is the easiest way then? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope-dev] Re: [patch] More secure cookie crumbler?

2004-04-21 Thread Chris Withers
Shane Hathaway wrote: Even with unbreakable encryption of credentials after login, you still send the username and password in the clear at login time, and sniffers can reuse the session ID with ease. You really shouldn't tell the Plone users they will be safer with a session token, because they

Re: [Zope-dev] The bleak Future of Zope?!

2004-04-21 Thread Chris Withers
Martin Kretschmar wrote: Maik Jablonski of the german speaking Zope Users Group DZUG issued a pretty bleak outlook for the future of Zope. What are your oppinions? Maik's having a bad day, he'll get over it ;-) Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] Re: zLOG changes

2004-04-21 Thread Chris Withers
Andreas Jung wrote: - In debug mode, use an alternate or auxillary logging configuration to replace or augment the eventlog configuration section. This is more work up front, but keeps everything flexible. Maybe too much overkill...not sure if one needs an academic solution here... I'm

[Zope-dev] Zope 2.6 branch closed for bugfixes?

2004-04-21 Thread Chris Withers
Tres Seaver wrote: Chris, I would call the 2.6 branch closed except for serious security bugs; please don't check in new features or minor bugfixes there. How come? and was this announced anywhere? I don't see what harm applying minor bugfixes to any release branch could do... Chris --

[Zope-dev] Re: [ZODB-Dev] Re: [Zope3-dev] Proposal: Move to subversion for source code control of the Zope and ZODB projects

2004-04-20 Thread Chris Withers
Jim Fulton wrote: Lennart Regebro wrote: From: Jim Fulton [EMAIL PROTECTED] Initially, I propose to move just the repository heads. Maintenamce branches (e.g. Zope 2.6 and Zope 2.7) will remain in CVS. What is the rationale behind not moving it all? - Reduce risk - Provide a more gradual

Re: [Zope-dev] Re: [patch] More secure cookie crumbler?

2004-04-20 Thread Chris Withers
Shane Hathaway wrote: Making cookie authentication secure is surprisingly difficult, and you've barely taken one step. So how does PAS do cookie auth then? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope-dev] Re: [patch] More secure cookie crumbler?

2004-04-20 Thread Chris Withers
Shane Hathaway wrote: Hmm. I really wasn't expecting any new code yet. Session cookies are a very significant maintenance burden in Zope, and it's not in my interest to support them. If you don't mind, I think I'll release a version of CC without any session support, then I'll give Chris

Re: [Zope-dev] zLOG is dead

2004-04-20 Thread Chris Withers
Lennart Regebro wrote: Yeah, but is it reasonable to think that people who write new products will do this? A rule that most people will break is a bad rule... That people working on Zope itself can be well versed enough to use Zope. for things in teh Zope repository seems reasonable. But

Re: [Zope-dev] Re: I want to fix App.Management.Tabs.manage_workspace

2004-04-20 Thread Chris Withers
Casey Duncan wrote: 1. manage_workspace is only protected by the Authenticated role, and that is done directly, not even through a permission. I think that is probably because this method is an abstraction for the default managment screen. It does not know what the correct permission is, but

[Zope-dev] I want to fix App.Management.Tabs.manage_workspace

2004-04-19 Thread Chris Withers
Hi there, App.Management.Tabs.manage_workspace sucks as I've described in http://zope.org/Collectors/Zope/1286: 1. manage_workspace is only protected by the Authenticated role, and that is done directly, not even through a permission. 2. self.filtered_manage_roles then limits the options of

[Zope-dev] [patch] More secure cookie crumbler?

2004-04-12 Thread Chris Withers
Hi Shane and zope-dev, I think the attached patch (against CookieCrumbler 1.1) makes CookieCrumbler a little more secure. It makes CookieCrumbler not store the user's password and username on the browser side and rotates the token stored on the browser side ever 10 seconds or time between

[Zope-dev] Re: [patch] More secure cookie crumbler?

2004-04-12 Thread Chris Withers
Shane Hathaway wrote: I think the attached patch (against CookieCrumbler 1.1) makes CookieCrumbler a little more secure. Your patch won't work with multiple ZEO app servers. It appears to store the tokens in a module global. Do not apply it. Well, that's a little harsh. The default methods will

Re: [Zope-dev] [patch] More secure cookie crumbler?

2004-04-12 Thread Chris Withers
Jamie Heilman wrote: The problem of using cookies for auth creds is a little more complex than that. The reality is, in a well written application, cookies should never be used to store auth creds, even if you only send them over SSL. The patch means that auth creds are never sent, only an

Re: [Zope-dev] Re: ZPT for CSS, anyone?

2004-04-05 Thread Chris Withers
Shane Hathaway wrote: I think it would be pretty neat. :-) And YET ANOTHER thing the poor Zope user has to learn when they start: Hardly. You're confusing a fun little project with the Zope core platform. Please don't put down people's ideas so quickly. Indeed, my mistake, I do apologise :-)

Re: [Zope-dev] ZODB with twisted web.

2004-04-05 Thread Chris Withers
Syver Enstad wrote: I am checking out how to use ZODB with twisted web. Not sure, but you could check the SchoolTool project, which I know uses ZODB and twisted, just not sure if it uses twisted.web or not... Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] Reasons for the current API reference docs implementation?

2004-04-05 Thread Chris Withers
Paul Winkler wrote: I'm not sure that exposing the docstrings of the classes themselves would be much better than the current situation, well, it would arguably make it marginally more likely that the api reference is updated when the code is updated. Indeed. I think using interfaces and

Re: Proposal: Sanitize HelpSys API Reference, was Re: [Zope-dev] Reasons for the current API reference docs implementation?

2004-04-05 Thread Chris Withers
Chris McDonough wrote: FWIW, the old Zope Book sourceforge project (where?) had some code to generate the API reference chapter from the helpsys. I didn't use it because the API reference was stepchilded during the Zope Book rewrite, but it could be useful somehow. I'm sure the code the twisted

Re: [Zope-dev] Re: ZPT for CSS, anyone?

2004-04-02 Thread Chris Withers
Shane Hathaway wrote: I think it would be pretty neat. :-) And YET ANOTHER thing the poor Zope user has to learn when they start: Python ZConfig ZCML ZPT (this thing) ...and that's assuming (this thing) totally replaces DTMhelL, which you and i both know it won't :-( Still, maybe a

Re: [Zope-dev] Re: ZPT for CSS, anyone?

2004-04-01 Thread Chris Withers
Shane Hathaway wrote: BTW instead of TAL, it should be called SAL, Style Attribute Language. TAL needs a sister. :-) Arg! No more languages! :'( Still, maybe a TALES-in-plain-text thing has some merits, but then you want defines, a repeats, and you end up with TAL. *grunt* still, I suppose:

Re: [Zope-dev] Unexpected result

2004-04-01 Thread Chris Withers
Garito wrote: I try to validate a formulator object with a python script If an error was submitted the python script would acquire again the zope page template that render the formulator with the error messages This question is probably better suited to the [EMAIL PROTECTED] list... My problem

Re: [Zope-dev] Catching (external database connectivity) specific exceptions

2004-03-30 Thread Chris Withers
Clemens Robbenhaar wrote: As I understand we agree on the original point of the discussion. Cool, I'll make the change when I get a chance :-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope-dev] Catching (external database connectivity) specific exceptions

2004-03-30 Thread Chris Withers
Dieter Maurer wrote: So, you got sucked into the myth of SQL too? ;-) You'll need to rewrite at least some of your SQL if you change backends, so I don't see this as a huge problem... What an argument :-( As you need to change *something*, why bother with ideas to change as little as

Re: [Zope-dev] ZPT for CSS, anyone?

2004-03-30 Thread Chris Withers
(keep on list ;-) Dylan Jay wrote: so how do you get a CSS file with ZPT code in that is a valid CSS file and works on the filesystem? Urm? If you mean prior to rendering the ZPT, the nthat wasn't a usecase you specified ;-) If you mean post-rendering, use a PageTemplateFile and whatever you

Re: [Zope-dev] Catching (external database connectivity) specific exceptions

2004-03-29 Thread Chris Withers
Clemens Robbenhaar wrote: But it is a base exception class in ZOracleDA, however. Thus the product using it need to explicitely import this exception, and thus explicitely depend on the used relational database; code needs to be rewritten if one exchanges the external data base. So, you got

Re: [Zope-dev] Use Z SQL methon in projects

2004-03-29 Thread Chris Withers
R33t wrote: I'm quite new to zope and I have to develop a Newsletter system as a project for my university. Then head over to [EMAIL PROTECTED], this list is for development OF, not WITH Zope... All works pretty good so far, I'm using ZPT with embedded Z SQL methods to create my page

Re: [Zope-dev] ZPT for CSS, anyone?

2004-03-29 Thread Chris Withers
Dylan Jay wrote: disadvantage that the css is no longer valid once templated. ZPT of course would be the solution if CSS was XML, but alas :( I think ZPT is just fine for generating CSS. It coudl do with a plan text mode, like it has an HTML and XML mode, but apart fro mthat, it rocks :-)

Re: [Zope-dev] university research survey on Zope community organization

2004-03-29 Thread Chris Withers
Nicolas Jullien wrote: Your answer is very, very important for us, and for statistical reason we ask to everybody on the list to answer. The survey is online and takes 5 to 10 min to fill in (http://www-eco.enst-bretagne.fr/Etudes_projets/cgi/questionnaire_Zope.cgi) FWIW, I have NO idea what

Re: [Zope-dev] Catching (external database connectivity) specific exceptions; was: Pointless exception re-raising in DA.py

2004-03-26 Thread Chris Withers
Clemens Robbenhaar wrote: Hm, figuring out the right exception actually the problem; if the data base connector would raise an exception of a certain type due to unability to connect I could catch these and let the others pass. Which DA are you using? It _should_ do that... Unfortunately I am

Re: [Zope-dev] manage_access patch

2004-03-25 Thread Chris Withers
Johan Carlsson wrote: So where should I send the patch, I'm not currently active as a Zope contributor. Whack it in the collector... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___

Re: [Zope-dev] Pointless exception re-raising in DA.py

2004-03-25 Thread Chris Withers
Clemens Robbenhaar wrote: Ok, if this is the proper dance to catch such exceptions with Zope without risking ZODB corruption I will go with it. So far I have not been sure, that ConflictError is the only type needing special treatement in these cases. Well, the PROPER dance would be to only catch

Re: [Zope-dev] Pointless exception re-raising in DA.py

2004-03-25 Thread Chris Withers
Dieter Maurer wrote: try: DB__=dbc() except: exc_type, exc_value, trc = sys.exc_info() raise DatabaseError('%s is not connected to a database' % self.id, exc_type, exc_value), trc I didn't know you could re-raise a traceback like

Re: [Zope-dev] PageTemplateFile vs. Bindings vs. Security

2004-03-25 Thread Chris Withers
Shane Hathaway wrote: That sounds mighty handy. What needs to happen for that to happen? A voluntary volunteer needs to volunteer voluntarily. I think I was offering to be such a person. So, what would such a person need to do? Chris -- Simplistix - Content Management, Zope Python Consulting

Re: [Zope-dev] PageTemplateFile vs. Bindings vs. Security

2004-03-24 Thread Chris Withers
Shane Hathaway wrote: To do this, I would change Products/PageTemplates/Expressions.py. It creates an expression evaluation engine and adds expression types to it. It chooses the unrestricted or the restricted expression types based on whether the Zope module exists. This is a wart.

Re: [Zope-dev] APE and SQL Storages in Zope 2.7

2004-03-24 Thread Chris Withers
[EMAIL PROTECTED] wrote: I'm trying to use APE (yesterday CVS version) on Zope 2.7.0 and Postgresql, but I'm not able to make it work. You could do with being a bit more explicit about the problems you encountered. Exception type, value and traceback please... Chris -- Simplistix - Content

[Zope-dev] Pointless exception re-raising in DA.py

2004-03-24 Thread Chris Withers
Hi All, In Shared/DC/ZRDB/DA.py, Line 399 of Zope 2.6.1 and line 419 in 2.7.0, there's this rather pointless lump of code: try: DB__=dbc() except: raise DatabaseError, ( '%s is not connected to a database' % self.id) ...which only serves to mask the real cause of the

Re: [Zope-dev] Pointless exception re-raising in DA.py

2004-03-24 Thread Chris Withers
Hi there, Clemens Robbenhaar wrote: I remeber I made a collector issue about that liens of code: http://www.zope.org/Collectors/Zope/927 Indeed. Catching everything and raising a string exception is evil, and I was glad to see that go. Previously this has been a string valued exception.

Re: [Zope-dev] TALES context

2004-03-22 Thread Chris Withers
(please stop posting in HTML) Garito wrote: I try to create another context object for TALES like 'container' or 'here' Is there any mechanism to create these? Like PUT_factory for FTP/WevDav or meta_types for the products What extra context are are you looking to add? Chris -- Simplistix -

[Zope-dev] Security declarations vanish over time?!

2004-03-18 Thread Chris Withers
Hi there, I have a little help class: class NamesProxy: __allow_access_to_unprotected_subobjects__=1 def __init__(self,names): self.names=names def __getitem__(self,item): return self.names[item] def __len__(self): return len(self.names) ...which lets me

Re: [Zope-dev] built-in 'dict' and 'list' in PythonScripts

2004-03-17 Thread Chris Withers
Andreas Jung wrote: This behaviour is confusing if you are not aware of it. At least the documentation of PythonScripts should be updated to reflect the differences. So put it in the collector or do the work ;-) Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] Display Files from directory

2004-03-16 Thread Chris Withers
Darshan Preet Singh Manku wrote: This is a Zope Newbie here Then you should be using the [EMAIL PROTECTED] list, [EMAIL PROTECTED] is for the development OF zope, not the development of applications WITH it. When I am trying to pick up files from a Windows directory structure (C:\tmp), the code

Re: [Zope-dev] Product Access to Files

2004-03-12 Thread Chris Withers
Ian Beatty wrote: Not in the least! =8-0 I've never mucked around this deep within Zope before. What's the danger... threading issues? Yeah, but should be okay as you're only reading... It's a whole lot easier to have those files nicely packaged inside my product, so that all someone needs to do

Re: [Zope-dev] How to create a product with all_meta_types and the name of the product

2004-03-12 Thread Chris Withers
Garito wrote: In the information retrieved by self.all_meta_types()['product']['action'] I can retrive the 'manage_addProduct' string, 'product' string but I don't retrieve manage_addMyProductManageAdd but I retrieve manage_addMyProductManageAddForm (this is the form of the constructor)

Re: [Zope-dev] Question about _v_ attributes and database connections

2004-03-11 Thread Chris Withers
Marco Bizzarri wrote: I'm trying something inspired to that at the moment... I succeeded in installing an hack, very inspired from your code (but at a much simpler level) and some code in the SecurityManager, ?! where I mantain a dictionary of connections, indexed by the result of

Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-11 Thread Chris Withers
Chris McDonough wrote: I think the transaction in which the error code operates in should be aborted. Well, what if you want to make a note in some object (say the error_log), that something bad happened? What if you want to make a change in the error handler? My view is that the error handler

Re: [Zope-dev] Re: [ZODB-Dev] Re: BTrees strangeness (was Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-11 Thread Chris Withers
Chris McDonough wrote: On Wed, 2004-03-10 at 19:30, Paul Winkler wrote: I suggested doing a bug day as part of the pycon z2 sprint, but we haven't really discussed the various sprint proposals in depth yet. Since you and I are going to be there on Saturday and Sunday, why don't we do this on

Re: [Zope-dev] help

2004-03-11 Thread Chris Withers
(Learn to use better subject lines!) Vandana Bajaj wrote: /Zope-2.6.2-linux2-x86/lib/python2.1/lib-dynload/psycopgmodule.so: undefined symbol: PyType_IsSubtype Looks like you didn't manage to compile it properly, maybe you compiled it to the wrong python version... Chris -- Simplistix -

Re: [Zope-dev] Product Access to Files

2004-03-11 Thread Chris Withers
I'm overriding '__getitem__' and using Python's os package to directly access the local file system. I just sniff the file name extension and set the response content-type, then return the contents of the named file. Simple and stupid. Ooo... I hope you're confident in what you're doing :-S Should

Re: [Zope-dev] Question about _v_ attributes and database connections

2004-03-10 Thread Chris Withers
Marco Bizzarri wrote: What I would like to do is to have an hook to the removal of a _v_ attribute, so that I can perform some action *BEFORE* losing any reference to the object itself. I look at the setattr code in cPersistence.c and tried also to write my own __setattr__, __setattr__ isn't

[Zope-dev] Sessions and Zope Transactions in standard_error_message

2004-03-10 Thread Chris Withers
michael wrote: My *guess* is that this error happens when a ZODB conflict error is thrown from Transience while rendering standard_error_message. Oh, riiight. Hmmm, is Zope's handling of transactions in standard_error_message still as fubar'ed as it was? cheers, Chris -- Simplistix -

Re: [Zope-dev] Order of Form Keys in REQUEST

2004-03-10 Thread Chris Withers
Max M wrote: Dictionary keys are unordered. You need to store the order of the keys somewhere else. Ie. to have a list in your form with the keys in order, Or to name them alphabetically and then sort the keys. ...or just do something like: keys = REQUEST.form.keys() keys.sort() for key in

Re: [Zope-dev] Re: Unexpected Behaviour iterating over catalog search...

2004-03-09 Thread Chris Withers
Jean Jordaan wrote: for brain in Catalog(some_index=some_value): # delete the object, and then brain_to_delete = Catalog(unique_index=brain.unique_prop) Catalog.uncatalog_object(brain_to_delete.getPath()) .. can't really think why that would work if Chris's original doesn't, though.

[Zope-dev] Unexpected Behaviour iterating over catalog search...

2004-03-05 Thread Chris Withers
Hi, I have something like this: for brain in Catalog(some_index=some_value): # delete the object, and then Catalog.uncatalog_object(brain.getPath()) ...which wasn't deleting all objects where some_index=some_value. On a hunch, I tried: for brain in

Re: [Zope-dev] help

2004-03-05 Thread Chris Withers
Vandana Bajaj wrote: I am not able to access zope management interface through mozilla. Could any one guide me why is it happening so. Can i use Javascript within Zope Page Templates to embed logic 1. zope-dev is for development of Zope, not with it, move your discussion to [EMAIL PROTECTED] 2.

Re: [Zope-dev] Execution context

2004-03-05 Thread Chris Withers
Garito wrote: def __bobo_traverse__(self, Request, Name): import sys if sys._getframe(1).f_code.co_name == traverse: return getattr(self, Name) else: return self.Propiedad(Name) Ew... some sick part of me want to ask WHY you're doing thing... Then again, some people like beating each

Re: [Zope-dev] Question about _v_ attributes and database connections

2004-03-05 Thread Chris Withers
Hi Marco, Marco Bizzarri wrote: We're trying to tackle a problem in hanging connections in ZPsycopg. Hehe, I fixed this for ZOracleDA a couple of months ago. You may want to look at the thread pool code in there to see how I did it, gimme a nod if you need a URL (it's on a CVS branch in

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