[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

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 accessing:

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 the centershock skin and are working

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. configure xmlns=http://namespaces.zope.org/browser;

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 implements interface=.test.registrationForm / to content class=.buddy.Buddy - 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

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 more undestandable and more flexibility. Hi, You have

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 input ... statemenets were generated, without any html 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.

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', CS.centershock.centershock.Centershock object at 0xb757a46c) That is problem? You object don't have '__name__' attribute. See

[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

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 edit and add

[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

Re: [Zope3-Users] standart views

2006-02-19 Thread Garanin Michael
permission=zope.Public class=.browser.I18nInfoViewlet template=viewlet.pt layer=tfws weight=3 / Hope this helps. Regards, Darryl On Sat, 2006-02-18 at 19:05 +0300, Garanin Michael wrote: Where are exists 'agreement about standart views'? I think

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

[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

[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

[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

[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

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 -, 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 through browser. It's dynamics skin and local

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 -, 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 through browser. It's dynamics skin and local

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

[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 theme'

[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

[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

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' without '.svn' (i have disk quote in my

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) Via ZMI I

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 my site-folder

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

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

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

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, name='', context=None

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

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

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

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

[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