[Zope3-Users] Re: Traverse to nearest site in menu action

2005-03-31 Thread jürgen Kartnaller
Florian Lindner wrote: Hello, I implemented to traverser to the nearest site using the code in the posting: [Zope3-Users] Re: Traversing to nearest site Von: jÃrgen Kartnaller <[EMAIL PROTECTED]> An: [EMAIL PROTECTED] Datum: 17.03.2005 13:53 it works: When I'm calling http://horus.local:8080/++ski

[Zope3-Users] Re: Traverse to nearest site in menu action

2005-04-02 Thread jürgen Kartnaller
Stephan Richter wrote: On Thursday 31 March 2005 09:23, Florian Lindner wrote: I implemented to traverser to the nearest site using the code in the posting: [Zope3-Users] Re: Traversing to nearest site Von: jÃrgen Kartnaller <[EMAIL PROTECTED]> An: zope3-users@zope.org Datum: 17.03.2005 13:53 Why

[Zope3-Users] Re: Traverse to nearest site in menu action

2005-04-02 Thread jürgen Kartnaller
Stephan Richter wrote: On Saturday 02 April 2005 04:38, jÃrgen Kartnaller wrote: Why in the world would you want to do that? This seems just awful. What is your use case? In my case I want to have the possibility to jump back to my base view (which is the default view of my site) from wherever I am

[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. > > 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
on(_("Apply"), condition=haveInputWidgets) > def changed(self, action, data): > #TypeError: 'Action' object is not callable > self.handle_edit_action(action, data) > self.request.response.redirect('../../@@overview.html') I'm

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

2006-02-26 Thread jürgen Kartnaller
of 'FormBase' contains the slot 'extra_info' which could be filled with some hidden input fields. I defined a new template for my own EditForm. But now I would like to use the existing template in formlib 'pageform.pt' and fill the slot but don't know how. I

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

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

2006-02-27 Thread jürgen Kartnaller
Joel Moxley wrote: > On 2/26/06, Gary Poster <[EMAIL PROTECTED]> 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 >>>>&

[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

[Zope3-Users] Re: Prevent Duplicate Persistency

2006-03-15 Thread jürgen Kartnaller
iption = Text( >> title=u"Description", >> description=u"Description of the website", >> default=u"", >> required=False) >> >> How can I prevent Mark objects from having the same url? So if a Mark >> object exists in BookMarker with Mark.url="h

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

2006-03-16 Thread jürgen Kartnaller
le 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: > > How about : > > to -only- search for a name attribute, and (less frequently): > > See zope.app.traversing for other namespaces. Jürgen _

[Zope3-Users] Re: zalchemy alpha svn repository

2006-04-06 Thread jürgen Kartnaller
t;> Checkout with : >> svn co svn://svn.kartnaller.at . >> >> >> Jürgen >> >> ___ >> Zope3-users mailing list >> Zop

[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
> > > @@standard_macros/page is my template in my skin. The skin is derived from > the > rotterdam skin. > > Where do I add the fill-slot? I've tried a various locations in the template > above but nothing has a real effect. > > Thanks, > > Florian --

[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: zalchemy integration

2006-08-12 Thread Jürgen Kartnaller
Hello Carlo. The implementation of the container is more or less a demonstation on how to use sqlalchemy object together with a zope container. To request an object for a zope container a name is used. In the case of sqlalchemy objects a generalization. This generalization make it possible to

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

[Zope3-Users] Re: Viewlets for menus

2006-09-21 Thread Jürgen Kartnaller
Hi Florian. Look at z3c.menu We use this heavily in our applications. Jürgen Florian Lindner wrote: Hello, I've read various times that viewlets would be a good replacements for menu (or was it content providers?). How would such a replacement look like? Could anyone give a sketch of how to

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

2006-10-02 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 u

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

2006-10-06 Thread Jürgen Kartnaller
ething I don't have much 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 Ka

[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:: Maybe I'm wrong, but it seems that the "weight" parameter is not used by the default implementation of the CSS viewlet manager... Correct ? Correct, but look at z3c.viewlet. Jürg

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

2006-10-10 Thread Jürgen Kartnaller
ssion="zope.Public" > layer=".interfaces.MySkin" > /> > > template="myskin_master.pt" > for=".interfaces.ISimplePage" > layer=".interfaces.MySkin" > /> > > Kevin Smith > > - Original Mess

[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: http://thread.gmane.org/gmane.comp.web.zope.zope3.user/4652/foc

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

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

[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 __init__(

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

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

[Zope3-Users] Re: interrupt formlib and AddForm

2007-01-13 Thread Jürgen Kartnaller
Peter Koppatz wrote: Hi, with formlib I want's to add a new object to a container. This is done with AddForm. If an object with the same name already exists I want to redirect to this object in the container. How is this achieved? The last line I found with google but dosn't work becau

[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 : Now you can use context/@@site_url anywhere. Juergen Florian Lindner wrote: Am Diensta

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

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

[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: http://namespaces.zope.org/browser";> XML is case sensitive "Icontainer" should be "IContainer"... It's not XML that is case sensitive, it

[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). http://mail.zope.org/pipermail/zope3-users

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

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

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

[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 third-par

[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: execution time of a request?

2007-04-07 Thread Jürgen Kartnaller
By the way, marius, thanks for your great profiling library. We used it this week to track down our performance issues and could increase the speed of some of our functions by a factor of 10 or more(!) The zope index checkin's this week result from using your profile decorator. Especially the

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

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

[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. Since

[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

[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 = storagedir ${buildout:directory}/parts/log If you need the log dir precreated you do : [extfiledir] recipe = lovely.recipe:mkdir path = parts/log To access the prod

[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']) >>> e.up

[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 is deprecated, how to add addtional layers to an existing skin? Jürgen ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

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

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

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

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