[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

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 Management, Zope

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,

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

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

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 wrong

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 all

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, with

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

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

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 -

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

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

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

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

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

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

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. :-( Oh well, not too attached

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

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

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

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

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

[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: adapter for=zope.publisher.interfaces.browser.IBrowserRequest provides=zope.i18n.interfaces.IUserPreferredLanguages factory=my.package.BrowserItalianLanguage / Thanks! Where does this snippet go in Five-land? cheers,

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 constant

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,

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 allow

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

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, Zope

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 similar

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

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

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

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

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

[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

[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

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

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 think I'm

[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

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,

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

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: browser:page name=upload.html menu=zmi_views title=Upload for=zope.app.file.interfaces.IFile template=file_upload.pt class=.file.FileUpload permission=zope.ManageContent / Is it possible, and if, how? Hi Sascha, I think if you name

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

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

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

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

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

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

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

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 ?

[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

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

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

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

[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

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

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

2007-09-22 Thread Chris Withers
Benji York wrote: Chris Withers wrote: So, what *is* the standard way now and where can I read about how to do it? That's in flux at the moment. I think Philipp's zopeproject is a step in the right direction, but haven't had a chance to look at it closely yet. Where's zopeproject's home

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

2007-09-24 Thread Chris Withers
Philipp von Weitershausen wrote: Yes, it has happened. That doesn't mean all 24 chapters are invalid now. I know that! Just don't take the chapter on Installing Zope for granted. And it's precisely this I'm asking about ;-) My suggestion is to use zopeproject which I've tried to

Re: [Zope3-Users] job opportunities

2007-10-11 Thread Chris Withers
Kevin wrote: p.s. Don't hate me for cross posting ways to make money doing cool things like working with zope3 Nah, we'll just hate you for the PHP bit ;-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope3-Users] Zope3, ZEO and RAMCache

2007-11-22 Thread Chris Withers
Thierry Florac wrote: Hi, I have a simple question : I'm using RAMCache What's RAMCache? with ZEO and several Zope frontends ; when calling cache.invalidate(), are the selected entries invalidated only on the Zope frontend which handled the request, or are they invalidated on each

Re: [Zope3-Users] Zope3, ZEO and RAMCache

2007-11-23 Thread Chris Withers
Thierry Florac wrote: As it's name implies, RAMCache utility only stores it's data in RAM. So I guess that ZODB won't be impacted by cache updates, as other Zope frontends... So what do you mean by find it's way back to ZEO ? And how can you handle this ?? Oh, I have no idea about RAMCache...

[Zope3-Users] using zope.testing's testrunner outside of zope

2007-12-05 Thread Chris Withers
Hi All, I've come to realise that a lot of the python packages I've developed for use outside of zope (twiddler and mailinglogger spring to mind) rely on zope.testing and work best with the testrunner in zope.testing. What's the best way to use this in a non-zope environment? Also, what's

[Zope3-Users] formlib example/how-to?

2007-12-06 Thread Chris Withers
Hey All, I need something like formlib so want to give it a spin. Is there a good how-to or example anywhere? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope3-users mailing

[Zope3-Users] formlib vs z3c.form

2007-12-06 Thread Chris Withers
Chris Withers wrote: I need something like formlib so want to give it a spin. Is there a good how-to or example anywhere? Kapil rightly pointed out off-list that z3c.form is the latest and greatest. Which one is best and where do I go for docs/examples? cheers, Chris -- Simplistix

[Zope3-Users] Adapter registration problem

2007-12-18 Thread Chris Withers
Hi All, Why does the following adapter registration not work? adapter for=.SomeModule.SomeClass * provides=.interfaces.ISomething factory=.factories.Factory name=something / from zope.component import getAdapters from SomeModule import SomeClass from interfaces

Re: [Zope3-Users] Adapter registration problem

2007-12-18 Thread Chris Withers
Stephan Richter wrote: zope.component.getAdapters((MyClass(), object()), ISomething) generator object at 0xb7c56d8c list(zope.component.getAdapters((MyClass(), object()), ISomething)) [(u'something', __main__.MyFactory object at 0xb7b4a06c)] Interesting, what version of zope.component are

Re: [Zope3-Users] using zope.testing's testrunner outside of zope

2008-02-01 Thread Chris Withers
Stephan Richter wrote: If you use buildout, there is a recipe for creating a test runner. See http://svn.zope.org/zope.kgs/trunk/?rev=83325 for a good example. Where's the actual test runner or test runner creater? Also, what's the best way to indicate in setup.py that my package needs

Re: [Zope3-Users] using zope.testing's testrunner outside of zope

2008-02-04 Thread Chris Withers
Stephan Richter wrote: On Friday 01 February 2008, Chris Withers wrote: Stephan Richter wrote: If you use buildout, there is a recipe for creating a test runner. See http://svn.zope.org/zope.kgs/trunk/?rev=83325 for a good example. Where's the actual test runner or test runner creater

Re: [Zope3-Users] Re: [Zope-dev] Zope 3.4.0 candidate 1 Released

2008-03-28 Thread Chris Withers
Marius Gedminas wrote: how bout a zope3 page on myspace?lol Just write a Facebook app that interacts with the list archives ;-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___

Re: [Zope3-Users] Get anonymous and logged users

2008-04-07 Thread Chris Withers
David Pratt wrote: I was thinking of a small wsgi app that puts ip into a database or dict and remove ips if they are not active within a time interval. Sessions will give logged users so they can be differentiate with anonymous. Think that should do it. Seems simple enough, any other ideas?

Re: [Zope3-Users] Zope Product Recommendations

2008-07-15 Thread Chris Withers
Jon Hadley wrote: Hi all, The list of products at Zope.org is fairly daunting for a n00b like me. None of the product there will likely work with Zope 3 anyway ;-) Does anyone have any recommendations in terms of usefulness / wow factor / day to day utility apps? That's a bit like asking

[Zope3-Users] PyCon UK Approaching...

2008-07-16 Thread Chris Withers
Hi All, Apologies for what might be seen as spam but I wasn't even aware this conference took place last year and I live in the UK! So, hopefully you won't mind me letting you know that it's taking place again this year ;-) PyCon UK 2008 is an independent, community-run, community-controlled

[Zope3-Users] getting post data in a Zope 3 view

2008-08-19 Thread Chris Withers
Hi All, I have a view: from zope.publisher.browser import BrowserView class Receiver(BrowserView): def __call__(self): print self.request.bodyStream.read() return 'done' ...which I'm trying to test with the following script: import socket socket.setdefaulttimeout(5)

Re: [Zope3-Users] getting post data in a Zope 3 view [moreinfo: paster]

2008-08-19 Thread Chris Withers
Chris Withers wrote: ...but the processing seems to hang in bodyStream.read() until the socket times out on the client side (ie: I get a timeout exception) at which point the read() returns and shows what I'd expect. What am I doing wrong? I should note that I'm using paster serve here, so

Re: [Zope3-Users] getting post data in a Zope 3 view - paste.httpserver is the problem

2008-08-19 Thread Chris Withers
Chris Withers wrote: I should note that I'm using paster serve here, so I wonder if that has any bearing? Well no, but the fact that my deploy.ini contained the following: [app:main] use = egg:HelloWorld [server:main] use = egg:Paste#http host = 127.0.0.1 port = 8080 ..was the problem

Re: [Zope3-Users] getting post data in a Zope 3 view [moreinfo: paster]

2008-08-19 Thread Chris Withers
Alek Kowalczyk wrote: I would suggest checking if the Content-Length value has been properly set. Yep, httplib.HTTPConnection does this for you. I even checked that it works ;-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting -

[Zope3-Users] building zope 3 instances?

2008-08-19 Thread Chris Withers
Hi All, Am I right in thinking that this is now the canonical way to get a zope 3 instance: http://pypi.python.org/pypi/zc.zope3recipes ? If so, could the owners of these packages hide, remove or otherwise document that they're out of date:

  1   2   >