[Zope3-Users] Re: How to organize common code for Z2 and Z3

2005-04-15 Thread Philipp von Weitershausen
Lennart Regebro wrote: I think the trick would be to write code for Zope 3 and put it in a top-level package, like textindexng. Inside this package you add a package TextIndexNG that is expected to be added to Zope 2's lib/python/Products. Seems reasonable. But my gut reaction is to have this

[Zope3-Users] Re: How to test for object metatype

2005-04-18 Thread Philipp von Weitershausen
Cliff Ford wrote: I begin to see the light: with an update method in a class supporting the view I was getting a forbidden attribute error. I am not sure how to deal with that so I have left the update method in the content class but put all code to do with the edit form in the view class. Not

[Zope3-Users] Re: __name__ in auto generated addforms

2005-05-30 Thread Philipp von Weitershausen
Florian Lindner wrote: Hello, is it possible to let the user enter the name of a object (the __name__ attribut) in forms that are auto generated from schema data (via the addform directive)? Florian, this is a question about using Zope 3, so please continue this discussion on zope3-users

[Zope3-Users] Five 1.0.2 released!

2005-07-12 Thread Philipp von Weitershausen
Five 1.0.2 released! The Five team is happy to release Five 1.0.2, a bugfix release for Five 1.0. The changes since Five 1.0.1 (Zope 2.8.0) are: * Fixed some issues with bridged interfaces: Bases and Methods were not bridged correctly. extends() was never True. *

[Zope3-Users] Five 1.1b released!

2005-07-14 Thread Philipp von Weitershausen
Five 1.1b released! === The Five team is happy to release Five 1.1b, a beta release for the upcoming version 1.1 of Five. Compared to the 1.0 release, Five 1.1 brings a few more Zope 3 features to the Zope 2 world, such as * Zope 3-style i18n (including fallback to existing

[Zope3-Users] Zope X3 3.0.1 released!

2005-07-27 Thread Philipp von Weitershausen
Acknowledgements Much thanks to everyone who contributed to this release: Jim Fulton, Stephan Richter, Bjorn Tillenius, Yvo Schubbe, Stuart Bishop, Stefan H. Holek, Tim Peters, Dmitry Vasiliev, Gintautas Miliauskas, Tres Seaver, Philipp von Weitershausen

[Zope3-Users] Five 1.1 released!

2005-10-04 Thread Philipp von Weitershausen
Five 1.1 released! == The Five team is happy to release Five 1.1 final. Compared to the 1.0 release, Five 1.1 brings a few more Zope 3 features to the Zope 2 world, such as * Zope 3-style i18n (including fallback to existing Zope 2 i18n machinery), * Zope 3 to Zope 2

[Zope3-Users] New mailinglist for Zope 3 translators

2005-10-06 Thread Philipp von Weitershausen
Hello all, [Sorry for the cross-post, please CC replies to [EMAIL PROTECTED] only.] two months ago, I started an initiative [1] to translate Zope 3.1 using Ubuntu's Launchpad system [2]. Since then, I've received a lot of emails from numerous volunteers around the world and many of them made

[Zope3-Users] Five 1.2b and 1.3b released!

2005-11-02 Thread Philipp von Weitershausen
be nested). Thanks to Sidnei da Silva for the initial development back in March, Lennart Regebro and Philipp von Weitershausen for bringing it up to date for inclusion into Five 1.2. * Improved event support Five can now make standard Zope 2 containers (aka object managers) send Zope 3

[Zope3-Users] Re: Zope3 design question

2005-11-10 Thread Philipp von Weitershausen
rubberduckee wrote: Hi, I'm relatively new to Zope 3 (by have some Zope 2/ Plone developement experience) and I'm need to get some light on some architectural challenges that I'm currently faced with. I know that this might be too general a question (or perhaps a dumb one) but I'm hoping

[Zope3-Users] Re: Zope3 design question

2005-11-12 Thread Philipp von Weitershausen
rubberduckee wrote: We've once had the ability of editing schemas TTW, but I'm not sure if this is still the case. At least I don't think it's part of a release tarball of Zope 3. Philipp Thanks, will do that in the future. Do you know why this particular feature was 'dropped'? Well,

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

2005-11-12 Thread Philipp von Weitershausen
Simon Hang wrote: Dear all, I'm trying to use apache as zope3's frontend, and do NTLM authentication as well. Well, traditionally it's been part of Zope's responsibility to do credentials extraction and user authentication. That doesn't mean it couldn't be done by the webserver in front of

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

2005-11-12 Thread Philipp von Weitershausen
Florent Guillaume wrote: Well, Zope 3 doesn't care that Apache has authenticated your user. It doesn't see that. If you want the Zope 3 security system to interact with Apache's, here's a suggestion (not sure if it'll actually work): - Have Apache forward the REMOTE_USER CGI env variable,

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

2005-11-12 Thread Philipp von Weitershausen
Simon Hang wrote: Thanks for the help. I feel not comfortable to put the username in URL. User may be able to bypass the authentication and direct access zope with username in URL. True, it's not the nicest solution. But you could make it safer by first stripping the according request

[Zope3-Users] Re: Stephan Philipp: New versions of your books?

2005-12-12 Thread Philipp von Weitershausen
Florian Lindner wrote: I think both your books are, due to the fast pace of Zope3 development outdated in large sections. Are there any plans for new version of these books? Or any new Zope3 books upcoming? I've had plans about continuing my documentation effort beyond a first edition of

[Zope3-Users] Re: URGENT RFC: Is anyone using response.write in Zope 3?

2005-12-30 Thread Philipp von Weitershausen
Jim Fulton wrote: When we refactored the Zope 3 pubisher to work more closely with WSGI, we decided to remove the response.write method. We should have written a proposal for this, but we failed to do so. Over the last few weeks there has been much discussion of this in which I asserted many

[Zope3-Users] Re: substitute for deprecated response.write()?

2005-12-30 Thread Philipp von Weitershausen
Adam, first, thanks for bringing this to my attention! I wasn't aware at all that one of my examples was using response.write(). It wouldn't have changed anything, I think, as I think response.write() was bound to go anyways, but at least I should have reacted in some sort of way. Sorry about

[Zope3-Users] Re: Get classes implementing Interface

2005-12-30 Thread Philipp von Weitershausen
Florian Lindner wrote: Am Mittwoch, 28. Dezember 2005 14:48 schrieb Jim Fulton: Florian Lindner wrote: Hello, how can I get all classes that implement a specific interface? What interface do I need to search for, when I want all objects that can be added and work as container? IContainer seem

Re: [Zope3-Users] Re: Get classes implementing Interface

2005-12-30 Thread Philipp von Weitershausen
Florian Lindner wrote: my first use case is that I want to enhance the HomefolderManager to make it possible to select something else than a Folder to be created automatically. Right now I have forked a version of the HomefolderManager and just changed in the code. But I would like to have

[Zope3-Users] Re: How come no IView?

2006-01-01 Thread Philipp von Weitershausen
Chris McDonough wrote: It will probably not comfort you that the concept of a view (at least by that name) is going to disappear sometime post-3.2. Views as a separate concept have already been gone since Zope 3.1. It was only Zope X3 3.0 that had them as separate components in a separate

[Zope3-Users] Re: session id

2006-01-02 Thread Philipp von Weitershausen
Simon Hang wrote: How can I use zope session id(client_id) in .pt template? I'm not understanding zope's session id management very well. What do you need the client id for? It's a detail that shouldn't bother you when dealing with sessions, at least not in a ZPT. Sometime, I can get session

[Zope3-Users] Re: sqlos, sites and local utilities

2006-01-05 Thread Philipp von Weitershausen
Jeff Shell wrote: What about using zope.app.component.hooks.setSite? It sets the site on a zope.thread.local based object, and I believe most utility lookups fall back on that setting if context is not supplied. All component look-ups *first* look at the closest site (which comes from the

[Zope3-Users] Five 1.2 and 1.3 released!

2006-01-07 Thread Philipp von Weitershausen
sites (only that they can be nested). Thanks to Sidnei da Silva for the initial development back in March, Lennart Regebro and Philipp von Weitershausen for bringing it up to date for inclusion into Five 1.2. * Improved event support Five can now make standard Zope 2 containers (aka object

[Zope3-Users] Re: Tagging content

2006-01-08 Thread Philipp von Weitershausen
Igor Stroh wrote: Hi there, I'm trying to figure out the best way to implements a general solution for tags (like tags on flickr or del.icio.us). So far I've two different approaches, maybe someone could comment on them: 1) Store the tags as attributes of the particular content types.

[Zope3-Users] Re: More MySQL

2006-01-15 Thread Philipp von Weitershausen
Jim Washington wrote: David Johnson wrote: Thanks to everyone for the MySQL assistance. We use Debian and I just installed the python-mysqlda (seems obvious in retrospect). In any case, after I install the python adapater, I get the following when starting zope:

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

2006-02-15 Thread Philipp von Weitershausen
Reinoud van Leeuwen 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 designed for documents like this, and easily parsable. lots of

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

2006-02-15 Thread Philipp von Weitershausen
Fred Drake wrote: So with that in mind, if you do not know how to do professional desktop publishing, then LaTeX is a much better options, since it results look really professional. We also have lots of cool support for Python documentation in LaTeX, which makes it really easy to work with

[Zope3-Users] Re: (distributed) Communication between components

2006-02-17 Thread Philipp von Weitershausen
Dear Reinhold, zope3-dev is about the development *of* Zope 3 itself, not the development *with* Zope 3. This is a question for zope3-users, I'm therefore CCing zope3-users instead of zope3-dev. So, I would like to know the forms of communication between distributed components or distributed

[Zope3-Users] Re: Recipe with default values

2006-02-19 Thread Philipp von Weitershausen
Marco Mariani wrote: In chapter 5.4 of the cooking book, Philipp says: [...] We could now implement a custom factory, for example one that allows us to set initial attribute values of the recipe. (We would normally extend the Recipe class with a constructor to do that, but let us implement

[Zope3-Users] Re: The Zope Software Certification Program and Common Repository Proposal

2006-02-20 Thread Philipp von Weitershausen
Andrew Milton wrote: +---[ Stephan Richter ]-- | Hello everyone, | | With the development of Zope 3, the Zope developers committed to a new | development process and higher software quality guidelines. With the adoption | of Zope 3 technologies in the wider Zope

[Zope3-Users] Re: [Zope] Re: The Zope Software Certification Program and Common Repository Proposal

2006-02-21 Thread Philipp von Weitershausen
Andrew Milton wrote: +---[ Philipp von Weitershausen ]-- | Andrew Milton wrote: | +---[ Stephan Richter ]-- | | Hello everyone, | | | | With the development of Zope 3, the Zope developers committed to a new | | development process

[Zope3-Users] Re: [Zope] Re: The Zope Software Certification Program and Common Repository Proposal

2006-02-21 Thread Philipp von Weitershausen
Andrew Milton wrote: +---[ Philipp von Weitershausen ]-- | | Handing over ownership to the ZF and therefore having signed a | Contributor Agreement are the terms of the svn.zope.org repository, just | like that code is to be made ZPL. The license part is irrelevant

[Zope3-Users] Re: Sending data to widgets

2006-04-18 Thread Philipp von Weitershausen
Hi Frank, I need to send some data from a view class to all widgets that are used in the form. Unfortunately some of the widget that need to receive those data are contained e.g. in lists or dictionaries. I tried to do somthing like this: request._data=somedata My view class would

[Zope3-Users] Re: Use Case for a Tree of Adapter Registries?

2006-04-18 Thread Philipp von Weitershausen
Jeff Rush wrote: I've read the code for adapter registries, how there is a global one and any number of local ones, arranged in a tree and that each can be disabled. But I can't figure out when you'd want to make use of such an arrangement. The docstrings and .txt files use abstract

[Zope3-Users] Re: Blobs in Z3 anyone?

2006-04-18 Thread Philipp von Weitershausen
David Pratt wrote: Hi I had asked this question about a week ago with no response. Filesystem blobs are a valuable means of storing large object data in the filesystem instead of the ZODB. I have previously written a repository product in zope2 for blobs but would like to migrate to Z3. Does

Re: [Zope3-Users] Re: Sending data to widgets

2006-04-18 Thread Philipp von Weitershausen
Hi Frank, My problem is not about data the widget should display but about data that controls the widget's behaviour. In this case my form consists of some widgets representing a schema interface plus a special I18NController widget which is e.g. used to define, in which order different

[Zope3-Users] Re: Object modified or not

2006-04-18 Thread Philipp von Weitershausen
Frank Burkhardt wrote: how does Zope decide, if a persistent object is modified? What I'm interested in: Does myobject._foo='bar' delattr(myobject,'_foo') del myobject._foo :) make Zope create a new version of the 'myobject' in zodb? Yes. Persistent objects are regarded

[Zope3-Users] Re: Can't build Zope on OS X

2006-04-18 Thread Philipp von Weitershausen
Eric Williams wrote: Hi all. I’m having trouble building Zope on OS X. I’ve searched all over for a solution but could not find anything. Any help is much appreciated! [lots of stuff snipped] Seems to mee like you were using MacPython 2.4.3. According to

[Zope3-Users] Re: zql

2006-04-23 Thread Philipp von Weitershausen
Andreas Jung wrote: i'm going to call a zodb query language zql for now, because i like it and think it's catchy ;) ...i know there's a java query parser called zql also, but i'm not proposing a formal name, so i'm going to use it anyway. i'd think of zql as just an OQL specific to the zodb.

[Zope3-Users] Re: development workflow

2006-04-26 Thread Philipp von Weitershausen
Jachin Rupe wrote: hi there I'm new to Zope development from the PHP realm. When I worked in PHP I would, write a little code, save it, refresh the browser and see what happened. Initially I tried to do that in Zope and as you can imagine I decided very quickly that having to restart

[Zope3-Users] Re: Newbie Struggling with Zope 3

2006-05-07 Thread Philipp von Weitershausen
Hi Sid, I am starting to work with Zope3 am having trouble understanding a few things. I bought the Zope 3 Book and installed the worldcookery application in my instance's lib/python directory and configured the .zcml files too. But when I do a http://localhost:8080/worldcookery, I get:

[Zope3-Users] Re: Problems with ZDC upgrading to Zope 3.3.0b1

2006-05-11 Thread Philipp von Weitershausen
Stephan Richter wrote: On Thursday 11 May 2006 03:44, Tom Dossis wrote: Is there a migration operation I need to run? Clicking evolve: http://localhost:8080/++etc++process/@@generations.html doesn't seem to do the trick. It seems to me that no generation scripts were written. :-( This is a

Re: [Zope3-Users] Re: Problems with ZDC upgrading to Zope 3.3.0b1

2006-05-11 Thread Philipp von Weitershausen
Stephan Richter wrote: On Thursday 11 May 2006 10:06, Philipp von Weitershausen wrote: On the other hand, it seems that the BBB packages that would guarantee the pickle to be loaded were not included in the release (http://www.zope.org/Collectors/Zope3-dev/603). This is not enough. You

Re: [Zope3-Users] Re: Problems with ZDC upgrading to Zope 3.3.0b1

2006-05-11 Thread Philipp von Weitershausen
Philipp von Weitershausen wrote: Stephan Richter wrote: On Thursday 11 May 2006 10:06, Philipp von Weitershausen wrote: On the other hand, it seems that the BBB packages that would guarantee the pickle to be loaded were not included in the release (http://www.zope.org/Collectors/Zope3-dev/603

[Zope3-Users] Re: How to make content object return a view?

2006-05-26 Thread Philipp von Weitershausen
David Johnson wrote: I have a content object, that I want to return a view. How is this done? It usually isn't. This situation seems to come up frequently for me. What do you do? Content objects are usually dull. The only thing they do is store data. If you're using ZODB persistency, then

[Zope3-Users] Re: getUtility outside of the zope.app

2006-05-26 Thread Philipp von Weitershausen
David Pratt wrote: Hi. For the use of interfaces outside of zope.app, does getUtility have any value? Many thanks. I don't understand this question. getUtility finds utilities that have been registered somewhere. It finds them by interface and optionally a name. Where this interface comes from

[Zope3-Users] Re: Problem with unicode decode error

2006-05-28 Thread Philipp von Weitershausen
Hi, I'm reading in a file to create content objects out of this file, I'm using the csv.reader object for that purpose. From what I read below it seems like you're storing the raw string data and aren't decoding non-ASCII characters. Content objects usually store unicode data because it's

[Zope3-Users] Re: Problem with containment and @@absolut_url

2006-05-30 Thread Philipp von Weitershausen
Achim Domma wrote: Hi, I have implemented ArticleFolder and Article like this: class Article(Persistent,Contained): implements(IArticle) title=u'' body=u'' class ArticleFolder(Folder): implements(IArticleFolder) Via ZMI I can add, edit and delete articles

[Zope3-Users] Re: IObjectModifiedEvent

2006-06-01 Thread Philipp von Weitershausen
Marco Mariani wrote: I've never used events. I've subscribed to modification events on my objects: subscriber for=.interfaces.IMyObject zope.lifecycleevent.interfaces.IObjectModifiedEvent handler=.events.modifiedObject / Unfortunately,

[Zope3-Users] Re: Render ZPT template to send rich-text HTML mail

2006-06-01 Thread Philipp von Weitershausen
[EMAIL PROTECTED] wrote: Hi, I need to send some rich-text (HTML) mail, containing information based on many objects. It would be nice to render it using ZPT provided by Zope instead of manual creation of HTML text. Can I (ab)use ZPT for such purpose? I need to design ZPT template and write

[Zope3-Users] Re: interface machinery

2006-06-06 Thread Philipp von Weitershausen
Warren Turkal wrote: On Friday 02 June 2006 14:52, Stephan Richter wrote: Yes, you can use zope.interface separately from the rest. You can also use zope.schema and zope.component without many other dependencies. Are there any examples of this type of usage? (see all the other posts) Note

[Zope3-Users] Re: IEndRequestEvent question

2006-06-07 Thread Philipp von Weitershausen
Florent Guillaume wrote: But the base one should really send an event there. How about adding a IAfterCall publication event? How about making the publication more event-y and less subclass-y in the first place? I think instead of calling various methods on the publication when we want things

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

2006-06-10 Thread Philipp von Weitershausen
Michael Dexter wrote: I've tried. I've failed. I've searched for a few hours now trying to determine what things like ++etc++, ++resource++, @@contents.html, but as with all things Zope, I need to know the answer before I can ask the question. The best I can come up with is that they have

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

2006-06-12 Thread Philipp von Weitershausen
Chris Withers wrote: 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 Right. What's the problem though? You can toy

[Zope3-Users] Re: Vocabularies beyond SimpleVocabulary

2006-06-12 Thread Philipp von Weitershausen
Piotr Chamera wrote: I am just working on similar code. I'm beginner in zope and python, so I post this code for improvements from other users. I have defined simple factory for my vocabularies (root folder is hardvired in the code, it gets subfolder by name and creates title from given

[Zope3-Users] Re: Question about ForbiddenAttribute...

2006-06-13 Thread Philipp von Weitershausen
Thierry FLORAC wrote: Hi, I'm trying to build a sample photos management application for Zope-3.2, with the following interfaces and classes : - class GalleryFolder(Folder) def getImages(self): return [item for item in self.values() if

[Zope3-Users] Re: Vocabularies beyond SimpleVocabulary

2006-06-13 Thread Philipp von Weitershausen
Piotr Chamera wrote: Philipp von Weitershausen wrote: Piotr Chamera wrote: def getVocabulary(context, items_container, title_field): list = [] root=zapi.getRoot(context) for (oid, oobj) in root.get(books).get(items_container).items(): obj = removeAllProxies(oobj) Don't

[Zope3-Users] Re: Unable to Get Zope 3 running

2006-06-21 Thread Philipp von Weitershausen
Daniel Roberson wrote: I am new at this but I have been unable to get Zope 3 to run correctly from the internet or from another computer on my internal network. I downloaded Python 2.4.0 and installed it. Note that at least Python 2.4.1 is required. I recommend the latest revision of Python

Re: [Zope3-Users] Re: Access request object from content_factory

2006-06-21 Thread Philipp von Weitershausen
Rupert Redington wrote: The hack displayed above (going thru the security interaction) should not be considered a standard procedure for getting at the request in places where you don't have it. Content objects are dull. They do nothing. Other stuff does things *to* them. Mats' solution is the

[Zope3-Users] Re: Splitting ZODB ?

2006-06-21 Thread Philipp von Weitershausen
Chris Withers wrote: 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

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

2006-06-21 Thread Philipp von Weitershausen
Jim Fulton wrote: Zope 3 doesn't support mounting, but the same functionality is mostly trivially obtained using the ZODB multi-database APIs. Well, ok, then mounting support could a nice sprint topic :) ___ Zope3-users mailing list

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

2006-06-26 Thread Philipp von Weitershausen
Chris Withers wrote: If you do need a separate identifier of some kind, you can use a key reference or use an integer id from an intid utlity, which simply assigns integers to key references. What's a key reference? - zope.app.keyreference - zope.app.intid Philipp

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

2006-06-26 Thread Philipp von Weitershausen
Chris Withers wrote: 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 ;-) There are usually doctests or at least interfaces. That isn't quite rtsl, it's much more

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

2006-06-27 Thread Philipp von Weitershausen
Chris Withers wrote: 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

[Zope3-Users] Re: why does HTTPResponse insist on a text mime type for unicode?

2006-06-29 Thread Philipp von Weitershausen
Stefan Rank wrote: I am trying to make my content object IExternallyEditable, and I ran up against the following code in zope.publisher.http.HTTPResult._implicitResult (line 849ff):: if isinstance(body, unicode): try: if not content_type.startswith('text/'):

[Zope3-Users] Re: testrunner layers example and classmethods

2006-07-10 Thread Philipp von Weitershausen
Paul Winkler wrote: I have a need to have a batch of tests that do some expensive setup once for the whole batch. AFAICT this is what layers are for. Indeed. One question though... Why do the examples in zope/testing/testrunner-ex/samplelayers.py have setUp() and tearDown() as

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

2006-07-24 Thread Philipp von Weitershausen
Tim Penhey wrote: On Friday 21 July 2006 16:24, Tim Penhey wrote: Hi All, Going through Philipp's book some more... Once the sections get to content types the samples always show: from zope.app.debug import Debugger debugger = Debugger(db=var/Data.fs,

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

2006-07-24 Thread Philipp von Weitershausen
Tim Penhey wrote: On 7/24/06, *Philipp von Weitershausen* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Note that in newer Zopes we have a debug shell which saves you a lot of typing. Simply execute bin/zopectl debug from your instance (you don't even have to put $INSTANCE

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

2006-07-24 Thread Philipp von Weitershausen
Achim Domma wrote: Philipp von Weitershausen wrote: Tim Penhey wrote: Does this mean that a second edition is in the works? Yup. Nice to hear! The first edition helped me a lot. Is there already a time frame when it will be available? No, I don't know how long it will take me

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

2006-07-25 Thread Philipp von Weitershausen
Chris Withers wrote: 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

[Zope3-Users] Re: zope3's TAL ZPT reference

2006-08-08 Thread Philipp von Weitershausen
Michele Amori wrote: I wrote this statements in a zpt page (with zope 3.2): tal:content=here/title tal:content=container/title tal:content=template/title tal:content=context/title but no one of that seems to work. Zope returns an error. So Zope2.7's documentation is not useful for z3

[Zope3-Users] Re: zope3's TAL ZPT reference

2006-08-08 Thread Philipp von Weitershausen
Warren Turkal wrote: On Tuesday 08 August 2006 05:01, Michele Amori wrote: but no one of that seems to work. Zope returns an error. So Zope2.7's documentation is not useful for z3 developers. The shear lack of recent and easily available documentation definitely makes zope3 hard to

[Zope3-Users] Re: Upgrading from 3.2.0 to 3.2.1

2006-08-08 Thread Philipp von Weitershausen
Kim L. Jacobsen wrote: I've been playing around with Zope 3.2.0, installed psycopgDA, configured DB-connections, installed other products and made some modifications in ZMI (can't quite remember all of them). Now I want to upgrade to 3.2.1. Do I have do start from scratch again, or is there a

[Zope3-Users] Re: Interface or adapter for AddMenuItems

2006-08-08 Thread Philipp von Weitershausen
John Smith wrote: Hi, I have a content container object and I was wondering what is the easiest/best way to access the list of allowed content types which may be added to this container. Is there an interface to which I can adapt my object, or a menu service/utility? I looked in the

[Zope3-Users] Re: Permissions for updateOrder() on OrderedContainer

2006-08-08 Thread Philipp von Weitershausen
Arne Nordmann wrote: Hi folks, first of all: I'm working with Zope 3.3 and Python 2.4. I created a hierarchical structure of OrderedContainers - some kind of a tree - and now want to sort it with Python. To move the containers from level to level in this tree with the ObjectMover is no

[Zope3-Users] Re: default defaultView

2006-08-08 Thread Philipp von Weitershausen
Florian Lindner wrote: Hello, is there a kind of default defaultView? So when a object is called and no defaultView is defined that a view like index.html is called? I thought yes, but a test has not proven that. If there is really no such default, why? I think a little bit more (optional)

[Zope3-Users] Re: default defaultView

2006-08-10 Thread Philipp von Weitershausen
Florian Lindner wrote: Am Mittwoch, 9. August 2006 00:27 schrieb Philipp von Weitershausen: Florian Lindner wrote: Hello, is there a kind of default defaultView? So when a object is called and no defaultView is defined that a view like index.html is called? I thought yes, but a test has

[Zope3-Users] Re: ZCML updating question

2006-08-10 Thread Philipp von Weitershausen
David Pratt wrote: Hi. I am trying to update an old package. Can someone suggest an updated equivalent for the following: content class=.mypackage.myclass implements interface=zope.app.annotation.IAttributeAnnotatable / implements

[Zope3-Users] Re: Editing a Page on zope.org

2006-08-11 Thread Philipp von Weitershausen
FB wrote: I wrote some some howtos and receipes about Zope3 and would like a link on http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/FrontPage to point to those pages. I got an account for zope.org, I logged in but I don't know how to edit this page. Is this a

[Zope3-Users] Re: psycopda

2006-08-12 Thread Philipp von Weitershausen
garry saddington wrote: I am trying to install psycopda for zope 3 by following the instructions in the readme file with the svn checkout of this product and I get the following error when starting Zope. I have tried searching for rdb module but have

[Zope3-Users] Re: Zope 3 site?

2006-08-18 Thread Philipp von Weitershausen
Jegenye 2001 Bt (Miklós Prisznyák) wrote: Is there any news on the planned Zope 3 site? zope3.org http://zope3.org still points to some worthless stuff and I couldn't see much activity in the Zope SVN either. I don't think there will be an extra site dedicated to just Zope 3. Rather, I expect

[Zope3-Users] Zope 3.3.0 beta 2 released!

2006-08-19 Thread Philipp von Weitershausen
The Zope 3 development team is proud to announce Zope 3.3.0 beta 2. Zope 3 is the next major Zope release and has been written from scratch based on the latest software design patterns and the experiences of Zope 2. Cleanup of the Zope 3 packages has continued to ensure a flexible and scalable

[Zope3-Users] Re: looking for a tutorial for installing zope3 and psycopgda

2006-08-22 Thread Philipp von Weitershausen
bussiere maillist wrote: it's been more tnah two month that i'am trying to install zope3 and make psycopgda working with it. So if someone have a good tutorial explaining how to do that and if it could work i'll be glad. And i'am ready to pay about 40$ (by paypal if needed) if it works,

Re: [Zope3-Users] Re: looking for a tutorial for installing zope3 and psycopgda

2006-08-23 Thread Philipp von Weitershausen
bussiere maillist wrote: i have a debian sarge 3.1 i've use the latest version of zope by the svn i'am using : PostgreSQL 7.4.7 on i386-pc-linux-gnu, compiled by GCC i386-linux-gcc (GCC) 3.3.5 (Debian 1:3.3.5-13) and postgres-dev is still installed on it : If you're on Debian, why don't

[Zope3-Users] Re: z3c vs. the zorg

2006-08-24 Thread Philipp von Weitershausen
Benji York wrote: Stephan's ZSCP proposal suggests using the package name z3c for community packages. IOW, packages that aren't part of a larger collection like lovely.*, zc.*, etc.. There are currently several z3c packages in existence. The zope3.org packages currently use the package

[Zope3-Users] Re: z3c vs. the zorg

2006-08-24 Thread Philipp von Weitershausen
Stephan Richter wrote: On Thursday 24 August 2006 16:54, Benji York wrote: Stephan's ZSCP proposal suggests using the package name z3c for community packages. IOW, packages that aren't part of a larger collection like lovely.*, zc.*, etc.. There are currently several z3c packages in

[Zope3-Users] Re: it works, now (was: Re: zope 3 book - is it still meaningful ? )

2006-08-26 Thread Philipp von Weitershausen
catonano wrote: Hello people, Hello Andreas and Adam, I found the test file. It's InstanceFolder/bin/test and there's also InstanceFolder/bin/test.bat Well, I called it with what follows: D:\ZopeIstanzabin\test.bat --dir src\book\messageboard Total: 0 tests, 0 failures, 0 errors Try:

Re: [Zope3-Users] Re: it works, now

2006-08-26 Thread Philipp von Weitershausen
catonano wrote: D:\cd ZopeIstanza D:\ZopeIstanzabin\test.bat -s book.messageboard Traceback (most recent call last): ... ImportError: No module named book.messageboard Then it can't find the book.messageboard module, it's very simple. You probably didn't install it right. Philipp

[Zope3-Users] Re: pau, testbrowser, HTTP Error 403: Forbidden

2006-08-27 Thread Philipp von Weitershausen
Darryl Cousins wrote: Hi all, In normal browser when logged in as a pau principal I am successfully redirected to the standard unauthorized view when accessing a view forbidden to the user. But accessing the same view in tests using testbrowser and loggd in as the same principal I get:

[Zope3-Users] Re: Performance

2006-08-27 Thread Philipp von Weitershausen
David Johnson wrote: Good morning. I’ve built and application for Zope 3 and it seems to run fairly slow (the logs show 2-5 seconds for a single page load). The graphic usage is relatively low (I’ve tested the same html file in PHP and the speed is 0.10-0.20 seconds). I'm not sure what

[Zope3-Users] Re: It really works, now (was: it works, now)

2006-08-27 Thread Philipp von Weitershausen
catonano wrote: BUT now the startup output gives me some warnings. Here they are (this is the step 1 of the book): D:\ZopeIstanzabin\runzope d:\ZopeIstanza\lib\python\book\messageboard\configure.zcml:9: DeprecationWarning : The 'content' alias for the 'class' directive has been

[Zope3-Users] Re: how to know if a principal has the right permissions

2006-08-27 Thread Philipp von Weitershausen
Lorenzo Gil Sanchez wrote: Hello, I have a INewsItem content type that anonynmous users can see but only editors can create/edit/remove. I have a view which list all my news items. I want to show links from this view to the add, edit and remove views for every news item but only if the

Re: [Zope3-Users] Re: Performance

2006-08-28 Thread Philipp von Weitershausen
David Johnson wrote: Okay. I think I figured it out. It seems that images and large objects are the main culprit. We have very few images, mainly just icons for the content types and tabs. I discovered this by using lynx and with IE disabling images. So the new question is: how do I

Re: [Zope3-Users] Re: how to know if a principal has the right permissions

2006-08-28 Thread Philipp von Weitershausen
Lorenzo Gil Sanchez wrote: El dom, 27-08-2006 a las 23:53 +0200, Philipp von Weitershausen escribió: zope.security.canAccess zope.security.canWrite Nice, I didn't know about those and I ended writing my own solution: def canAdd(self): interaction = ZopeSecurityPolicy

Re: [Zope3-Users] Re: how to know if a principal has the right permissions

2006-08-28 Thread Philipp von Weitershausen
Lorenzo Gil Sanchez wrote: Right. Because you're not supposed to poke at __data. The two underscores should scare you off! By the way, this is a rule of thumb: Whenever you get ForbiddenAttribute errors, you're doing something wrong. Either: 1. you're missing security declarations

Re: [Zope3-Users] Re: how to know if a principal has the right permissions

2006-08-28 Thread Philipp von Weitershausen
Lorenzo Gil Sanchez wrote: El lun, 28-08-2006 a las 20:49 +0200, Philipp von Weitershausen escribió: Lorenzo Gil Sanchez wrote: Right. Because you're not supposed to poke at __data. The two underscores should scare you off! By the way, this is a rule of thumb: Whenever you get

[Zope3-Users] Re: Server Side includes

2006-08-29 Thread Philipp von Weitershausen
Jon Emmons wrote: In Zope 2 I could do something like dtml-var header.html to include a common header file. That's DTML. We don't really use DTML anymore, not even on Zope 2. Read up on Zope Page Templates (ZPT). I am guessing this has been whacked out of Zope 3, because I am getting

[Zope3-Users] Re: Functional Tests

2006-08-29 Thread Philipp von Weitershausen
David Johnson wrote: I decided it’s about time to use functional tests. I’ve been setting them up with the following code and I get the following error (I’ve never gotten it to work): import time import unittest from zope.app.tests.functional import BrowserTestCase from

[Zope3-Users] Re: Virtual hosting problem

2006-08-30 Thread Philipp von Weitershausen
Lorenzo Gil Sanchez wrote: Hi, I know Zope3 has great support for virtual hosting and you can easily set it up using the Rewrite module of Apache as described here: http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Book/virtualhosting.html My problem is that my

[Zope3-Users] Re: Time for a Decimal field type in zope.schema?

2006-08-31 Thread Philipp von Weitershausen
Lennart Regebro wrote: On 8/31/06, Darryl Cousins [EMAIL PROTECTED] wrote: Hi, For what it may be worth, a Decimal field: Just a note: The format should be localized. In some countries 0,01 is used. (yes, a comma). I think you're confusing format and precision. Format is a rendering

  1   2   3   4   >