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.
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
**
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
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
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
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
___
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
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
--
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
;, '__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
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
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
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
;'
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?
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
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
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
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
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
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
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.
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
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
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
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
>
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
_
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
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
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
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
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
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-
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
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
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?
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
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
//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
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.
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
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
'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:
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
___
43 matches
Mail list logo