Re: [Zope3-Users] Get a site

2007-01-22 Thread Florian Lindner
Am Montag, 22. Januar 2007 08:32 schrieb Christian Theune: > Hi, > > Am Sonntag, den 21.01.2007, 14:44 +0100 schrieb Florian Lindner: > > Hello, > > I am in a function that has no context and want to set a site. > > The function is called periodically from a schedu

Re: [Zope3-Users] Get a site

2007-01-23 Thread Florian Lindner
Am Montag, 22. Januar 2007 09:40 schrieb FB: > Hi, > > On Mon, Jan 22, 2007 at 08:32:21AM +0100, Christian Theune wrote: > > [snip] > > > You'd have to open a connection to the database, get the root object and > > use that with setSite(). I don't have the complete spelling for that in > > my head

Re: [Zope3-Users] Get a site

2007-01-28 Thread Florian Lindner
Am Montag, 22. Januar 2007 08:32 schrieb Christian Theune: > Hi, > > Am Sonntag, den 21.01.2007, 14:44 +0100 schrieb Florian Lindner: > > Hello, > > I am in a function that has no context and want to set a site. > > The function is called periodically from a schedu

Re: [Zope3-Users] Re: Skinning problem

2007-01-29 Thread Florian Lindner
Am Freitag, 19. Januar 2007 01:12 schrieb Philipp von Weitershausen: > On 18 Jan 2007, at 22:10 , Florian Lindner wrote: > > Am Donnerstag, 18. Januar 2007 16:24 schrieb Philipp von Hi Philipp, were you able to read me last email in this thread? Do you have any tips or hints for me

Re: [Zope3-Users] zope.scheduler and triggering actions on local objects

2007-02-02 Thread Florian Lindner
Am Donnerstag, 1. Februar 2007 13:41 schrieb Alek Kowalczyk: > Hi, > I need to trigger periodically activities on various local components (i.e > stored in ZoDB). I found zope.scheduler package which seem to be nice > cron-like tool for Zope. But I did not find a clue how to use it with local > com

[Zope3-Users] Still a skinning problem

2007-02-03 Thread Florian Lindner
Hello, I am doing a repost here, since the problem really bugs me and I have gotten no replys anymore... I have a template template.pt which should be applied to all site visited within the skin xgm. and class StandardMacros(BaseMacros): macro_pages = ('skin_macros', ) the te

Re: [Zope3-Users] Still a skinning problem

2007-02-05 Thread Florian Lindner
Am Sonntag, 4. Februar 2007 22:20 schrieb David Johnson: > I will wager to help...since frequently my posts go unanswered > also. I've implemented a few skins with great success. However, if > you wait long enough you could a real response from someone like > Stephen instead of myself. > > > is

Re: [Zope3-Users] Still a skinning problem

2007-02-06 Thread Florian Lindner
Am Dienstag, 6. Februar 2007 11:43 schrieb Mohsen Moeeni: > Until the gurus find time to jump in with `the right` solution... > > On 2/5/07, Florian Lindner <[EMAIL PROTECTED]> wrote: > > The line in the template.pt: > > home > > works fine as long as context

Re: [Zope3-Users] Re: Still a skinning problem

2007-02-08 Thread Florian Lindner
Am Mittwoch, 7. Februar 2007 07:50 schrieb 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 : > >na

Re: [Zope3-Users] Re: Still a skinning problem

2007-02-11 Thread Florian Lindner
Am Donnerstag, 8. Februar 2007 17:23 schrieb FB: > Hi, > > On Thu, Feb 08, 2007 at 04:54:51PM +0100, Florian Lindner wrote: > > Am Mittwoch, 7. Februar 2007 07:50 schrieb Jürgen Kartnaller: > > > Florian, > > > if you want the url to your current site impleme

[Zope3-Users] Error when calling addform

2007-02-11 Thread Florian Lindner
Hello, I have an addform registered: class IBlogComment(IContained): containers(IBlogEntry) name = TextLine( title = u"Your name", description = u"Your name or nickname", default = u"Guest", required = True) email = TextLi

[Zope3-Users] Grant role top zope.anybody

2007-02-17 Thread Florian Lindner
Hello, I've tried to grant a role to zope.anybody (any user that visits the site). Tried it this way: But this gives a unknown principal id error, even though I have: in my principal.zcml. How to do it right? Thanks, Florian ___ Zope3-user

Re: [Zope3-Users] Grant role top zope.anybody

2007-02-18 Thread Florian Lindner
Am Samstag, 17. Februar 2007 23:35 schrieb Marius Gedminas: > On Sat, Feb 17, 2007 at 12:48:05PM +0100, Florian Lindner wrote: > > Hello, > > I've tried to grant a role to zope.anybody (any user that visits the > > site). Tried it this way: > > &g

[Zope3-Users] List a folder on different pages

2007-02-18 Thread Florian Lindner
Hello, is there a howto somewhere online that explains how I can do a folder listing (in general: output of any list) in a way that it is split in different pages and with page numbers and next/previous page links? I would probably be able to invent it myself but maybe someone has described it a

Re: [Zope3-Users] Error when calling addform

2007-02-18 Thread Florian Lindner
Am Dienstag, 13. Februar 2007 12:04 schrieb Stephan Richter: > On Monday 12 February 2007 15:56, David Johnson wrote: > > Many people have offered approaches.  I find the simplest and   > > cleanest approach for declaring interfaces is as follows: > > The cleanest way, in my opinion, is just not to

[Zope3-Users] Zope Book: Internationalizing still up to date?

2007-02-21 Thread Florian Lindner
Hello, is the chapter 18: "Internationalizing a package" in Stephans Zope Book (online version) still up to date or has changed to much so it's not worth reading anymore? Any other good sources about i18n? Thanks, Florian ___ Zope3-users mailing list

[Zope3-Users] Problem with macro

2007-02-25 Thread Florian Lindner
Hello, I have a simple problem. A template: [...] That is registered as view.html. Now I want to use the macro in another page: div metal:use-macro="context/Blog/@@view.html/Blog" /> (tried different variations) but that always causes

Re: [Zope3-Users] Problem with macro

2007-02-26 Thread Florian Lindner
Am Sonntag, 25. Februar 2007 15:03 schrieb Marius Gedminas: > On Sun, Feb 25, 2007 at 02:02:43PM +0100, Florian Lindner wrote: > > I have a simple problem. A template: > > > > >

Re: [Zope3-Users] Problem with macro

2007-02-26 Thread Florian Lindner
Am Montag, 26. Februar 2007 18:14 schrieb Marius Gedminas: > On Mon, Feb 26, 2007 at 02:40:13PM +0100, Florian Lindner wrote: > > Am Sonntag, 25. Februar 2007 15:03 schrieb Marius Gedminas: > > > On Sun, Feb 25, 2007 at 02:02:43PM +0100, Florian Lindner wrote: > > > &

[Zope3-Users] principal without dot

2007-02-28 Thread Florian Lindner
Hello, this is the entry from principals.zcml created by mkzopeinstance (a bit modified): but can I set a id that does not contain a dot? I ask because I display DC creator metadata on a page and something like Florian just looks better than something.Florian. Thanks, Florian _

[Zope3-Users] Widget for displaying Text das HTML

2007-03-01 Thread Florian Lindner
Hello, has anyone yet developed a widget for displaying text as HTML and keeping the linebreaks / paragraphs? Like a text becomes: Hello, has anyone yet developed a widget for displaying text as HTML and keeping the linebreaks / paragraphs? A paragraph when rendered. Is something like that al

Re: [Zope3-Users] Zope3 startup

2007-03-03 Thread Florian Lindner
Am Freitag, 2. März 2007 23:03 schrieb Marius Gedminas: > On Fri, Mar 02, 2007 at 12:31:22PM -0500, Giovannetti, Mark wrote: > > Thanks for confirming some of my questions! Is there a book > > that you would recommend that explains how python deals with > > all this? > > I liked Mark Pilgrim's _Di

Re: [Zope3-Users] Get a site

2007-03-08 Thread Florian Lindner
Am Donnerstag, 8. März 2007 20:10 schrieb Stephan Richter: > On Sunday 28 January 2007 12:23, Florian Lindner wrote: > > exceptions.ValueError: I/O operation on closed file > > > > > > any idea what caused it? > > I think you violate the transaction mechanism. I t

[Zope3-Users] Wrong time displayed

2007-03-11 Thread Florian Lindner
Hello, I use this expression to display the time formatter = self.request.locale.dates.getFormatter('dateTime', 'medium') return formatter.format(date) The server time is set on UTC, no locale is set on the server. The clients local is de_DE and localtime is set to CET. Despite that a wrong ti

[Zope3-Users] Disable raw directive in restructured text

2007-03-15 Thread Florian Lindner
Hello, I'm using this code to render a rest snippet to HTML: def convertToHTML(self, comment): """ Converts a comment from restructured text to HTML. """ text = unicode(comment.content) renderer = ReStructuredTextToHTMLRenderer(text, self.request) return rendere

Re: [Zope3-Users] Disable raw directive in restructured text

2007-03-15 Thread Florian Lindner
Am Donnerstag, 15. März 2007 21:14 schrieb Jonathan: > - Original Message - > From: "Florian Lindner" <[EMAIL PROTECTED]> > To: > Sent: Thursday, March 15, 2007 3:46 PM > Subject: [Zope3-Users] Disable raw directive in restructured text > > > He

Re: [Zope3-Users] Disable raw directive in restructured text

2007-03-15 Thread Florian Lindner
Am Donnerstag, 15. März 2007 22:01 schrieb Jonathan: > - Original Message - > From: "Florian Lindner" <[EMAIL PROTECTED]> > To: > Cc: "Jonathan" <[EMAIL PROTECTED]> > Sent: Thursday, March 15, 2007 4:56 PM > Subject: Re: [Zope3-Users] D

Re: [Zope3-Users] Disable raw directive in restructured text

2007-03-16 Thread Florian Lindner
Am Freitag, 16. März 2007 16:48 schrieb Martijn Pieters: > On 3/15/07, Florian Lindner <[EMAIL PROTECTED]> wrote: > > I've found out it could partly be achieved by using: > > > > def convertToHTML(self, comment): > > ""&qu

[Zope3-Users] Wiki for 'Zope3

2007-03-20 Thread Florian Lindner
Hello, I'm looking for Zope3 wiki package. It should be usable out of the box and also provide a decent design out of the box. (I don't think that there are so many packages, so just name anything and I'll test with my further criteria). ;-) Thanks, Florian

[Zope3-Users] Calling utitlity without context

2007-04-10 Thread Florian Lindner
Hello, I have a function that is called every 60 seconds from zope.scheduler. Due to that it does not have a context. However I need to call a utility. I use that piece of code: def releaseRefreshEvent(): """ Calls all utlities that have a INewsfeed interface registered. """ import pdb;

[Zope3-Users] Add unittest

2007-04-17 Thread Florian Lindner
Hello, I've tried to add a test to my package (I must confess it's my first test.) I've added an directory "tests", created an empty __init__.py in it and a file named test_proxycache.py which contains: import unittest from zope.testing.doctestunit import DocTestSuite from zope.app.container.t

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

2007-05-08 Thread Florian Lindner
Hello, I have a function called by a scheduler. Since it operates outside of Zope context I need to create a connection to the ZODB in order to call a utility: db = getUtility(ZODB.interfaces.IDatabase) conn = db.open() root = conn.root().data['Application'] zope.app.component

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

2007-05-11 Thread Florian Lindner
such an object? Thanks, Florian > On 8. Mai 2007, at 23:02, Florian Lindner wrote: > > File "/home/florian/Zope3/src/ZODB/Connection.py", line 268, in > > close > > raise ConnectionStateError("Cannot close a connection joined to " > >

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

2007-05-24 Thread Florian Lindner
en() has 9 open connections with a pool_size of 7 Regards, Florian > > Stefan > > On 8. Mai 2007, at 23:02, Florian Lindner wrote: > > File "/home/florian/Zope3/src/ZODB/Connection.py", line 268, in > > close > > raise ConnectionStateError("Cann

[Zope3-Users] Blog naming proposals

2007-05-28 Thread Florian Lindner
Hello, some people might have noticed I am developing a Blog package for Zope3. Since it slowly becomes functional (an older version is working at http://xgm.de) I want to release it (under an free and open source licence). One thing still missing is a good name. A name that quickly comes to my m

Re: [Zope3-Users] Blog naming proposals

2007-06-01 Thread Florian Lindner
Am Montag, 28. Mai 2007 schrieb Florian Lindner: > Hello, > some people might have noticed I am developing a Blog package for Zope3. > Since it slowly becomes functional (an older version is working at > http://xgm.de) I want to release it (under an free and open source > licence)

[Zope3-Users] Calling a view in a doc test

2007-06-04 Thread Florian Lindner
Hello, in a doctest I have an object which has a view registered. I want to call this view and test for the XML it returns. How can I call the view so that it is being rendered, just like called by a browser? Thanks, Florian ___ Zope3-users mailing lis

Re: [Zope3-Users] Calling a view in a doc test

2007-06-05 Thread Florian Lindner
Am Montag, 4. Juni 2007 schrieb Marius Gedminas: > On Mon, Jun 04, 2007 at 03:14:16PM +0200, Florian Lindner wrote: > > Hello, > > in a doctest I have an object which has a view registered. > > I want to call this view and test for the XML it returns. > > How can I

Re: [Zope3-Users] Calling a view in a doc test

2007-06-18 Thread Florian Lindner
Am Dienstag, 5. Juni 2007 schrieb Marius Gedminas: > On Tue, Jun 05, 2007 at 04:49:37PM +0200, Florian Lindner wrote: > > Am Montag, 4. Juni 2007 schrieb Marius Gedminas: > > > On Mon, Jun 04, 2007 at 03:14:16PM +0200, Florian Lindner wrote: > > > > in a doctest I h

[Zope3-Users] Thinking about blog entry structure

2007-07-05 Thread Florian Lindner
Hello, I'm currently rethinking my Blog's structure for saving entries. At the moment I use a flat structure with all entries represented by an instance. The naming scheme is like 2007_07_05_Title_of_entry example: [1] But that is not something I really like and I think it will be unhandleable f

[Zope3-Users] Building an admin interface

2007-07-16 Thread Florian Lindner
Hello, I have a rather fundamental problem. Until now the editor of my bloggin software has added, modified and removed blog entries by logging in to the ZMI and use the filesystem like view there. This gives me (as the developer) only very limited control about how it is done. For example: A n

[Zope3-Users] Using svn checkout with zc packages

2007-07-25 Thread Florian Lindner
Hello, I use a Zope3 svn checkout for developement. What is the best way to make this working with the zc packages? I don't want to easy_install the entire Zope checkout but I also want my code to work with easy_install'ed versions of these packages. (don't want to change import statements and s

Re: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-29 Thread Florian Lindner
Am Mittwoch, 25. Juli 2007 schrieb Philipp von Weitershausen: > Florian Lindner wrote: > > Hello, > > I use a Zope3 svn checkout for developement. What is the best way to make > > this working with the zc packages? I don't want to easy_install the > > entire Zope

Re: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-30 Thread Florian Lindner
Am Sonntag, 29. Juli 2007 schrieb Philipp von Weitershausen: > On 29 Jul 2007, at 21:06 , Florian Lindner wrote: > > Am Mittwoch, 25. Juli 2007 schrieb Philipp von Weitershausen: > >> Florian Lindner wrote: > >>> Hello, > >>> I use a Zope3 svn check

Re: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-30 Thread Florian Lindner
Am Montag, 30. Juli 2007 schrieb Stephan Richter: > On Monday 30 July 2007 09:59, Jeff Shell wrote: > > Last time I checked, which I admit has been a while, buildout didn't > > provide any examples of how to transition into buildout style > > development. > > I agree we are totally lacking At the

[Zope3-Users] Creating edit form with z3c.form

2007-08-18 Thread Florian Lindner
Hello, I try to create an edit form with z3c.form but it gives me an system error only: File "/home/florian/Desktop/zope/lib/python/z3c/form/form.py", line 120, in updateWidgets self.widgets = zope.component.getMultiAdapter( File "/home/florian/Zope3/src/zope/component/_api.py", line 103

Re: AW: [Zope3-Users] Creating edit form with z3c.form

2007-08-19 Thread Florian Lindner
Am Samstag, 18. August 2007 schrieb Roger Ineichen: > Hi Florian > > > Betreff: [Zope3-Users] Creating edit form with z3c.form > > > > Hello, > > I try to create an edit form with z3c.form but it gives me an > > system error only: > > [...] > > > ComponentLookupError: > > (( > 0x9f6c68c>, > URL=ht

Re: [Zope3-Users] Creating edit form with z3c.form

2007-08-20 Thread Florian Lindner
Am Sonntag, 19. August 2007 schrieb Hermann Himmelbauer: > Am Samstag, 18. August 2007 12:53 schrieb Florian Lindner: > > Hello, > > I try to create an edit form with z3c.form but it gives me an system > > error only: > > > > File "/home/florian/Desktop/z

Re: [Zope3-Users] Creating edit form with z3c.form

2007-08-20 Thread Florian Lindner
Am Sonntag, 19. August 2007 schrieb Hermann Himmelbauer: > Am Samstag, 18. August 2007 12:53 schrieb Florian Lindner: > > Hello, > > I try to create an edit form with z3c.form but it gives me an system > > error only: > > > > File "/home/florian/Desktop/z

[Zope3-Users] Still trying am to build an EditForm

2007-09-02 Thread Florian Lindner
Hello, I am still trying to build an EditForm using z3c.form. Since my previous thread is rather old I dare to open a new one. I've tried a number of variations and will post the one which is the closest to the example. This is the interface: class IBlogEntry(IContainer): """Interface for

Re: [Zope3-Users] A "user area" for each member

2007-10-08 Thread Florian Lindner
Am Montag, 8. Oktober 2007 schrieb Maken Seteva: > Hello zope3-users, > I'm having some problems trying to figure out how let every member of > my site have > a designated "area". In this area a "blog" folder will be created > when the user is > created (where the user can post blogitems). It would

[Zope3-Users] Calling method of superclass

2006-05-17 Thread Florian Lindner He
Hello, should be a simple problem, but... I have a class that is registered as a NameChooser: from zope.app.container.contained import NameChooser class XGMNameChooser(NameChooser): implements(INameChooser) def chooseName(self, name, object): if IAbbreviation.providedBy(ob

<    1   2   3