Jim Fulton escribió:
ZClasses are a feature that support through-the-web development.
Many people have found them useful in the past, but they have some
significant deficiencies, including:
- They can't be managed with file-system tools, especially
revision control systems like CVS and
Hi
I'm try to know the complet list of users in a Zope point with this
structure:
root
acl_users (user folder)
Folder1
acl_users (Pluggable user folder)
Folder2
acl_users (Another user folder)
Object1
Object2
how could I retrive the list of user
Chris Withers escribió:
Well, you know what I'm gonna say...
+1 for their demise.
+1 for DTML going too, oops, wait, Andreas said not to bring that up ;-)
cheers,
Chris
Jim Fulton wrote:
ZClasses are a feature that support through-the-web development.
Many people have found them useful in the
AM Thomas escribió:
I agree that ZClasses are not good to use. However, I have a product
based on ZClasses that I wrote several years ago (after reading the
printed Zope book - doh!), and it's working well for several of my
clients. If future versions of Zope were to not support it, that
Arenz, Ralph escribió:
SOS
This would mean a disaster for us. We've created a lot products using
ZClasses in
production environment (internet,intranet,eai and so on) since zope-2.1.4.
In short our complete developement in Zope is heavily based on ZClasses.
We plan to use ZClasses in the future,
David H escribió:
Andrew Milton wrote:
I think people on this list need to realize that eventually, the
direction of
any significantly large Open Source project is hijacked by the
relatively
small number of people actually doing the work.
The reasons for this are many-fold, but, normally come
= ['k2', 'k3'] (for me
incorrect, I would like to find objects with *all* keywords
How can I make these kind of querys?
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
Dieter Maurer escribió:
Garito wrote at 2005-5-20 12:41 +0200:
...
I have a ZCatalog object with a keywordindex called keywords
I would like to search some objects with keywords ['k1', 'k2', k3',
'k4'] for that I use:
return context.catalog({'keywords': {'query': ['k1', 'k2', k3', 'k4
Dieter Maurer escribió:
Garito wrote at 2005-5-21 13:29 +0200:
...
Dieter Maurer escribió:
...
A long standing bug in KeywordIndex...
Maybe, you give my Managable KeywordIndex a try
(part of ManagableIndex).
...
I can't understand the lack of concern you talk about unresolved
Andreas Jung escribió:
--On Sonntag, 22. Mai 2005 16:54 Uhr +0200 Garito [EMAIL PROTECTED]
wrote:
Poor. 1 Zope developer, 1 Zope version, 1000 Zope developers, 1000 Zope
versions?
People do often backport port from their private repository back to the
official one. This is true
Tres Seaver escribió:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Garito wrote:
Dieter Maurer escribió:
Garito wrote at 2005-5-20 12:41 +0200:
...
I have a ZCatalog object with a keywordindex called keywords
I would like to search some objects with keywords ['k1', 'k2
, zope but DTML, in my opinion, remember, is
only a product
See ya
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists
licences (I have windows and mac plataforms). If
you can demostrate you are developing open source (they only ask for the
project's url) they send you permanent licences
Cheers
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope
!!!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org
'):
get_transaction.abort()
RESPONSE.setStatus(405)
else:
body = REQUEST.get('BODY')
self._save_struct_body(body)
RESPONSE.setStatus(204)
return RESPONSE
setattr(MyProduct, 'struct.xml', MyProduct.struct_xml)
On 7/3/05, Garito [EMAIL PROTECTED] wrote
=Movible:list
value=Links1 //div
div id=Titulo class=Campo
a
href=http://yanged:8280/Papeles/Yanged/Links/Editar/Links1;Mis Cosas/a
/div
div id=Direccion class=Campo
a
href=http://blogs.sistes.net/Garito/;http://blogs.sistes.net/Garito//a
/div
This is completely outside the zope management interface. Perhaps it
is possible to override the PUT() function inside Zope but I doubt it.
Look into writing your own python product.
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope
Andreas Jung escribió:
--On 6. Juli 2005 10:29:45 +0200 Garito [EMAIL PROTECTED] wrote:
My question is why If I push Eliminar button don't submit the form to
the
correct url (http://yanged:8280/Papeles/Yanged/Links/Eliminar)?
What happens instead? Look at your Z2.log to figure out
Any idea?
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
bruno modulix escribió:
Garito wrote:
Lennart Regebro escribió:
A wild guess: Your post works, but returns a redirect to a nother
page, which returns nothing. This will look exactly like notyhing
happened at the browser side.
Yes, looking at Z2.log it seems it but If I
bruno modulix escribió:
Garito wrote:
bruno modulix escribió:
Garito wrote:
Lennart Regebro escribió:
A wild guess: Your post works, but returns a redirect to a nother
page, which returns nothing. This will look exactly like notyhing
happened at the browser side
' +
self.getId(), '', '', self.getId(), 'text/plain')
self._setObject('Fichero', ob)
return ob.getId()
Could anyone find the mistake?
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope@zope.org
http
Dieter Maurer escribió:
Garito wrote at 2005-8-2 12:34 +0200:
...
Could anyone find the mistake?
You forgot to tell us what problem you observe...
You say you were fighting but that is not enough.
What happened precisely?
Sorry Dieter
It seems it's a problem with PUT_factory
-04T14:45:39)
Has someone any idea to solve these issue?
On development time nothing of these occurs and when we go to production
time these problem begins (for that these question is, for us, urgent)
Thank you very much
--
Mis Cosas
http://blogs.sistes.net/Garito
Dieter Maurer escribió:
Garito wrote at 2005-8-4 14:11 +0200:
Our problem is we create some archetypes and in some parts of our
structure if we try to create some object the computer cpu grows to 100%
and raises
2005-08-04T15:01:02 INFO(0) ZODB conflict error at
/VirtualHostBase/the url
= None;
Messages =
{
start = Starting Zope WebServer Service;
stop = Stopping Zope WebServer Service;
};
}
but It doesn't work too
Can anyone help me?
Thanks a lot!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope
Bernd Dorn escribió:
the following 3 problems
this line must be in /etc/hostconfig
ZOPESERVER=-YES-
Sorry I put these but I don't tell you
On 17.08.2005, at 13:03, Garito wrote:
Hi all!
Yesterday I install Zope 2.8.1 on a Mac OS X tiger Server and all
goes ok
The only question I
Bernd Dorn escribió:
the following 3 problems
this line must be in /etc/hostconfig
ZOPESERVER=-YES-
On 17.08.2005, at 13:03, Garito wrote:
Hi all!
Yesterday I install Zope 2.8.1 on a Mac OS X tiger Server and all
goes ok
The only question I can't configure is the automatic boot up
I
Bernd Dorn escribió:
On 17.08.2005, at 20:22, Garito wrote:
Bernd Dorn escribió:
the following 3 problems
this line must be in /etc/hostconfig
ZOPESERVER=-YES-
On 17.08.2005, at 13:03, Garito wrote:
Hi all!
Yesterday I install Zope 2.8.1 on a Mac OS X tiger Server and all
goes
Andrew Langmead escribió:
On Aug 23, 2005, at 6:24 AM, Garito wrote:
I try sudo /System/Library/StartupItems/Zope/Zope start but nothing
happend (nor on console)
but if I launch /var/zope/sistes/bin/zopectl start it works perfectly
I try to comment the if and fi lines but don't work
Hi all
Now I'm trying launchd method
I have:
lanunchd[309]: ZopeSistes: respawning too quickly! throtting
or
exits with exit code: 1
errors at system.log (it depends how I launch zope)
any idea?
Thanks!!!
--
Mis Cosas
http://blogs.sistes.net/Garito
Chris Withers escribió:
Hi,
Garito wrote:
Hi all
Now I'm trying launchd method
I have:
lanunchd[309]: ZopeSistes: respawning too quickly! throtting
or
exits with exit code: 1
errors at system.log (it depends how I launch zope)
Yep, your Zope is dying. Try just using runzope with debug
or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
Hi!
I use xml.dom.minidom
Alternatives?
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope
|self._setup_subset(string)
225 |except ParseEscape:
ExpatError: no element found: line 1, column 0
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
Chris Withers escribió:
Get a packet sniffer going, looks like something is missing from the
request when you hit reload!
cheers,
Chris
Garito wrote:
Hi all
I try to read an xml file using
from xml.dom.minidom import parseString
It works fine but when I push the reload button raise
Alan Milligan escribió:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Garito wrote:
Chris Withers escribió:
Get a packet sniffer going, looks like something is missing from the
request when you hit reload!
cheers,
Chris
Garito wrote:
Hi all
I try to read an xml file
to
read a created file
Some idea?
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org
Fred Drake escribió:
On 10/12/05, Garito [EMAIL PROTECTED] wrote:
Alan Milligan escribió:
You do realise that pyexpat has a limitation of 8192 bytes between xml
tags - if your parse string is longer than this, it will fail. You can
recompile your expat parser to accept larger sizes
Alan Milligan escribió:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Garito wrote:
Fred Drake escribió:
On 10/12/05, Alan Milligan [EMAIL PROTECTED] wrote:
And you are allowed to be. It is a bit strange in an XML-RPC dialog to
drop out to http occasionally
Alan Milligan escribió:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Garito wrote:
Alan Milligan escribió:
Garito wrote:
Fred Drake escribió:
On 10/12/05, Alan Milligan [EMAIL PROTECTED] wrote:
And you are allowed to be. It is a bit strange
Fred Drake escribió:
On 10/12/05, Garito [EMAIL PROTECTED] wrote:
I run your test but no error was raised
Right.
I attach an xml file like I use and who raise the error, perhaps these
could help to reproduce the error
If you replaced SAMPLE_TEXT in the test script
Fred Drake escribió:
On 10/12/05, Garito [EMAIL PROTECTED] wrote:
What do you need?
In this bit of code:
Module Products.Yanged.SitioYanged, line 268, in ObtenerNodo
266 |
267 | if 'NodoRaiz' not in args:
268| args['NodoRaiz'] =
parseString(self.Dame
Fred Drake escribió:
On 10/13/05, Garito [EMAIL PROTECTED] wrote:
self.Dame({'nombre': self.getId() + '.mm'})
Dame is a function that returns a ZCatalog query where nombre is an index
...
This File object returns the text of the last attachment I send you some
mails ago
Fred Drake escribió:
On 10/21/05, Chris Withers [EMAIL PROTECTED] wrote:
Garito wrote:
Sorry for the off topic but I try to subscribe to ParsedXML dev mail
list but I can't (mail list doesn't exists)
Doesn't look like it. Is ParsedXML an Infrae or a Zope Corp product?
You
these words
because there are DTML and ZClasses fans on the list
Sorry!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related
and we could use it like
epoz (as easy) I will use it
Don't like kupu because is very difficult to install and very very
difficult to use
Don't like epoz because is incomplete
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist
Chris Withers escribió:
Garito wrote:
Don't like kupu because is very difficult to install and very very
difficult to use
I find that a suprising statement...
What problems did you experience?
cheers,
Chris
Hi, Chris!
I ask to the list some months ago but no solution was proposed
J Cameron Cooper escribió:
Garito wrote:
Chris Withers escribió:
Garito wrote:
Don't like kupu because is very difficult to install and very very
difficult to use
I find that a suprising statement...
What problems did you experience?
cheers,
Chris
Hi, Chris!
I ask to the list some
Chris Withers escribió:
Garito wrote:
The default behaviour is to edit a page with the editor but I need to
use kupu on a form, perhaps with more than one editor per form
I think I can use kupu data-centered instead of page-centered isn't it?
Try looking at how kupu is used in Plohn, where
catalog unicode if the string is not an unicode
string (at least I think so)
Any idea?
Thanks a lot!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML
Imagenes/Ver/Imagenes/src
iconhttp://yanged:9180/EspaciosYanged/Huete/huete.cc/Imagenes/CarpetaImagenes.png/icon
/library
/libraries
Thanks a lot!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope@zope.org
http
Duncan Booth escribi:
Garito wrote:
this.shared.xmldata.setProperty is not a function
I supouse that the error is raised because the xml is incorrect but I
can't see where
I think this could happen if you gave the wrong content-type for your XML.
If the browser
!
--
Mis Cosas
http://blogs.sistes.net/Garito/
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http
Hi all!
I try to use script.aculo.us library to create an AJAX website
My question will be:
Did you created any AJAX website with Zope and file upload? How?
Thanks a lot an sorry if this question is an off-topic
--
Mis Cosas
http://blogs.sistes.net/Garito
is a property at property manager (for example)
Thank so much!
--
Mis Cosas
http://blogs.sistes.net/Garito
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http
Andreas Jung escribió:
--On 10. Juli 2006 08:38:15 +0200 Garito [EMAIL PROTECTED] wrote:
Hi all!
I need to override the value of some members of my product
I think the correct way was __getattr__ function but I read some list's
messages telling to use __getattr__ only if you don't have
Andreas Jung escribió:
--On 10. Juli 2006 09:07:58 +0200 Garito [EMAIL PROTECTED] wrote:
Andreas Jung escribió:
--On 10. Juli 2006 08:38:15 +0200 Garito [EMAIL PROTECTED] wrote:
Hi all!
I need to override the value of some members of my product
I think the correct way was __getattr__
Jonathan escribió:
- Original Message - From: Garito [EMAIL PROTECTED]
I try again:
I have a property on the property manager called member1 with a value
of [/some/path]
User1 ask for this property. We calculate the real value for
/some/path for these user: 1
User2 ask
Jonathan escribió:
- Original Message - From: Garito [EMAIL PROTECTED]
To: Lista Zope Internacional zope@zope.org
Sent: Monday, July 10, 2006 1:13 PM
Subject: Re: [Zope] Override members values
Jonathan escribió:
- Original Message - From: Garito [EMAIL PROTECTED]
I try
Garito escribió:
Jonathan escribió:
- Original Message - From: Garito [EMAIL PROTECTED]
To: Lista Zope Internacional zope@zope.org
Sent: Monday, July 10, 2006 1:13 PM
Subject: Re: [Zope] Override members values
Jonathan escribió:
- Original Message - From: Garito [EMAIL
knitti escribió:
On 7/10/06, Garito [EMAIL PROTECTED] wrote:
__getattr__ some of you (I don't remember how exactly, sorry) have said
is a member to use only if there are no other way and I'm a little
scared for that
I think there's no official (as in provided by the framework)
support
Hi
In the line to test __getattribute__ to override some properties I try
to access to the object's absolute_url but it's empty
How can I have the absolute_url at object's __getattribute__?
Thanks again
--
Mis Cosas
http://blogs.sistes.net/Garito
knitti escribió:
On 7/10/06, Garito [EMAIL PROTECTED] wrote:
knitti escribió:
There are any way to distinguish when the property is called by ZMI or
FTP or another system call (about Zope) from the property when is
called outside ZMI?
not that I'm aware of.
Now I have a property like
knitti escribió:
On 7/11/06, Garito [EMAIL PROTECTED] wrote:
In the line to test __getattribute__ to override some properties I try
to access to the object's absolute_url but it's empty
its not a property, ist a method: ObjectManagerItem.absolute_url()
--knitti
I know but if you call
Lennart Regebro escribió:
On 7/11/06, Garito [EMAIL PROTECTED] wrote:
Hi
In the line to test __getattribute__ to override some properties I try
to access to the object's absolute_url but it's empty
__getattr__ is always called on the non-acquicision wrapped object.
Hence, __getattr__ doesn't
Garito escribió:
Hi
In the line to test __getattribute__ to override some properties I try
to access to the object's absolute_url but it's empty
How can I have the absolute_url at object's __getattribute__?
Thanks again
Hi all!
I rethink my problem and I solve all my questions
='python: here.Texto' /
Where Texto is a adquired property, but not this:
tal:b tal:replace='here/Texto' /
because zope raises an unauthorized error
How can I solve this point?
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito
___
Zope maillist
Garito escribió:
Hi all!
Please, look at this code:
def __bobo_traverse__(self, REQUEST, name):
obj = getattr(self, name, None)
if obj is not None: return obj
else:
obj = self.Dame(name)
if obj is not None: return obj
else
Andreas Jung escribió:
--On 14. Juli 2006 17:17:51 +0200 Garito [EMAIL PROTECTED] wrote:
Garito escribió:
Anyone can tell me what is happening here?
The Zope mailing list is not a helpdesk with a guaranteed response time.
No need to grouch!
-aj
Sorry I don't pretend to be rude
Dieter Maurer escribió:
Garito wrote at 2006-7-14 07:04 +0200:
...
def __bobo_traverse__(self, REQUEST, name):
obj = getattr(self, name, None)
...
I wonder why I can do this on a Page Template:
tal:b tal:replace='python: here.Texto' /
Where Texto is a adquired property
Dieter Maurer escribió:
Garito wrote at 2006-7-14 07:04 +0200:
...
def __bobo_traverse__(self, REQUEST, name):
obj = getattr(self, name, None)
...
I wonder why I can do this on a Page Template:
tal:b tal:replace='python: here.Texto' /
Where Texto is a adquired property
Alec Mitchell escribió:
On 7/14/06, Garito [EMAIL PROTECTED] wrote:
Garito escribió:
Dieter Maurer escribió:
Garito wrote at 2006-7-14 07:04 +0200:
...
def __bobo_traverse__(self, REQUEST, name):
obj = getattr(self, name, None)
...
I wonder why I can do this on a Page Template
Hi all!
Is possible to create an object (for example a Page Template) and make
it catalog aware?
I wonder why the objects aren't catalogable by default (I need all my
object catalogables)
Any Idea?
--
Mis Cosas
http://blogs.sistes.net/Garito
Andreas Jung escribió:
--On 18. Juli 2006 15:14:54 +0200 Garito [EMAIL PROTECTED] wrote:
Hi all!
Is possible to create an object (for example a Page Template) and
make it
catalog aware?
Look at the CatalogAware mixin class.
But with this class I could create a new class of PT Catalog
Andreas Jung escribió:
--On 19. Juli 2006 09:34:58 +0200 Garito [EMAIL PROTECTED] wrote:
Andreas Jung escribió:
--On 18. Juli 2006 15:14:54 +0200 Garito [EMAIL PROTECTED] wrote:
Hi all!
Is possible to create an object (for example a Page Template) and
make it
catalog aware?
Look
Tino Wildenhain escribió:
Garito wrote:
Andreas Jung escribió:
--On 19. Juli 2006 09:34:58 +0200 Garito [EMAIL PROTECTED] wrote:
Andreas Jung escribió:
--On 18. Juli 2006 15:14:54 +0200 Garito [EMAIL PROTECTED] wrote:
Hi all!
Is possible to create an object (for example a Page
Tino Wildenhain escribió:
Garito wrote:
Tino Wildenhain escribió:
Garito wrote:
Andreas Jung escribió:
--On 19. Juli 2006 09:34:58 +0200 Garito [EMAIL PROTECTED] wrote:
Andreas Jung escribió:
--On 18. Juli 2006 15:14:54 +0200 Garito [EMAIL
Tino Wildenhain escribió:
Garito wrote:
...
Sure, but I can't create a new product for every product I'll use only
to do it catalog aware, isn't it?
Yes you can. Why not? I mean you are using them - so you can use
your products instead as well.
Yes but what
Tino Wildenhain escribió:
Garito wrote:
Tino Wildenhain escribió:
Garito wrote:
...
Sure, but I can't create a new product for every product I'll use only
to do it catalog aware, isn't it?
Yes you can. Why not? I mean you are using them - so you can
Tino Wildenhain escribió:
Garito wrote:
Tino Wildenhain escribió:
Garito wrote:
Tino Wildenhain escribió:
Garito wrote:
...
Sure, but I can't create a new product for every product I'll
use only
to do it catalog aware, isn't it?
Yes you can. Why not? I
Tino Wildenhain escribió:
Garito wrote:
Tino Wildenhain escribió:
Garito wrote:
Tino Wildenhain escribió:
Garito wrote:
Tino Wildenhain escribió:
Garito wrote:
...
Sure, but I can't create a new product for every product I'll
use only
to do it catalog aware, isn't
Martijn Pieters escribió:
Please don't email me personally; let's keep this discussion on the list.
Garito wrote:
Yes, the indexes depends on the entity (I don't know what indexes I use
until I define the entity but I need to catalog every characteristic of
the entity)
For example if I
Martijn Pieters escribió:
On 7/20/06, Garito [EMAIL PROTECTED] wrote:
No, we need a use-case. Otherwise you have what we call a YAGNI, a
You
aint gonna need it feature that noone will maintain because noone
uses it.
A vague notion that you'd like to see this for your application
Lennart Regebro escribió:
On 7/19/06, Garito [EMAIL PROTECTED] wrote:
Look at the CatalogAware mixin class.
But with this class I could create a new class of PT Catalog aware,
isn't it?
Yup.
I would like to convert a normal PT is this possible?'
Yes, with monkeypatches, but really, you
is asking for
Sorry for my poor english
--
Mis Cosas
http://blogs.sistes.net/Garito
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman
Hi all!
I have a class like these:
class Test(CatalogAware, , OrderedFolder):
def manage_beforeDelete(self, item, container):
CatalogAware.manage_beforeDelete(item, container)
OrderedFolder.manage_beforeDelete(item, container)
I only put the relevant code
If I delete de
/Garito
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
Andreas Jung escribió:
--On 18. Oktober 2006 16:15:37 +0200 Garito [EMAIL PROTECTED] wrote:
Hi all!
How can I control the way an attribute of a product is readed?
__getattr__? __getattribute__?
I try the __getattribute__ way but it modifies the property pages
Example:
I create an object
Andreas Jung escribió:
--On 18. Oktober 2006 18:53:05 +0200 Garito [EMAIL PROTECTED] wrote:
Andreas Jung escribió:
--On 18. Oktober 2006 16:15:37 +0200 Garito [EMAIL PROTECTED] wrote:
Hi all!
How can I control the way an attribute of a product is readed?
__getattr__? __getattribute__
Andreas Jung escribió:
--On 18. Oktober 2006 19:17:42 +0200 Garito [EMAIL PROTECTED] wrote:
I only try to create a model but I'm searching the best way to
create it
I try to create properties like this is (in the last example):
object.property is like object.anotherproperty
You got
Andreas Jung escribió:
--On 18. Oktober 2006 19:41:07 +0200 Garito [EMAIL PROTECTED] wrote:
You got already multiple advices. Write a method anotherproperty()
and
do whatever you like with in this method. You can call it from
TALES as here/anotherproperty. TALES bascially deals
Dieter Maurer escribió:
Garito wrote at 2006-10-18 16:15 +0200:
...
How can I control the way an attribute of a product is readed?
__getattr__? __getattribute__?
A product is an extension mechanism for Zope. Usually, a
product does not have attributes (you are interested
Chris Withers escribió:
Garito wrote:
object.Property2 and retrieve the data with the current locale
For spanish locale I would like to retrieve 18-10-2006
Rather than torturing yourself with all this weirdness, maybe you
should look at using Zope 3's locale support in your app, whether
Dieter Maurer escribió:
Garito wrote at 2006-10-18 20:27 +0200:
How can I create an accessor to read (not to write) and preprocess all
properties?
If you are only willing to write a single method that should do for
all properties, then you will need to use __getattr__.
You
Andreas Jung escribió:
--On 20. Oktober 2006 14:20:51 +0200 Garito [EMAIL PROTECTED] wrote:
And I know, in principle, all the potential caveats...
Can you point me to some example/product to try to avoid this kind of
errors?
You got already multiple useful advices how to proceed
Andreas Jung escribió:
--On 20. Oktober 2006 14:41:58 +0200 Garito [EMAIL PROTECTED] wrote:
-aj
Sorry but you don't know the whole project
No project can be as scary as your requirements of your original
posting :-)
If there are a test to do I'll do it because I need to evaluate
Andreas Jung escribió:
--On 20. Oktober 2006 15:08:26 +0200 Garito [EMAIL PROTECTED] wrote:
If you thing __getattr__ will be the solutions perhaps I could try it
but
if you point me to avoid the recursive problems I could do the job
Can you point me to a product or a paper to understand
Dieter Maurer escribió:
Garito wrote at 2006-10-20 14:20 +0200:
Dieter Maurer escribió:
You remember I have warned you: __getattr__ is difficult and error prone!
Even me, I have spend hours to understand why I get occasional
__getattr__ infinite loops...
And I know
zope give to use some properties
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org
Josef Meile escribió:
Hi Garito,
I saw in another thread you still need this. If I'm not wrong what you
are pretending is to somehow render zpt on the fly. So, here is my idea:
I would like to write things like:
object.property = 'here/anotherproperty'
object.anotherproperty = 'Barcelona
1 - 100 of 262 matches
Mail list logo