Re: [Zope3-Users] How to create user accounts for a website

2005-06-03 Thread Chris Withers
Douglas Douglas wrote: I'm starting my graduation project at school and decided to use Zope3 (hope it won't be too difficult!). The project is about developing a website for high school students in El Salvador (Central America) to load and retrieve environmental data acquired from data loggers (s

[Zope3-Users] "Hi, I'm new here"

2005-07-10 Thread Chris Withers
Hehe, Well, it's ALMOST true, since you guys have done so much amazing work since I last looked in! Anyway, as a newbie, I got some questions: - What docs should I read first? - How do I get Zope 3 up and running on Windows, and what's the "best" version for me to try? - Where can I find good

[Zope3-Users] Trying again...

2005-07-14 Thread Chris Withers
Chris Withers wrote: Anyway, as a newbie, I got some questions: - What docs should I read first? Is there no authoritative answer to this question? - How do I get Zope 3 up and running on Windows, and what's the "best" version for me to try? And I'd REALLY like the a

Re: [Zope3-Users] Zope3 Product directory Problem

2005-07-14 Thread Chris Withers
And I'm pretty sure that Zope 3 needs Python 2.4 ;-) Chris Adam Groszer wrote: Hello Shariq, Plone is a product for Zope 2.xx. Monday, July 11, 2005, 1:07:12 PM, you wrote: ss> ss> Hi, ss> I have download Zope3 by using Python 2.3 but i didn't find ss> any Product directory where I can

Re: [Zope3-Users] Zope3 Product directory Problem

2005-07-15 Thread Chris Withers
Jim Fulton wrote: Chris Withers wrote: And I'm pretty sure that Zope 3 needs Python 2.4 ;-) No, Zope 3 works with Python 2.3. Some add-ons might require 2.4. Really? I'm sure I saw something fly by saying Zope 3 required Python 2.4 :-S Chris -- Simplistix - Content Manage

Re: [Zope3-dev] Re: [Zope3-Users] ODBC database adapter for Zope3?

2005-09-15 Thread Chris Withers
Florian Reiser wrote: I would be happy if the DA's would convert an SQL NULL to None and not the class Missing.Value. It really causes much trouble. I don't know if all DA's do that, but the Z ODBC adapter I use at the moment, does this. A Zope 3 ZODBC adapter? cool :-) Nevertheless, I'd

Re: [Zope3-Users] Disappearing dictionary. Upon restart, dictionary resets.

2005-09-26 Thread Chris Withers
Alec Munro wrote: class SomeObj: some_dictionary = PersistentDict({}) ouch, never use mutables for class attributes, for exactly the reasons you've found. two points: 1. the dict will get newly created every time this code runs, ie: each time Zope starts. 2. the object is never "seat

Re: [Zope3-Users] Re: Interface tests: NotImplemented or NotImplementedError

2005-10-19 Thread Chris Withers
Fred Drake wrote: Definately! The similar naming of these two built-ins has been an endless cause for confussion. What's the correct use case for the NotImplemented singleton? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Re: [Zope3-Users] Re: Interface tests: NotImplemented or NotImplementedError

2005-10-20 Thread Chris Withers
Fred Drake wrote: A rich-comparison method should return NotImplemented to indicate that it doesn't implement the specific comparison; the response should be for Python to allow the other operand a chance to handle the comparison (inverted, of course). Oh :-( What an unfortunate name, I'd have

Re: [Zope3-Users] Re: Interface tests: NotImplemented or NotImplementedError

2005-10-21 Thread Chris Withers
Fred Drake wrote: On 10/20/05, Chris Withers <[EMAIL PROTECTED]> wrote: What an unfortunate name, I'd have called it Uncomparable on some such... While the current name is unfortunate, and Uncomparable would make the two easier to distinguish, Uncomparable would also be wr

Re: [Zope3-Users] Re: Interface tests: NotImplemented or NotImplementedError

2005-10-24 Thread Chris Withers
Fred Drake wrote: On 10/21/05, Chris Withers <[EMAIL PROTECTED]> wrote: At the very least NotImplementedComparision or NotImplementedOperandForType would be more explicit... Indeed. We (and many others in the Python community) are in complete agreement on this. Well, if we

Re: [Zope3-Users] i18n of an image

2005-10-28 Thread Chris Withers
Andreas Jung wrote: i18n:attributes just replaces the attributes with content from the catalog file. How can change an image depend on the user location? how about i18n:attributes="src python: test(your_condition, 'someurl1', 'someurl2')" ? I tend to create a folder of the image name, wit

Re: [Zope3-Users] apache as zope3's frontend and NTLM

2005-11-10 Thread Chris Withers
Simon Hang wrote: 1. Installed mod_ntlm for apache 1.3, and tested. Really? Did you get this to work? I've heard it was flakey and/or broken... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___

Re: [Zope3-Users] apache as zope3's frontend and NTLM

2005-11-11 Thread Chris Withers
Simon Hang wrote: Not under heavy load. Any machine should be able to handle this. Ah, hmmm, do you know how it would behave under high load? Our current use case resulted in problematic behaviour under high load and I wonderd if this had been addressed in the version you are using.. But n

Re: [Zope3-Users] Re: apache as zope3's frontend and NTLM

2005-11-15 Thread Chris Withers
Philipp von Weitershausen wrote: True, it's not the nicest solution. But you could make it safer by first stripping the according request variable from the QUERY_STRING. mod_rewrite is quite powerful in that respect. Is it just me, or should a deep feeling of uneasiness accompany the extractio

Re: [Zope3-Users] Permission required for renaming?

2005-12-01 Thread Chris Withers
Alec Munro wrote: My users are unable to rename things, seemingly everywhere. They can add, remove, but not rename, or cut/copy. I'm not sure how to set the permission for this. Do they have the necessary permissions on the objects container rather than the object itself? cheers, Chris --

Re: [Zope3-Users] Re: What's the rationale of @@ ? Was: index.html

2005-12-14 Thread Chris Withers
Jim Fulton wrote: This is a matter of policy. It is straightforward to change. Many people hate @@ and the ++view++name syntax. They will often arrange their item and view names so that they don't overlap. How hard is it to plug in different url parsing? It's often something people want to

Re: [Zope3-Users] Re: What's the rationale of @@ ? Was: index.html

2005-12-15 Thread Chris Withers
Jim Fulton wrote: This isn't really URL parsing, it's traversal. It's easy to plug in different traversal adapters. Are there any examples of this or docs? Chris - sorry if I'm missing something obvious :-S -- Simplistix - Content Management, Zope & Python Consulting - http://www

Re: [Zope3-Users] long lasting transactions

2005-12-15 Thread Chris Withers
Maciej Wisniowski wrote: AFAIR there is a suspend transaction feature in SQLRelay database connector but I've never tried this feature in Zope. SQLRelay has DA for Zope 2.x. so I think it would be necessary to write such thing for Zope 3.x. Not everyone is fooled into thinking they need an RDB

[Zope3-Users] What do I need to play with Zope 3 on Windows, offline?

2005-12-21 Thread Chris Withers
Hi All, I'm shortly going to be jumping on a nice long flight and really want to play with Zope 3 again. I'll be taking the two books with me, but what else do I need to get going on Windows, with no internet connection? I'm thinking: - up-to-date checkout (but of what branch?!) - some bina

Re: [Zope3-Users] Zope 3 Capacities

2006-01-20 Thread Chris Withers
Andreas Jung wrote: This would be 31-310 tx/second...forget the ZODB :-) It's even worser (due to a calculation error): 10 billion would mean 310 tx/second but 100 billion would mean 3100 tx/second...you should look for something _bigger_. I'm curious to know what the app is ;-) I don't

Re: [Zope3-Users] Re: Is Zope Zope2 or Zope3?

2006-01-23 Thread Chris Withers
Brad Allen wrote: Maybe it's too late for this, but what about coming up with a new name to reflect the reality that Zope 3 is a complete redesign and rethink? I always thought Zope sounded too much like "SOAP", anyway. Here are some name ideas I think renaming would be an exceptionally bad

Re: [Zope3-Users] newbie problems with new content-type

2006-02-07 Thread Chris Withers
Lorenzo Gil Sanchez wrote: c:\path\to\my\instance\bin\test -vpu --dir z:\my_root_app_dir [ traceback ] ImportError: No module named z:.my_root_app_dir Is my_root_app_dir on your PYTHON_PATH? try this just before you run the test: set PYTHON_PATH=%PYTHON_PATH%;z:\my_root_app_dir also, do you

Re: [Zope3-Users] Squid/Apache Caching

2006-02-14 Thread Chris Withers
Steve Wedig wrote: I'm in the planning stages for developing a Zope 3 application. It would be nice to know my http caching plan ahead of time. It seems that the two main options are squid and apache. I was wondering if the most flexible setup might be to have apache running behind squid, and zop

Re: [Zope3-Users] Zope 3 Developer's LiveBook

2006-02-15 Thread Chris Withers
Reinoud van Leeuwen wrote: On Tue, Feb 14, 2006 at 09:15:42PM +0100, Florian Lindner wrote: I also think that pure Latex would be the best choice. It's convertible into a lot different formats and can be edited just using a simple text editor. Isn't Docbook a better choice? Is is specially des

Re: [Zope3-Users] What attributes are made persistent

2006-02-15 Thread Chris Withers
Peter Bengtsson wrote: self.queue seem is empty each time I restart Zope. That's because dictionaries are not derived from Persistent. Try PersistentDict. D'oh! That's confusing. Isn't there a class that gathers all of these in one. Urm, Peter, the rules of persistence w.r.t. mutable objects

Re: [Zope3-Users] Squid/Apache Caching

2006-02-15 Thread Chris Withers
Peter Bengtsson wrote: That's very interesting. If you understood Squid better do you think you'd leave out apache? Maybe, I guess I just have a soft spot for Apache though ;-) And what about the performance overhead? Any experience you can share? Nope, Plone gives me all the performance o

Re: [Zope3-Users] What attributes are made persistent

2006-02-16 Thread Chris Withers
Peter Bengtsson wrote: So by using PersistentList it just means that you can use: self.alist.append(1) in your code. The attribute, self.alist, is still saved even without PersistentList but it just means you have to be careful when writing to it. PersistentX classes also usually subclass Pers

Re: [Zope3-Users] Re: Zope 3 Developer's LiveBook

2006-02-16 Thread Chris Withers
Fred Drake wrote: I've worked a bit with generating OpenDocument documents for use with OpenOffice, and have no expectation that the document will be edited in a way that a plain-text user will be happy with. Since the files are ZIP files that contain XML, it's not like supporting plain text use

Re: [Zope3-Users] How to get started?

2006-02-17 Thread Chris Withers
Andre Meyer wrote: BUT I read on this list that the books that cover Zope 3.0 are outdated for the current 3.2 release. They're still largely correct and both very useful to read and do the examples from... How should one get started now? Use the books with 3.0 and try to upgrade later?

Re: [Zope3-Users] Re: Zope 3 Developer's LiveBook

2006-02-17 Thread Chris Withers
Fred Drake wrote: On 2/16/06, Chris Withers <[EMAIL PROTECTED]> wrote: Indeed, but I'm guessing there's maybe a script that can be run to turn OpenDocument into DocBook and vice versa? The DocBook --> OpenDocument conversion is lossy, so there's no round trip. :-( O

Re: [Zope3-Users] Squid/Apache Caching

2006-02-17 Thread Chris Withers
Andrew Sawyers wrote: If you have needs for Apache, use Apache - but there is no need for it just for rewriting urls. Agreed, Jens can fill you in on the rest of the details as to why we use Apache ;-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting

Re: [Zope3-dev] RE: [Zope3-Users] question: can I make a view trusted: A BUG

2006-02-17 Thread Chris Withers
Shaun Cutts wrote: Ok everyone: it is a zope bug. Can you make sure it ends up in the collector please? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope3-users mailing lis

Re: [Zope3-Users] zope3 debian/testing ZopeXMLConfigurationError

2006-02-24 Thread Chris Withers
Stefane Fermigier wrote: You should probably report this to the Debian Zope packaging team. ...and then once you've given up on package builds, try compiling from source ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___

Re: [Zope3-Users] zodb objects backup

2006-02-27 Thread Chris Withers
Shaun Cutts wrote: So far so good, modulo the replication issue. (We don't have much funding yet... but if initial launch goes well, we're hopeful :)). As people have mentioned, you can use repozo to get almost the same effect. Either that or do app-level replication ;-) It would be very ni

Re: [Zope3-Users] zodb objects backup

2006-02-27 Thread Chris Withers
Hi Shaun, Shaun Cutts wrote: Ah -- very nice: so Data.fs *is* a transaction log. Yup, and a very simple, robust one at that ;-) In theory an RDBMS with write ahead logging is still more secure because the transaction log is only backup, and the rest of the database is another copy of the cur

[Zope3-Users] Re: [Zope3-dev] Re: Visionaire! (All your problems, solved)

2006-03-03 Thread Chris Withers
Martin Aspeli wrote: Personally, I still find it hard to know where the line goes between the ZMI and my own UI code, if I should be extending the ZMI or replacing it. Perhaps because I'm tainted by Zope 2's idea of the ZMI, though. I'm fairly sure the idea with Zope 3 was to be able to re-use

Re: [Zope3-dev] Re: [Zope3-Users] Visionaire! (All your problems, solved)

2006-03-03 Thread Chris Withers
Stefane Fermigier wrote: Zed/The Component Architecture Formerlyknown as Zope/GoldEgg/whatever that's not called Zope something: YUCK! (Who's Zed? Zed's dead, baby!) + sys.maxint Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___

Re: [Zope3-Users] Re: ZODB - ways of storages?

2006-03-06 Thread Chris Withers
Andreas Elvers wrote: Personally I don't like to store big files (pictures and the like) in ZODB. Zope provides you the functionality to store this data outside of ZODB (somewhere on the harddrive). Although commonly a reference still exists in ZODB in form of a content object. This content obje

Re: [Zope3-Users] CORBA integration

2006-03-17 Thread Chris Withers
Reinhold Strobl wrote: is it possible to integrate CORBA with Zope. Sure, but I doubt it's been done before, so you'd be on your own... I mean, generally can I can code every python code in Corba, Dunno what this means, CORBA's a communication protocol not a programming language, right?

Re: [Zope3-Users] zodb and object updating

2006-03-17 Thread Chris Withers
Isn't this what the "generations" code is for? cheers, Chris Pete Taylor wrote: Hi all, I've run into an interesting issue. I've been building an application in zope3 over the last few months to meet a business need where I work. Basically just capturing a lot of data about prospective insur

Re: [Zope3-Users] Handler at beginning of request

2006-04-04 Thread Chris Withers
j.kartnaller wrote: I am looking for a hook where I can install some code at the beginning of each request before the request is processed. Why do you think you need to do that? ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk __

Re: [Zope3-Users] How to distribute distinct components among multiple Zope servers?

2006-05-17 Thread Chris Withers
Reinhold Strobl wrote: For instance, server A provides the views and server B provides business functionality via utilities. As a side effect, this should help to increase scalability, since I split functionality over multiple servers. But how to I get them to work together? Is XML-RPC the right

Re: [Zope3-Users] Deleting subobjects works "half" only

2006-05-22 Thread Chris Withers
Stephan Richter wrote: for entry in tuple(tree.keys()) for entry in tree.iterkeys() Which of these is preferred? What, specifically, does iterkeys do? I've never bumped into it before and I'm interested if there's a contract that says iterkeys returns an immutable key sequence, which is kin

Re: [Zope3-Users] Deleting subobjects works "half" only

2006-05-23 Thread Chris Withers
Stephan Richter wrote: On Tuesday 23 May 2006 01:38, Frank Burkhardt wrote: [x for x in iterator()] easier is list(iterator()) Okay, but where does BTrees promise that iterkeys() returns something that's immutable? cheers, Chris -- Simplistix - Content Management, Zope & Python Consult

[Zope3-Users] i18n questions

2006-05-31 Thread Chris Withers
Hi All, Dunno if this is the right list, but it's about Zope 3's i18n stuff and Five and Zope 2.9, so if anyone can recommend a better list, please let me know... I did try and ask about this on the zope@zope.org list but got no response :-( I have a ZODB-based Zope 2.7 app using PTS that

Re: [Zope3-Users] i18n questions

2006-06-02 Thread Chris Withers
Marco Mariani wrote: and then in overrides.zcml: Thanks! Where does this snippet go in Five-land? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope3-users mailing list

Re: [Zope3-Users] i18n questions

2006-06-02 Thread Chris Withers
Stephan Richter wrote: On Wednesday 31 May 2006 04:29, Chris Withers wrote: - Can my existing .pot and .po files be used? Yes, the PO file format is totally independent of Zope and Python. But with PTS, I don't need to build .mo's myself, right? ;-) - How would I mark up co

Re: [Zope3-Users] i18n questions

2006-06-02 Thread Chris Withers
ould I move to the above layout? Where do I put the various folders? On Wednesday 31 May 2006 04:29, Chris Withers wrote: > - How would I mark up constant and computered strings in zodb-based > Python Scripts? Mark up? ie: indicate that they are strings that need to be translated..

Re: [Zope3-Users] i18n questions

2006-06-05 Thread Chris Withers
Stephan Richter wrote: On Friday 02 June 2006 03:52, Chris Withers wrote: Stephan Richter wrote: On Wednesday 31 May 2006 04:29, Chris Withers wrote: - Can my existing .pot and .po files be used? Yes, the PO file format is totally independent of Zope and Python. But with PTS, I don't

Re: [Zope3-Users] Found a (perhaps obvious) page template speedup

2006-06-05 Thread Chris Withers
Stephan Richter wrote: The point is that I am not interesting in supporting the ZMI at all. I have no use for users or developers to ever use the ZMI. In fact, basing my skin on the ZMI is bad because it provides all those URLs I (a) do not have control over -- thus being a security risk, and

Re: [Zope3-Users] execute script from as root user

2006-06-08 Thread Chris Withers
Stephan Richter wrote: Use Python popen or popen3. It allows you to execute shell comands. As the other response suggests, you can use "sudo" or "su" to become root. Actually, since Zope 3 uses Python 2.4, you have access to the wonderful subprocess module, which I'd thoroughly recommend :-)

Re: [Zope3-Users] Re: I fold. What are ++etc++ and ++resource++ etc?

2006-06-11 Thread Chris Withers
Philipp von Weitershausen wrote: Failing to find a clear explanation, I only see a ways for Zope3-based sites to: 1. Be toyed with by the user. How so? "ooo look, pretty shiny things in urls, I wonder what they mean" 2. Fall out of search engines. Why? Search engines don't particularly

Re: [Zope3-Users] Re: I fold. What are ++etc++ and ++resource++ etc?

2006-06-13 Thread Chris Withers
Philipp von Weitershausen wrote: 2. Fall out of search engines. Why? Search engines don't particularly like weird characters in urls. @ and + are not "weird" characters in URLs. They're allowed by the spec and I'd be surprised if they actually are a problem. So far, this is all hand-waving.

Re: [Zope3-Users] Splitting ZODB ?

2006-06-21 Thread Chris Withers
Thierry FLORAC wrote: While using Zope2, I used to "split" my ZODB into several parts, using the "old" DBTab product configuration (which was finally included into Zope2). Can I setup this kind of configuration with Zope3 and, if so, how ? It's all ZODB, I would hope Zope 3's zope.conf would al

Re: [Zope3-Users] Re: Splitting ZODB ?

2006-06-22 Thread Chris Withers
Jim Fulton wrote: Much of the value of the Zope 3 mounting code was in getting around the limitation that cross-database object references weren't supported. Does Zope 3 still have the idea of "one big tree" of object with path-like unique identifiers? If so, then mounting will probably still

Re: [Zope3-Users] Re: Splitting ZODB ?

2006-06-26 Thread Chris Withers
Jim Fulton wrote: The default Zope 3 configurations still organizes objects into a tree. Path identifiers are no longer used. How do you now uniquely identify an object? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Re: [Zope3-Users] Re: Splitting ZODB ?

2006-06-26 Thread Chris Withers
Jim Fulton wrote: First, you usually don't need an independent unique id for an object, since direct object references work much better in Zope 3 than they do in Zope 2. Great :-) If you do need a separate identifier of some kind, you can use a key reference or use an integer id from an inti

Re: [Zope3-Users] Re: Splitting ZODB ?

2006-06-26 Thread Chris Withers
Philipp von Weitershausen wrote: What's a "key reference"? -> zope.app.keyreference -> zope.app.intid I was wondering if there was a more high level explanation that "rtsl" ;-) I kinda know what an intid is, but what's a key reference? cheers, Chris -- Simplistix - Content Management, Zop

Re: [Zope3-Users] Re: Splitting ZODB ?

2006-06-27 Thread Chris Withers
Philipp von Weitershausen wrote: class IKeyReference(zope.interface.Interface): """A reference to an object (similar to a weak reference). The references are compared by their hashes. """ There, that wasn't so hard... Well yeah, but it's also not very explanatory ;-) If it's simi

[Zope3-Users] Re: [Zope3-dev] AssertionError in ZEO cache

2006-07-06 Thread Chris Withers
[EMAIL PROTECTED] wrote: Almost surely, the code should be "cur_tid <= tid" rather than "cur_tid < tid". But there is nobody that is sure about it. Well, as I've asked before, what needs to happen for someone to _become_ sure about it? (or at least change it and see what happens? ;-) ) chee

Re: [Zope3-Users] Re: [Zope3-dev] AssertionError in ZEO cache

2006-07-06 Thread Chris Withers
Tim Peters wrote: Same answer as before: someone who understands the intended invariants during cache verification needs to stare at the mutually inconsistent code and comments, and figure out was intended. Is there a list of suspects for this? >> (or at least change it and see what happens?

Re: [Zope3-Users] Re: Next steps...

2006-07-25 Thread Chris Withers
Philipp von Weitershausen wrote: I wouldn't say that. It depends on your taste, really. I personally prefer the package-includes approach for development environments; for actual deployments I find having no package-includes at all, but instead putting everything in site.zcml useful, because it's

Re: Re : [Zope3-Users] Re: Zope 3 SSL

2006-08-25 Thread Chris Withers
Stéphane Brault wrote: But I can't seem to be able to use apache as a proxy. If you elaborate, people may be able to help you. However, for that specific problem #apache on irc.freenode.net will probably be of more service... Chris -- Simplistix - Content Management, Zope & Python Consulti

Re: [Zope3-Users] newbie problem

2006-09-04 Thread Chris Withers
Karel Antonio Verdecia Ortiz wrote: Thank you, but when I use now "svn://" instead of "http://"; I get: svn: No fue posible conectarse al equipo 'svn.zope.org': Network is unreachable I think it should be a problem with my proxy Indeed, you need to unblock the port. I

Re: [Zope3-Users] Zope 3 Distilled book update 3

2006-09-08 Thread Chris Withers
Benji York wrote: Baiju M wrote: (This is about : http://kpug.zwiki.org/Zope3Distilled) I recommend you verify that you can use the "Distilled" name. I believe computer book titles of that form are protected by an Addison-Wesley trademark. I'm pretty sure a trademark like that can't

[Zope3-Users] Re: Zope 3 Distilled book update 3

2006-09-08 Thread Chris Withers
Philipp von Weitershausen wrote: I'm pretty sure a trademark like that can't be claimed. You'd be effectively trademarking a dictionary word, and I'm pretty sure that's not allowed... Let's see, looking through the first pages of my English dictionary, it seems that "Apple" is also a dictio

Re: [Zope3-Users] Re: NTLM credential plugin

2006-09-14 Thread Chris Withers
Gary Poster wrote: http://www.innovation.ch/personal/ronald/ntlm.html), the problem is that the 4 way handshake has to happen *within a single connection*. Apparently MS abuses HTTP to perform this. Hmmm, I'm not sure this is true. One project I work on has 10,000+ users a day authenticating

Re: [Zope3-Users] Re: NTLM credential plugin

2006-09-14 Thread Chris Withers
Chris McDonough wrote: The right thing to do here is probably to just use something like http://modntlm.sourceforge.net/ and trust the REMOTE_USER environment variable passed by Apache... let somebody else worry about maintaining it. ;-) 'cept it don't work ;-) (well, not in the aforementi

[Zope3-Users] sx.translations 1.0 Released!

2006-09-18 Thread Chris Withers
This package provides components for use with Zope 3 and Zope 2 + Five that implement both ITranslationDomain and ILanguageAvailability as well as supporting the recording of untranslated msgids. This means that, not only do the components support the interface require to provide messages to Z

[Zope3-Users] looking for something like getUtilitiesFor...

2006-09-18 Thread Chris Withers
...but which just gets the names of utilities available for a particular interface. The reason I ask is that getUtilitiesFor returns tuples of name and utility. This seems wasteful, particular when the utilities need to be created from factories, and all I'm then doing with the list is genera

Re: [Zope3-Users] Re: looking for something like getUtilitiesFor...

2006-09-19 Thread Chris Withers
Philipp von Weitershausen wrote: Utilities are never created when they're looked up. They're created when registered. Singletons (instances) are registered with the utility registry, never factories. Ah, yes, of course, I think I'm looking for local utilities... and all I'm then doing with th

Re: [Zope3-Users] Re: looking for something like getUtilitiesFor...

2006-09-19 Thread Chris Withers
Philipp von Weitershausen wrote: Chris Withers wrote: Philipp von Weitershausen wrote: Utilities are never created when they're looked up. They're created when registered. Singletons (instances) are registered with the utility registry, never factories. Ah, yes, of course, I

[Zope3-Users] Security in Zope 3

2006-09-19 Thread Chris Withers
Hi All, Curious about security in Zope 3. In Zope 2 the following would be bad: class X(SimpleItem): pass class Y(SimpleItem): pass class Z(SimpleItem): pass x = X() y = Y() z = Z() x.y = y x.z = z y.z = z ...because z has two containment paths: x.z x.y.z ...which might have different secu

Re: [Zope3-Users] filter possibilities

2006-09-26 Thread Chris Withers
Ivan Horvath wrote: Is there anybody out there? Plenty. why haven't i received any answer? Because no one understood the question, or maybe no one knew the answer, or just maybe nobody had time or nobody felt like it... i thought this list is to raise question if i don't know something,

[Zope3-Users] Alternate root objects?

2006-09-26 Thread Chris Withers
Fred Drake wrote: This should make it a lot easier to use alternate root objects, something it sounds like many of us have run up against. Never bumped into this myself, curious about the need that drove this. can you explain or is there something I can look at? cheers, Chris -- Simplisti

Re: [Zope3-Users] Re: Reportlab threadsafe solution?

2006-09-27 Thread Chris Withers
Chris McDonough wrote: Why not just use a mutex (a recursive lock makes things easier too)? Yeah, Big Fat Lock has been my solution with Reportlab, worked well under high load for several years. I don't use RLocks myself, paranoia says they're not big or fat enough ;-) Chris -- Simplistix

Re: [Zope3-Users] Backing up ZEO

2006-11-06 Thread Chris Withers
Timothy Reaves wrote: Is the recommended way still to use repozo, or is there a different ZEA client for that? You either want to run repozo on the storage server or look at ZRS, which will cost you real money... cheers, Chris -- Simplistix - Content Management, Zope & Python Consultin

Re: [Zope3-Users] exploring Zalchemy

2006-11-07 Thread Chris Withers
catonano wrote: DBAPIError: (Connection failed) (OperationalError) (1045, "Access denied for user 'ODBC'@'localhost' (using password: NO)") This seems like you need to find out how to allow access to you user in mysql. It also looks like you might want to supply a password somewhere... Chris

Re: [Zope3-Users] suppressing menu item

2006-11-16 Thread Chris Withers
Tom Dossis wrote: Is it possible, and if, how? Hi Sascha, I think if you name your page (editform) 'upload.html' rather than 'editmyfile.html' it will effectively override the base view. I suppose so, but what if I don't want to replace it, just wanna get rid of it? Don't know whether you

Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-28 Thread Chris Withers
Shailesh Kumar wrote: Thanx Tom, but I was looking for the general case, not in the context of a request. Like say during application startup I want to know the port number. Is it possible? This is surely in the event log, why don't you look there? Chris -- Simplistix - Content Management,

Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-29 Thread Chris Withers
Shailesh Kumar wrote: Thanx for the hint. I still don't know how to programmatically access the event log. will try to figure it out. Why do you need to know programmatically? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-30 Thread Chris Withers
Shailesh Kumar wrote: I have 2 different zope applications running (on different machines) and they would be talking to each other, one is a master application and there may be multiple instances of the other one (on different machines). I need the port number information for registing one with a

Re: [Zope3-Users] Infrastructure Requirements?

2007-02-17 Thread Chris Withers
Dan Buch wrote: Let's say that we take HA out of the equation Well, okay, but I thought that was the point of this discussion? ;-) and that our supposed infrastructure already has storage and web covered. How so? Are you storing all your data in a relational database? Is someone else run

Re: [Zope3-Users] Infrastructure Requirements?

2007-02-20 Thread Chris Withers
Dan Buch wrote: security: 100% authenticated, all the time (TLS/SSL?) TLS/SSL has little to do with authentication. What percentage of your users will be logged in using a password/sso/nltm/etc? activities: 90% reading 10% modifying objects Yeah, you'll have no problems with zodb based o

Re: [Zope3-Users] What is the difference between acquisition and trivial?

2007-03-01 Thread Chris Withers
Alex Cheng wrote: Thanks. What 'trivial' are you referring to? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.or

Re: [Zope3-Users] Crash

2007-03-13 Thread Chris Withers
Paul Winkler wrote: Pound might also be a reasonable choice here. (Haven't tried it myself.) But yes, you want *something* in front of Zope. When I last encountered a project using pound, pound was the source of no-end of hair pulling and frustration. Now that projects uses Apache, Squid a

Re: [Zope3-Users] How to determine server URL without request

2007-04-24 Thread Chris Withers
Alek Kowalczyk wrote: How to determine my web server URL without having any request around? Well, I'm afraid you will need to set the server url as a constant somewhere... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk __

Re: [Zope3-Users] Re: ZODB? PostgreSQL? (Laurence Rowe)

2007-04-26 Thread Chris Withers
Mark, Jonathan (Integic) wrote: My interpretation of this statement is as follows. You can store information in separate partitions of the ZODB, and ZEO will route requests to the appropriate partition. Correct, as Philipp described. Is that true only for Zope 3, or is it true for Zope 2.1x a

Re: [Zope3-Users] Using Zope3 components outside Zope

2007-05-15 Thread Chris Withers
Andrew Groom wrote: I need to reuse a Zope3 component outside Zope for doing some non-web based regular processing, e.g., bulk emailing, and the component makes use of adapters specified in the configure.zcml for the component. How do I make these adapters available to my non-Zope process ? I'v

[Zope3-Users] zc.queue conflict question

2007-05-17 Thread Chris Withers
Hi Gary, Not sure what list to use for zc.queue so picked zope3-users ;-) Why does adding to identical objects to a queue at the same time result in a conflict? Surely they should both just get added in an artbitary order? cheers, Chris -- Simplistix - Content Management, Zope & Python Cons

[Zope3-Users] Re: zc.queue conflict question

2007-05-20 Thread Chris Withers
Gary Poster wrote: Why does adding to identical objects to a queue at the same time result in a conflict? Surely they should both just get added in an artbitary order? Basically, the constraint allows for more powerful conflict resolution, or at least simpler code. Um, can you explain th

Re: [Zope3-Users] zope.conf options

2007-05-29 Thread Chris Withers
Thierry Florac wrote: I'm looking for the set of parameters that can be used in zope.conf file, including those relatives to ZODB caching options and ZEO configuration. Any link would be greatly welcome... Looks for a schema.xml file in the source distro. That'll be the ZConfig schema used to

[Zope3-Users] ObjectModifiedEvent but not ContainerModifiedEvent

2007-08-17 Thread Chris Withers
Hey All, How do I subscribe a susbcriber to ObjectModifiedEvent but not ContainerModifiedEvent? I have a subscriber that is currently subscribed to IObjectModifiedEvent, but as a result it's getting called when objects are added and removed whereas I only want it when the container is actua

Re: [Zope3-Users] Re: ObjectModifiedEvent but not ContainerModifiedEvent

2007-08-17 Thread Chris Withers
Martin Aspeli wrote: def handler(event): if IContainerModifiedEvent.providedBy(event): return ...which is pretty inefficient. All the subscriber lookup, etc, has to happen to get this far. There must be a better way... Chris -- Simplistix - Content Management, Zope & Python Co

Re: [Zope3-Users] Re: ObjectModifiedEvent but not ContainerModifiedEvent

2007-08-20 Thread Chris Withers
Jeff Shell wrote: Well, a container is an object. It's being modified by the sake of its content changing. Yeah, but the reason there's two types of events would probably be so you can differentiate between them with subscribers. The inheritence structure and nature of how adapters/subscr

[Zope3-Users] best way to get started nowadays?

2007-09-22 Thread Chris Withers
Hey All, I need a little time tracking app so I thought I'd knock it up in Zope 3 with a ZODB backing, just to check on the latest and greatest way to build a Zope 3 app. So, what *is* the "standard" way now and where can I read about how to do it? cheers, Chris -- Simplistix - Content M

Re: [Zope3-Users] best way to get started nowadays?

2007-09-22 Thread Chris Withers
Andreas Jung wrote: I need a little time tracking app so I thought I'd knock it up in Zope 3 with a ZODB backing, just to check on the latest and greatest way to build a Zope 3 app. So, what *is* the "standard" way now and where can I read about how to do it? GROK? I *do* want ot try grok

Re: [Zope3-Users] best way to get started nowadays?

2007-09-22 Thread Chris Withers
Jens Vagelpohl wrote: I was talking about normal, straight Zoep 3 here... Look at Phillip's book? I suspect even the 2nd edition of that is out of date w.r.t. current practice, hence why I'm asking on the list ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting

Re: [Zope3-Users] best way to get started nowadays?

2007-09-22 Thread Chris Withers
Jens Vagelpohl wrote: I suspect even the 2nd edition of that is out of date w.r.t. current practice, hence why I'm asking on the list ;-) I don't think that's the case. I'm pretty sure the full move to eggs along with the introduction of buildout and the recipe-based stuff has happened since

  1   2   >