Re: [Zope-dev] zope generations updating objects with method name change

2013-03-11 Thread Joshua Immanuel
Hello Tres, Thanks for the reply. On Sun, 2013-03-10 at 23:32 -0400, Tres Seaver wrote: > Method names are not stored in the ZODB at all: only the instance > attributes are stored. Apologies. I've reported it wrong. I was not able to reproduce the problem after a fresh start.

[Zope-dev] zope generations updating objects with method name change

2013-03-10 Thread Joshua Immanuel
nent (grok Model)? -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev **

Re: [Zope-dev] zope.org upgraded

2012-11-14 Thread Joshua Immanuel
are not in English. Please make English as default language. Thank you. -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist - Zope-Dev@zop

Re: [Zope-dev] Zope Toolkit - 1.0.6 and 1.1.4 released

2012-02-13 Thread Joshua Immanuel
ted with it. So, that we can know the important changes that have taken place in associated packages. Regards Joshua -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed m

Re: [Zope-dev] Zope Toolkit - 1.0.6 and 1.1.4 released

2012-02-13 Thread Joshua Immanuel
t; > But in general there's no important changes in the ZTK maintenance > releases, unless you've been tracking a specific issue relevant to one > of your applications. Thanks for the info. Regards Joshua -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co

Re: [Zope-dev] Passing variable across pages

2011-09-21 Thread Joshua Immanuel
nk whether I should stop cross posting in my future mails and which mailing list should I single out. Please advice. Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part ___

Re: [Zope-dev] [BlueBream] locatability of objects inside a list in bluebream

2011-08-25 Thread Joshua Immanuel
nk I'll have to read all your posts under the category zope3 :) Regards -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist - Zope-De

[Zope-dev] locatability of objects inside a list in bluebream

2011-08-25 Thread Joshua Immanuel
for always cross posting to both bluebream and zope-dev mailing lists. Also I find another not so active zope3-users mailing list available. As most of my queries gets answered from zope-dev mailing list I am still in confusion on which mailing list to single out. Kindly bear with me.] Regards --

Re: [Zope-dev] [BlueBream] getting size of zope.schema.List from a view in bluebream

2011-08-23 Thread Joshua Immanuel
at file in zcml solved the issue. Apart from the PersistentList and PersistentDict I see many other BTree related allow attributes configurations. I guess these configurations are not available in any other place and including this '_protections.zcml' is safe. Thanks for the

Re: [Zope-dev] getting size of zope.schema.List from a view in bluebream

2011-08-23 Thread Joshua Immanuel
;, '__radd__', ]), > ... > > Can you do: > >from zope.security.proxy import removeSecurityProxy > >li = removeSecurityProxy(self.context.list_field) > print type(li) As I am using the persistent List in the implementation of IMyObject

Re: [Zope-dev] getting size of zope.schema.List from a view in bluebream

2011-08-23 Thread Joshua Immanuel
removeSecurityProxy sz = len(removeSecurityProxy(self.context.list_field)) ... li = removeSecurityProxy(self.context.list_field) res = li[offset:limit] I guess this is a cleaner approach. Regards -- Joshua Immanuel HiPro IT Solutions P

Re: [Zope-dev] getting size of zope.schema.List from a view in bluebream

2011-08-23 Thread Joshua Immanuel
Hello all, On Tue, 2011-08-23 at 13:16 +0530, Joshua Immanuel wrote: > def getListSize(self): > return len(self.list_field) > > This solves my issue. This solves just the '__len__' issue. But if do the sli

Re: [Zope-dev] getting size of zope.schema.List from a view in bluebream

2011-08-23 Thread Joshua Immanuel
e interface definition, I omitted them in my original post. -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist - Zope-Dev@zope.org https

[Zope-dev] getting size of zope.schema.List from a view in bluebream

2011-08-23 Thread Joshua Immanuel
;' list_field = PersistentList() ... def getListSize(self): return len(self.list_field) This solves my issue. However, I am curious to know whether is this the only solution available to the above issue. Am I going in the right direction?

Re: [Zope-dev] [BlueBream] disabling zope.schema constraint check in edit form

2011-08-19 Thread Joshua Immanuel
z3c.form it makes me wonder whether to follow their trail or to stick with zope.formlib. -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist

Re: [Zope-dev] disabling zope.schema constraint check in edit form

2011-08-18 Thread Joshua Immanuel
the useful tip. I'll use this :) Regards Joshua -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zo

Re: [Zope-dev] [BlueBream] disabling zope.schema constraint check in edit form

2011-08-18 Thread Joshua Immanuel
ime a ago I wrote a blog post about objects with attributes > which are unique in their container [1]. > Besides it is written in German you might get the clue from the code > examples. > > > [1] > http://blog.gocept.com/zope3-objekte-mit-eindeutigen-titeln-innerhalb-ei

[Zope-dev] disabling zope.schema constraint check in edit form

2011-08-18 Thread Joshua Immanuel
7;t modified? What is the preferred way of doing these kind of checks? Please guide me. -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part ___ Zope-Dev maill

Re: [Zope-dev] [BlueBream] pagination in bluebream

2011-08-13 Thread Joshua Immanuel
f objects returned while querying with _limit option. Because I will be querying for the same keywords n number of times with just the changing _limit values. Am I right? Is there any detailed documentation explaining the query format to be used while querying the catalog other than the docum

[Zope-dev] pagination in bluebream

2011-08-12 Thread Joshua Immanuel
e to [offset + limit] and then trimming the results doesn't seem to be a clean approach. Is there any other better way of doing this? -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a

Re: [Zope-dev] [BlueBream] Referring to same interface using zope.schema.Object

2011-07-22 Thread Joshua Immanuel
gt; '_InterfaceClass__attrs' attribute of the dictionary and is > discouraged. Thanks for enlightening me with this wonderful explanation. As Jacob mentioned, list(INode) in debug shell was very handy to debug. -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.

Re: [Zope-dev] [BlueBream] Referring to same interface using zope.schema.Object

2011-07-22 Thread Joshua Immanuel
gt; '_InterfaceClass__attrs' attribute of the dictionary and is > discouraged. Thanks for enlightening me with this wonderful explanation. As Jacob mentioned, list(INode) in debug shell was very handy to debug. -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.i

Re: [Zope-dev] [BlueBream] Referring to same interface using zope.schema.Object

2011-07-22 Thread Joshua Immanuel
e) I couldn't find the 'parent' and 'children' attributes in it. Even worse part is, if there is another field say name = TextLine(title=u'Node name') This 'name' attribute is also is not visible along with 'parent&#x

Re: [Zope-dev] [BlueBream] error while installing zope.viewlet via buildout in bluebream [SOLVED]

2011-07-11 Thread Joshua Immanuel
g me out even if the problem is too silly. -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailm

Re: [Zope-dev] error while installing zope.viewlet via buildout in bluebream

2011-07-11 Thread Joshua Immanuel
Hello, On Mon, 2011-07-11 at 12:52 +0530, Joshua Immanuel wrote: > I am finding it hard to install zope.viewlet package via buildout. > Here is my buildout configuration snippet > > [zopeextras] > recipe = zc.recipe.egg > eggs = zope.catalog >

Re: [Zope-dev] [BlueBream] error while installing zope.viewlet via buildout in bluebream

2011-07-11 Thread Joshua Immanuel
27; line from buildout.cfg and added it to the 'install_requires' in setup.py. Still I get the same error. :( -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part _

[Zope-dev] error while installing zope.viewlet via buildout in bluebream

2011-07-11 Thread Joshua Immanuel
ame in x}\n')) Adding RestrictedPython 3.6.0 to easy-install.pth file Installed /tmp/test2/lib/python2.6/site-packages/RestrictedPython-3.6.0-py2.6.egg Finished processing dependencies for zope.viewlet I googled to find the solution for this but

Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream [SOLVED]

2011-06-26 Thread Joshua Immanuel
Hello all, On Fri, 2011-06-24 at 15:24 +0530, Joshua Immanuel wrote: > In setitem function of zope.container.contained > 'notify(ObjectAddedEvent)' happens, this causes the > 'addIntIdSubscriber' adapter of zope.intid to be called. This in turn > registers the

Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

2011-06-24 Thread Joshua Immanuel
ublic permission everywhere. Anyways. Thanks for trying to help me. -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist - Zope-De

Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

2011-06-24 Thread Joshua Immanuel
On Fri, 2011-06-24 at 19:13 +0530, Joshua Immanuel wrote: > If I override just the 'create' method I get the ForbiddenAttribute > for 'add' operation on self.context.add(object) in > zope.formlib.form.AddFormBase.add method. > > If I add the zcml confi

Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

2011-06-24 Thread Joshua Immanuel
tainer and the ZCML config for that class is marked as ... If I add the zcml config for that class to allow attribute like this ... ... I get AttributeError stating that the object has no attribute 'add' How do I fix th

Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

2011-06-24 Thread Joshua Immanuel
rm. Anyways I'll try the 'create' method and get back. Thanks -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part ___ Zope-Dev maillist - Zope-

Re: [Zope-dev] [BlueBream] Reg. updating catalog indexes in bluebream

2011-06-24 Thread Joshua Immanuel
d as and when new objects are added but the catalog indexes are not getting updated. Am I missing something? Or is there any specific zcml configuration needed for this? Please guide me. -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This

Re: [Zope-dev] Reg. updating catalog indexes in bluebream

2011-06-23 Thread Joshua Immanuel
object and update the indexes, then I think I'll miss out if just the attributes of 'Client' object is modified. So, I think along with this I should subscribe for 'IObjectModifiedEvent' of 'Client' object. Will this be sufficient? Is there any other better

[Zope-dev] Reg. updating catalog indexes in bluebream

2011-06-23 Thread Joshua Immanuel
ts. >>> cat.updateIndexes() >>> list(cat.apply({'client_name': 'xyz*'})) [753759381] I guess that I don't have to manually update the indexes each time when an object is added/modified. Am I missing something?

Re: [Zope-dev] [BlueBream] handling URLs for multiple sites in single bluebream instance

2011-06-18 Thread Joshua Immanuel
Hello all, On Fri, 2011-06-17 at 21:59 +0530, Joshua Immanuel wrote: > Ok, let me give an use-case. Say, I have a base page layout template > for the inner sites like "http://localhost:/site1"; which has many > application related menu links on the top and left hand side

Re: [Zope-dev] [BlueBream] handling URLs for multiple sites in single bluebream instance

2011-06-17 Thread Joshua Immanuel
hod), get > it's URL and concatenate it with your actual "absolute" URLs... I'll try out and get back. Thanks for answering my queries patiently. -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Descr

Re: [Zope-dev] [BlueBream] handling URLs for multiple sites in single bluebream instance

2011-06-17 Thread Joshua Immanuel
//localhost:/site1"; get the 'site1' part from the request URL and prefix all the related menu links with them. Is there any other better solution? But, If I use this base page layout template as a macro (just to fill its center content with an add form say) still the menu links

Re: [Zope-dev] [BlueBream] handling URLs for multiple sites in single bluebream instance

2011-06-17 Thread Joshua Immanuel
es.IRootFolder) which has links to create new sites. And say, I create necessary application specific objects under them when the new site is added to the root. How to dynamically handle the URLs for this kind of situation? -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.

[Zope-dev] handling URLs for multiple sites in single bluebream instance

2011-06-17 Thread Joshua Immanuel
1/object1/@@add.html" for 'site2' etc. depending on which client (site) is being served. So, how should the URLs be in the templates? Or in other words, how to handle URLs for multiple clients (sites) for the same application. If anyone can explain or point me to some documentation related

Re: [Zope-dev] [BlueBream] Reg. persisting data in ZODB via forms

2011-06-08 Thread Joshua Immanuel
n 8, 2011, at 10:23 PM, Joshua Immanuel wrote: > > I was trying to add a non persistent object to the BTreeContainer. I > > was of the notion that I don't need to make my object persistent > > explicitly, as I am adding it to the persistent btree container. The > > add o

Re: [Zope-dev] [BlueBream] Reg. persisting data in ZODB via forms

2011-06-08 Thread Joshua Immanuel
't need to make my object persistent explicitly, as I am adding it to the persistent btree container. The add operation was successful but the modify operation on my object failed to persist. Making my object persistent solved the issue. -- Joshua Immanuel HiPro IT Solutions Private Limited http:

[Zope-dev] Reg. persisting data in ZODB via forms

2011-06-08 Thread Joshua Immanuel
explain on this or point me to some documentation relating to this would be very helpful to me. Thank you Regards -- Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in signature.asc Description: This is a digitally signed message part ___