[Zope3-Users] Zope3-wrapper for SQLObject

2005-12-22 Thread Garanin Michael
Hello! I develop Zope3 wrapper for SQLObject (sqlos-alternative). Features: 1. you can make multi-level containers tree: ZODB-Folder->SQL Container->SQL Container ...-> SQL Item 2. zsqlmap use DA-wrapper

[Zope3-Users] Sum of Decimals

2006-02-03 Thread Garanin Michael
Hello! My content object A has attributes 'cost' & 'tax' - Decimal (from decimal). I try: A.cost + A.tax ---> security error '+' method for Decimal-class. I solve problem by 'zope.proxy.removeAllProxies' , but i think it's b

Re: [Zope3-Users] Simple Acquisition

2006-02-04 Thread Garanin Michael
В Сбт, 04/02/2006 в 21:01 +0100, Jean-Marc Orliaguet пишет: > > David Johnson wrote: > > >>>I have created a ZPT Page which I have no trouble access

Re: [Zope3-Users] Trying to use browser:form -> 404

2006-02-10 Thread Garanin Michael
Do you register the 'centershock'skin? Write this part of zcml-code, please. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Trying to use browser:form -> 404

2006-02-10 Thread Garanin Michael
В Птн, 10/02/2006 в 14:22 +0100, Florian Lindner пишет: > Am Freitag, 10. Februar 2006 14:05 schrieb Garanin Michael: > > Do you register the 'centershock'skin? > > Write this part of zcml-code, please. > > Yes, there are a number of page directives that use

Re: [Zope3-Users] Trying to use browser:form -> 404

2006-02-10 Thread Garanin Michael
I simulate this for Buddy from buddydemo (see attached) ==> it is normal work for Buddy-object! I think you make mistakes: 1) __init__ for 'view' always get 3-parameters (self, context, request) 2) getData must return dictionary. http://namespaces.zope.org/browser"; xmlns:zope="http://

Re: [Zope3-Users] Trying to use browser:form -> 404

2006-02-10 Thread Garanin Michael
;browser:form'). В Птн, 10/02/2006 в 15:34 +0100, Florian Lindner пишет: > Am Freitag, 10. Februar 2006 15:18 schrieb Garanin Michael: > > I simulate this for Buddy from buddydemo (see attached) ==> it is normal > > work for Buddy-object! > > > > I think you

Re: [Zope3-Users] Trying to use browser:form -> 404

2006-02-10 Thread Garanin Michael
В Птн, 10/02/2006 в 17:18 +0300, Garanin Michael пишет: > I simulate this for Buddy from buddydemo (see attached) ==> it is normal > work for Buddy-object! for work my example don't forget insert """ """ to - tag.

Re: [Zope3-Users] Trying to use browser:form -> 404

2006-02-10 Thread Garanin Michael
I think 'browser:form' will be 'deprecated'. Try use 'zope.formlib' for new automatic-generated forms. It's easy and more undestandable and more flexibility. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-u

Re: [Zope3-Users] Trying to use browser:form -> 404

2006-02-10 Thread Garanin Michael
В Птн, 10/02/2006 в 17:47 +0100, Florian Lindner пишет: > Am Freitag, 10. Februar 2006 15:55 schrieb Garanin Michael: > > I think 'browser:form' will be 'deprecated'. > > Try use 'zope.formlib' for new automatic-generated forms. It's easy and &g

Re: [Zope3-Users] Trying to use browser:form -> 404

2006-02-10 Thread Garanin Michael
> I've played with zope.formlib before that. I didn't manage to generate a > entire form, just the statemenets were generated, without any > headers or anything like that. So I need to add them manually with > python code or a template. Can you tell me how I can generate a form. > Basically t

Re: [Zope3-Users] Trying to use browser:form -> 404

2006-02-11 Thread Garanin Michael
> File "/home/florian/Zope3/src/zope/schema/_bootstrapfields.py", line 171, > in > get > return getattr(object, self.__name__) > ForbiddenAttribute: ('blablubb', object at 0xb757a46c>) > That is problem? You object don't have '__name__' attribute. See 'buddydemo.Buddy' please. There ar

[Zope3-Users] Announcement: zsqlmap

2006-02-16 Thread Garanin Michael
Announcement zsqlmap-project: zsqlmap - it's Zope3-wrapper for SQLObject. i borrow idea from sqlos (http://codespeak.net/z3/sqlos) and add features. Homepage: https://code.keysolutions.ru/trac/zsqlmap/ Enjoy. ___ Zope3-users mailing list Zope3-users@zo

RE: [Zope3-Users] nextURL: add vs edit

2006-02-17 Thread Garanin Michael
Difference beetween AddView and EndView 1) for AddView: 'self.context' is view (name '+') 2) for EditView : 'self.context' is content-object I think this is 'standart' behavior. Use 'zope.formlib' for advanced customization your forms. В Птн, 17/02/2006 в 13:42 -0500, Shaun Cutts пишет: > Ok, >

RE: [Zope3-Users] nextURL: add vs edit

2006-02-17 Thread Garanin Michael
В Птн, 17/02/2006 в 17:02 -0500, Shaun Cutts пишет: > Ok -- > > Thanks Gary and Michael. > > I've defined "changed" in my mixin, and it works: > > def changed( self ): > self.request.response.redirect(self.nextURL()) > > And I can still use the same mixin to do redirect for both ed

[Zope3-Users] standart views

2006-02-18 Thread Garanin Michael
Where are exists 'agreement about standart views'? I think it's need for development components for site. Example of my problem: I have two 3th-party components 'Forum' and 'News'. And i want easy insert 'Last Forums Items'-box and 'Last News'-box into left column of my site pages. I think authors

Re: [Zope3-Users] standart views

2006-02-19 Thread Garanin Michael
e.zcml: > > name="tfws_i18ninfo" > for="*" > manager="zope.app.boston.ILeft" > permission="zope.Public" > class=".browser.I18nInfoViewlet" > template="viewlet.pt" > layer="tfws

Re: [Zope3-Users] standart views ('slot-box views')

2006-02-19 Thread Garanin Michael
Sorry, i think i mistake in my question. I only want offer rule for develop components: if you develop component for use in web-sites, then develop few 'slot-box views' for easy insert into sites. 'slot-box views' it's little box with standart zope3-css (div.box etc.) Example: 1) I develop 'NewsM

[Zope3-Users] Re: [Zope3-dev] 'standart viweletManger' for web-site

2006-02-19 Thread Garanin Michael
I mistake in my 'stadart views' post. My question is transformed. 'Boston' layer has 'standart' viewlet managers (IHead, ICSS, ILeft, etc.). But 'Boston' layer it's layer for ZMI, and he not include right-side slot. Question: Where layer for web-site (not ZMI)? I offer create 'z3site'-layer and de

[Zope3-Users] modified layout from web

2006-02-22 Thread Garanin Michael
I very want modified layout ('skin_macros') of my site throw web. How i can do it? I try create 'PageFolder'-utility but after create 'skin_macros'-ZPT my site down & crach (is it bug?). Thanks. ___ Zope3-users mailing list Zope3-users@zope.org http://

[Zope3-Users] zope3.org

2006-03-04 Thread Garanin Michael
Hello! I see url ' http://www.zope3.org:8080/++skin++tracker/tracker/49' in 'bugtracker/TODO.txt'. But 'zope3.org' - it's television company site. Why? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] Announce: z3site - theme engine for Zope3-sites

2006-03-17 Thread Garanin Michael
Hello! I publish simple theme-engine for Zope3-sites. I use it for customize GUI(and ZMI) of Zope3-sites through browser. It's dynamics skin and local utitlity for theme storage. Features: 1) you can change GUI of web-site (and ZMI) through web (on fly, without restart server, and without Zope3-

Re: [Zope3-Users] Re: Announce: z3site - theme engine for Zope3-sites

2006-03-17 Thread Garanin Michael
В Сбт, 18/03/2006 в 00:22 +, Martin Aspeli пишет: > On Fri, 17 Mar 2006 20:37:04 -0000, Garanin Michael > <[EMAIL PROTECTED]> wrote: > > > Hello! > > I publish simple theme-engine for Zope3-sites. I use it for customize > > GUI(and ZMI) of Zope3-sites throug

Re: [Zope3-Users] Re: Announce: z3site - theme engine for Zope3-sites

2006-03-18 Thread Garanin Michael
В Сбт, 18/03/2006 в 00:22 +, Martin Aspeli пишет: > On Fri, 17 Mar 2006 20:37:04 -0000, Garanin Michael > <[EMAIL PROTECTED]> wrote: > > > Hello! > > I publish simple theme-engine for Zope3-sites. I use it for customize > > GUI(and ZMI) of Zope3-sites throug

[Zope3-Users] export\import content

2006-03-19 Thread Garanin Michael
Hello! I have not empty Folder on computer. How can i import Folder to other computer? Where is analog of Zope2 import\export (zexp)? Thanks! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Announce: z3site - theme engine for Zope3-sites

2006-03-21 Thread Garanin Michael
> > > Hi, > I'm getting this error. > I guess your product uses boston app. > is this dependent on http://svn.zope.org/Zope3/branches/roger-bostonskin/ ? > > Sorry, i use Zope3-trunk-version. I think boston-skin include to release... For solve problem you can remove "zope.app.boston.boston" fr

Re: [Zope3-Users] problems with contains and containers

2006-03-21 Thread Garanin Michael
В Втр, 21/03/2006 в 19:21 +0100, Lorenzo Gil Sanchez пишет: > Just for the record, the following implementation works: > I think i known. Simple experiment for second implementation: try add simple Field-attribute to IMyContent and you get error again ;-) For more details about error see: http:

[Zope3-Users] Announce: z3site - theme engine for Zope3-sites (ver 0.02)

2006-03-22 Thread Garanin Michael
> Hi, > I'm getting this error. > > I guess your product uses boston app. > is this dependent on http://svn.zope.org/Zope3/branches/roger-bostonskin/ ? > > I make new release 0.02: - add viewlet managers: IHead, ICSS, IJavaScript - remove 'zop.app.boston' dependency - remove 'create demo t

[Zope3-Users] announce: pure ORM for Zope3

2006-04-26 Thread Garanin Michael
Hello! In new branch zsqlmap-project i develop light plugable ORM for Zope3(only!). It's NOT wrapper for sqlobject, but i use sqlobject naming style. Supported: StringCol and other; ForeignKey & MulitpleJoin; AND\OR \BETWEEN\...\LIKE-sql conditions for select\selectBy; Now exist two orm-adapters

[Zope3-Users] zope.thread.local == threading.local ?

2006-05-01 Thread Garanin Michael
Hello! I use 'zope.thread.local', but Python2.4 has 'threading.local'-class from Jim Fulton. Where diff? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] how work with thread with Twisted-instance?

2006-05-01 Thread Garanin Michael
Hello! I use Zope3-trunk (with 'Twisted'-instance). I want use 'thread.get_ident' for identify requests (and use with 'zope.thread'), but 'thread.get_ident' always return one value and 'zope.thread' return always one result. Why? How i can do 'identify' requests? With ZServer i use 'get_ident'&'zo

[Zope3-Users] export from trunk

2006-05-06 Thread Garanin Michael
Hello! I try run "svn export svn://svn.zope.org/repos/main/Zope3/trunk Zope3" but i don't get few packages: transactions, twisted etc. How i can do get full 'trunk-version' without '.svn' (i have disk quote in my hosting)? Thanks! ___ Zope3-users mailin

Re: [Zope3-Users] export from trunk

2006-05-07 Thread Garanin Michael
В Вск, 07/05/2006 в 15:46 +0400, Dmitry Vasiliev пишет: > Garanin Michael wrote: > > I try run "svn export svn://svn.zope.org/repos/main/Zope3/trunk Zope3" > > but i don't get few packages: transactions, twisted etc. How i can do > > get full 'trunk-version

Re: [Zope3-Users] export from trunk

2006-05-07 Thread Garanin Michael
В Вск, 07/05/2006 в 19:44 +0400, Garanin Michael пишет: > svn export svn://svn.zope.org/repos/main/Zope3/trunk Zope3 sorry. it's my mistake. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

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

2006-05-29 Thread Garanin Michael
В Пнд, 29/05/2006 в 20:26 +0200, Achim Domma пишет: > Hi, > > I have implemented ArticleFolder and Article like this: > > > class Article(Persistent,Contained): > implements(IArticle) > title=u'' > body=u'' > > class ArticleFolder(Folder): > implements(IArticleFolder) > >

Re: [Zope3-Users] export\import content

2006-06-23 Thread Garanin Michael
В Вск, 19/03/2006 в 21:57 +0300, Garanin Michael пишет: > Hello! > I have not empty Folder on computer. How can i import Folder to other > computer? Where is analog of Zope2 import\export (zexp)? > Thanks! > How i can make backup

Re: [Zope3-Users] problem adding an item to the zmi_views menu

2006-07-12 Thread Garanin Michael
> /> > name="ViewProject.html" > permission="zope.Public" > template="projectview.pt" > for="finance.project.Project" try: for="finance.interfaces.IProject" > menu="zmi_views" title="ViewI

Re: [Zope3-Users] Performance

2006-08-27 Thread Garanin Michael
В Вск, 27/08/2006 в 05:02 -0500, David Johnson пишет: > 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

[Zope3-Users] sendmail

2006-10-22 Thread Garanin Michael
Hello! I want use zope.sendmail. There are "pollingInterval"-attribute in "IMailQueueProcessor" but i not find his in implementations (grep -r 'pollingInterval' . => only interfaces.py). But i find hardcode "time.sleep(3) " in delivery.py. Q: it's bug? ___

Re: [Zope3-Users] Registered utility is never found

2006-12-12 Thread Garanin Michael
FB wrote: Hi, is there any reason why a registered utility which is persistently stored inside the site manager is never found via zapi.getUtility(IMyInterface) ? More information: I wrote a package ( fb ) containing some components making the developer's life easier. The package provides a

Re: [Zope3-Users] Registered utility is never found

2006-12-12 Thread Garanin Michael
FB wrote: On Tue, Dec 12, 2006 at 04:42:56PM +0300, Garanin Michael wrote: traceback, please. Hmm ... how? It just doesn't return the utility as expected (it returns None). There is no error shown in any way. from APIDOC: """ * *|getUtility(interface, n

Re: [Zope3-Users] Registered utility is never found

2006-12-13 Thread Garanin Michael
FB wrote: Hi, On Tue, Dec 12, 2006 at 12:39:37PM -0500, Benji York wrote: Tom Gross wrote: you are trying to lookup the utility with the name None. If you don't specify a name when registering the utility, omit the second parameter: zapi.getUtility(IInitIndicator) In other

Re: [Zope3-Users] Zope3 with RDBMS (avoiding ZODB)?

2007-02-28 Thread Garanin Michael
Stefan Krumbiegel (Galileo Press) wrote: 3.3 Also there is 'zsqlmap: Zope3 wrapper for SQLObject' (http://www.zope.org/Members/garanin/zsqlmap). This is not really a solution for us because the version number is 0.01b and the author says: 'NOTE: i tested only postgres.' Not really a capable prod

Re: [Zope3-Users] default page based on roles?

2007-02-28 Thread Garanin Michael
Shailesh Kumar wrote: Hi, Is it possible to control the default page for a particular object based on the roles/permissions that a user has? The browser:defaultPage directive as such doesn't support this. Will I have to write a custom traverser or something like that for this? Thanx in a

Re: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-07 Thread Garanin Michael
Christophe Combelles wrote: . I want to define objects that represent Companies. A company can be either a client, or a provider, or both, or in the future it could be of another type. When the user creates a company, it must choose "client", "provider", or both. The choice would assign a

Re: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-09 Thread Garanin Michael
Christophe Combelles wrote: Christophe Combelles a écrit : Hi, I'm playing again with the notion of categories of objects. I have two main goals: - 1) I must let the user choose the category of an object added to the zodb. For this, I must be able to retrieve the list of c

Re: [Zope3-Users] OOBTree instances lose attributes upon restart

2007-04-06 Thread Garanin Michael
Douglas Douglas wrote: Hi everyone. I've been fighting with this for a while now. So I mail the list for a suggestion. I have a `Variable` class wich I subclass from OOBTree, because I need a dictionary with the min, max options that OOBTree methods give. My object is supposed to store datetime

[Zope3-Users] How i can get IRequest

2007-04-17 Thread Garanin Michael
Hello! How i can get IRequest in my event handler (i has only context)? Thanks! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users