[Zope3-Users] Re: How to do addform+addmenuitem 'manually'

2005-08-24 Thread jürgen Kartnaller
Adam Groszer wrote: I would like to change the automatically generated forms to template based one's, but I'm stuck at the configuration. browser:addform schema=szscreen.interfaces.ISzerep content_factory=szscreen.app.Szerep label=Uj Szerep name=AddSzerep.html

[Zope3-Users] Re: redirects in a formlib EditForm

2006-02-26 Thread jürgen Kartnaller
'pageform.pt' and fill the slot but don't know how. Is this a possible way and the right way ? How can I use the existing template ? It must be useable with metal:use-macro somehow. Jürgen -- --- Jürgen Kartnaller mailto:juergen_at_kartnaller.at

[Zope3-Users] Re: redirects in a formlib EditForm

2006-02-27 Thread jürgen Kartnaller
Gary Poster wrote: On Feb 26, 2006, at 4:17 PM, jürgen Kartnaller wrote: Joel Moxley wrote: ** What is the best way to use a formlib EditForm to redirect a user after applying changes without fully cloning a handle_edit_action method? ** I'm doing it this way : def render(self

[Zope3-Users] Re: Creating objects in software space when making site

2006-03-08 Thread jürgen Kartnaller
Joseph Method wrote: This should definitely be a prominent How-To somewhere. Definitely, but where is somewhere ! Maybe in the upcoming zope3.org website ? Jürgen -- --- Jürgen Kartnaller mailto:juergen_at_kartnaller.at

[Zope3-Users] Re: Prevent Duplicate Persistency

2006-03-15 Thread jürgen Kartnaller
-- --- Jürgen Kartnaller mailto:juergen_at_kartnaller.at http://www.kartnaller.at http://www.mcb-bregenz.at --- ___ Zope3-users mailing list Zope3-users

[Zope3-Users] Re: how to make static pages

2006-03-16 Thread jürgen Kartnaller
/ Sorry, I'm a little bit lost here Best regards Lorenzo Gil -- --- Jürgen Kartnaller mailto:juergen_at_kartnaller.at http://www.kartnaller.at http://www.mcb-bregenz.at

[Zope3-Users] Re: Traversal Tricks (was Seeking Reference Guide on TAL/TALES/METAL)

2006-04-02 Thread jürgen Kartnaller
Jeff Rush wrote: I need control over which namespace is searched, so I added a couple of generic TALES namespace adapters. Now I can do: h1 tal:content=context/attribute:name / How about : h1 tal:content=context/++attribute++name / to -only- search for a name attribute, and (less

[Zope3-Users] Re: zalchemy alpha svn repository

2006-04-06 Thread jürgen Kartnaller
and the demo. Checkout with : svn co svn://svn.kartnaller.at . Jürgen ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users -- --- Jürgen Kartnaller

[Zope3-Users] Re: Re : Re : formlib problem

2006-04-19 Thread jürgen Kartnaller
Stéphane Brault wrote: Hi Jim, the Items object is my object, linked to my items, table which implements the IItems interface I use for my form: from neteven.interfaces.items import IItems from zope.formlib import form class ItemsForm(form.EditForm): form_fields =

[Zope3-Users] Re: formlib: Some additional text

2006-05-05 Thread jürgen Kartnaller
in the template above but nothing has a real effect. Thanks, Florian -- --- Jürgen Kartnaller mailto:juergen_at_kartnaller.at http://www.kartnaller.at http://www.mcb-bregenz.at

[Zope3-Users] Re: formlib, action decorators and inheritance

2006-07-17 Thread Jürgen Kartnaller
Hi Lorenzo. Lorenzo Gil Sanchez wrote: Hi, I have an add form which a subclass of form.AddForm. It just adds a 'cancel' action. This is my code: class AddView(form.AddForm): Try this here : actions = form.AddForm.actions form_fields = form.Fields(IDocument).omit('__name__')

[Zope3-Users] Re: nextUrl(), passing state in formlib

2006-09-10 Thread Jürgen Kartnaller
Hi Martin. I did it this way : The Edit Form implementation : class AddClub(zope.formlib.form.AddForm): base_template =zope.formlib.form.AddForm.template template = ViewPageTemplateFile('club_add.pt') ... def referer(self): returnself.request.form.get('referer')\

[Zope3-Users] Re: SqlAlchemy

2006-09-14 Thread Jürgen Kartnaller
Hi catonano. As the developer of the z3c.zalchemy package let me give you a short introduction to zalchemy : Zope3 contains a transaction mechanism which allows to plug in as many transaction managers as you like. The main purpose of the zalchemy package was to integrate SQLAlchemy into

[Zope3-Users] Re: absolute_url in the viewlet ?

2006-10-03 Thread Jürgen Kartnaller
Or simply : from zope.traversing.browser.absoluteurl import absoluteURL absoluteURL(self.context, self.request) Jürgen [EMAIL PROTECTED] wrote: self.context.absolute_url looks very zope2ish, absolute_url is no longer inherited, it is an adapted component, so I believe the accepted Zope3 way

[Zope3-Users] Re: Intended scope of viewlets?

2006-10-05 Thread Jürgen Kartnaller
Hi Alec. Alec Munro wrote: Hi List, I'm just getting up to speed with viewlets, having read a thread here and there in the past about them. I've installed the examples provided on this list, and while I believe I understand how they work, I don't understand in what circumstances they are most

[Zope3-Users] Re: Intended scope of viewlets?

2006-10-07 Thread Jürgen Kartnaller
experience with, so I am easily able to follow tutorials, and people who are helping me can more easily understand what I am trying to do. Thanks very much for your help so far, I am excited about implementing viewlets in our upcoming project. Alec On 10/5/06, Jürgen Kartnaller [EMAIL PROTECTED

[Zope3-Users] Re: Seeking a ZCML Example for a CSSViewlet

2006-10-09 Thread Jürgen Kartnaller
Thierry Florac wrote: Le samedi 07 octobre 2006 à 17:00 +1300, Darryl Cousins a écrit : configure zcml:: browser:viewlet name=layout.css for=* manager=barrysmithgallery.layer.public.ICSS permission=zope.Public class=..BRSPublicLayerLayoutCSSViewlet

[Zope3-Users] Re: Intended scope of viewlets?

2006-10-10 Thread Jürgen Kartnaller
From: Alec Munro [EMAIL PROTECTED] To: Jürgen Kartnaller [EMAIL PROTECTED] Cc: zope3-users@zope.org Sent: Friday, October 6, 2006 11:39:23 AM Subject: Re: [Zope3-Users] Re: Intended scope of viewlets? I think I must be missing something about the way skins work now. I've created a master

[Zope3-Users] Re: viewtemplate

2006-10-29 Thread Jürgen Kartnaller
Hi Jakub. eXt wrote: Hi all I recently read Stephan Richter's blog post: http://blogs.lovelysystems.com/srichter/2006/09/20/the-skin-browser-and-lovely-systems-new-development-workflow and intendent scope of viewlets thread:

[Zope3-Users] Re: exploring Zalchemy

2006-11-06 Thread Jürgen Kartnaller
Hi Catonano. What version of SQLAlchemy are you using ? I haven't had a look at SQLAlchemy the last 3 month. Maybe something has changed in SQLAlchemy. If you look at the code in AlchemyEngineUtility.getEngine you see that the engine returned is the plain engine from SQLAlchemy. It seems

[Zope3-Users] Re: z3c.sampledata experts - solved

2006-11-12 Thread Jürgen Kartnaller
Darryl Cousins wrote: Aaah. The light dawns. I found that I need to group all the generators into a single manager in order for them to work together. Exactly. Thats why we have managers, connecting generators together for different tasks. So the configuration that works is:

[Zope3-Users] Re: SVN

2006-11-25 Thread Jürgen Kartnaller
svn://svn.zope.org/repos/main/zc.datetimewidget/trunk/src/zc/datetimewidget Jürgen Dennis Schulz wrote: How to get access to the svn http://svn.zope.org/zc.datetimewidget/trunk/src I can't access it neighter with eclipse nor with tortoise svn. (PROBFIND REQUEST FAILED) Where can I get a

[Zope3-Users] Re: proxied list object in a schema

2006-12-17 Thread Jürgen Kartnaller
Hi Tim, Chat must implement IChat Jürgen Tim Terlegård wrote: Would someone like to explain how to use a list in a schema object without getting ForbiddenAttribute? This is my use case. class IChat(Interface): messages = Attribute('Chat messages') class Chat(Persistent): def

[Zope3-Users] Re: register and unregister Utility

2006-12-27 Thread Jürgen Kartnaller
component.provideUtility for a global utility. See zope.component.interfaces.IComponentRegistrationConvenience Or for local utilities registered in a site manager you use the site manager : sm.registerUtility sm.unregisterUtility See zope.component.interfaces.IComponentRegistry Jürgen

[Zope3-Users] Re: register and unregister Utility

2006-12-27 Thread Jürgen Kartnaller
Florian Lindner wrote: Am Mittwoch, 27. Dezember 2006 19:15 schrieb Jürgen Kartnaller: component.provideUtility for a global utility. I've found that. See zope.component.interfaces.IComponentRegistrationConvenience Ok, for registering. But what to call for unregistering? (I have

[Zope3-Users] Re: Still a skinning problem

2007-02-06 Thread Jürgen Kartnaller
Florian, if you want the url to your current site implement this : class SiteUrlView(object): def __call__(self): return absoluteURL(hooks.getSite(), self.request) And register a page : page name=site_url for=* class=.views.SiteUrlView

[Zope3-Users] Re: broken formlib - form.txt example

2007-02-06 Thread Jürgen Kartnaller
Vinny, why not using form.Form to derive from : class MyForm(form.Form): form_fields = form.Fields(IOrder, omit_readonly=True) Register this as a page and you are up and running. Jürgen Vinny wrote: Hello, Platform details: # pkg_info | grep zope zope-3.3.0 An object-based

[Zope3-Users] Re: Can't find MessageIDFactory

2007-02-09 Thread Jürgen Kartnaller
George Wright wrote: Gidday zope3 users I have been working through the Weitershausen Zope3 book (first edition) and came to stuff on Message IDs and translation domains. I can't import MessageIDFactory (page 125)! from zope.i18nmessageid import MessageIDFactory maybe it should be

[Zope3-Users] Re: Configure.zcml In Hello World Video On WorldCookery.Com Doesn't Work

2007-02-16 Thread Jürgen Kartnaller
Robert Hicks wrote: Mark, Jonathan (Integic) wrote: Here is my configure.zcml file, which is identical to the one Paul Everitt says to write: configure xmlns=http://namespaces.zope.org/browser; page name=hello template=helloworld.html

[Zope3-Users] Re: NotYet error when creating content during container creation

2007-02-25 Thread Jürgen Kartnaller
Christophe Combelles wrote: Hello, I've been spending several hours on a problem which is probably trivial for advanced zope3ers, but it was not for me, so I'm posting the solution in case it's useful for someone (I've not found anything on it).

[Zope3-Users] Re: ZAlchemy demos (z3c.zalchemy) - Unknown directive: engine

2007-03-06 Thread Jürgen Kartnaller
Stefan Krumbiegel (Galileo Press) wrote: I installed Zope3 (http://www.zope.org/Products/Zope3/3.3.1/Zope-3.3.1.tgz) and z3c.zalchemy from the repository (http://svn.zope.org/z3c.zalchemy/trunk/). I followed the steps in the README.txt to try the ZAlchemy demos... An error occured while

[Zope3-Users] Re: lovely.remotetask question

2007-04-03 Thread Jürgen Kartnaller
Maciej Wisniowski wrote: Hi I want to use lovely.remotetask in Z3 application. Use case is very simple: User views page, this causes long running function to be started and Ajax calls from the page check every second if there is a result. I have: 1. content object (Folderish) with instance

[Zope3-Users] Re: lovely.remotetask question

2007-04-04 Thread Jürgen Kartnaller
Maciej Wisniowski wrote: For startup do this : @component.adapter(IDatabaseOpenedEvent) def startRemoteTask(event): Start the amazon remotetask on startup. db = event.database connection = db.open() root = connection.root() root_folder = root.get(ZopePublication.root_name,

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-05 Thread Jürgen Kartnaller
Derek Richardson wrote: Martin Aspeli wrote: Derek Richardson-2 wrote: Martin Aspeli wrote: Stephan Richter-2 wrote: On Wednesday 04 April 2007 13:06, Derek Richardson wrote: I am hoping that Zope 3 assigns an RFC 4122 UUID to each content item. If not, I am hoping there is a

[Zope3-Users] Re: RFC 4122 UUIDs

2007-04-06 Thread Jürgen Kartnaller
Stephan Richter wrote: On Thursday 05 April 2007 15:28, Jürgen Kartnaller wrote: Please do not use an annotation! This is a performance issue. Your data is very small so do not create a new object in the database store it directly as a property on the instance. Every object lookup is expensive

[Zope3-Users] Re: EditForm fails in SiteManager because of containment constraint

2007-04-07 Thread Jürgen Kartnaller
Christophe Combelles wrote: Hello, I have a regular content object which uses the formlib for its edit view. Nothing special, just like a Recipe. But I want this object to only reside in the Site Manager, because it will be used as a configurable local utility (some kind of LocalKitchenTools

[Zope3-Users] Re: Zope 3 port of Zope 2 Scheduler product?

2007-04-22 Thread Jürgen Kartnaller
Hi Scott, I added cron job-like behavior to lovely.remotetask. I'm using it to fire events a specific times. If I find some time I will add a generic task which allows to fire a configurable event. Jürgen Scott Deerwester wrote: Has anyone ported the Scheduler product to Zope 3? Scheduler

[Zope3-Users] Re: getting random results out of a catalogs field index

2007-05-05 Thread Jürgen Kartnaller
Dominique Lederer wrote: Christian Theune wrote: Am Samstag, den 05.05.2007, 17:42 +0200 schrieb Dominique Lederer: hi i would like to retrieve a number of *random* entries out of a catalogs field index. i tried it with first getting the catalogindex-length an then accessing a randomized

[Zope3-Users] Re: Still trying to connect to ZODB from external

2007-05-09 Thread Jürgen Kartnaller
Florian, you should definitely have a look at the package zc.async and/or lovely.remotetask. lovely.remotetask is in heavy use in our applications and contains a scheduler like the scheduler provided in zope. Jürgen Florian Lindner wrote: Hello, I have a function called by a scheduler.

[Zope3-Users] Re: Strange ZODB error - Solved: Zalchemy bug

2007-08-13 Thread Jürgen Kartnaller
I don't think the recent change to the utility is correct. Because the engine property is now volatile it needs to be recreated any time the utility is garbage collected. Maybe that's the reason for these strange things to happen. Jürgen ___

[Zope3-Users] Re: Buildout recipe to create config file from contents in buildout.cfg?

2007-09-29 Thread Jürgen Kartnaller
Derek Richardson wrote: I am using hexagonit.recipe.cmmi to install pound (www.apsis.ch/pound) in front of zope. After I cmmi, I need to install a config file. I'd like to include the pound config file in buildout.cfg, like the zcml section in zc.zope3recipes:application. Is there a simple

[Zope3-Users] Re: Configuring a package to use a file in buildout

2007-11-23 Thread Jürgen Kartnaller
In your buildout you do : [instance] recipe = zc.zope3recipes:instance application = app address = 8080 zope.conf = product-config my-config-name storagedir ${buildout:directory}/parts/log /product-config If you need the log dir precreated you do : [extfiledir] recipe =

[Zope3-Users] Re: lovely.tag behaviour

2007-12-25 Thread Jürgen Kartnaller
Maken Seteva wrote: Hi! I am a bit curious about the behavior of the tagcount when tagging with lovely.tag. Here is a snip from my doctest: Nothing initially sorted(e.getCloud(users=[u'barney'])) [] Update tags for barney e.update(1000, u'barney', [u'foo'])

[Zope3-Users] Re: How to add additional layers to skin?

2008-01-04 Thread Jürgen Kartnaller
xin ni wrote: Hi, dear all, I am using zope 3.3.1 As ZCML browser:skin is deprecated, how to add addtional layers to an existing skin? interface interface=IYourLayerInterface type=zope.publisher.interfaces.browser.IBrowserSkinType name=YourSkinName / Jürgen

[Zope3-Users] Re: how to model a 1-to-1 relation

2008-01-11 Thread Jürgen Kartnaller
john saponara wrote: I want to allow the user to create car and driver objects in a limoService container. Car objects will stand alone, but each driver object should contain a car object by reference (not by value) and the driver add form should allow the user to choose which car the new

[Zope3-Users] Re: how to model a 1-to-1 relation

2008-01-11 Thread Jürgen Kartnaller
Christophe Combelles wrote: Jürgen Kartnaller a écrit : john saponara wrote: I want to allow the user to create car and driver objects in a limoService container. Car objects will stand alone, but each driver object should contain a car object by reference (not by value) and the

[Zope3-Users] Re: How do you develop in zope 3?

2008-02-20 Thread Jürgen Kartnaller
[EMAIL PROTECTED] wrote: Hello, * How do you develop in zope 3? First a few words: After trying from time to time Zope 3 (X3, 3.0...) finally a month ago I jumped in full time. Thanks to Philipp von Weitershausen's book, my previous problems were solved. So I downloaded the zope 3 tar.gz

[Zope3-Users] Re: updating a zodb with a SchemaManager

2008-03-06 Thread Jürgen Kartnaller
Lorenzo Gil Sánchez wrote: Hi, I've been using a zope.app.generations.interfaces.ISchemaManager to keep my database up to date with respect to the changes in the models of my application and everything is well so far. Now I have a tricky situation. My model had an attribute and now I changed

[Zope3-Users] Re: Any performance issues with the macro attribute in the z3c:template directive?

2008-03-06 Thread Jürgen Kartnaller
Andreas Johnsen wrote: Hei all Zopers, I find the macro parameter in the z3c:template very useful for working with templates for viewlets and pagelets. I guess it's slower to extract a html-snippet from within a page template file (by including a macro parameter) then including the entire page