Re: [Zope-dev] What would *you* like to have in PropertyManager and friends?

2001-05-29 Thread Chris Withers

> On Mon, May 28, 2001 at 09:37:21AM +0100, Chris Withers wrote:
> >
> > Well, a nicer interface for changing them is about all I think they
need.
> > And sort the marshalling stuff out. It would be nice to actually store
blank
> > dates and numbers (None should be a valid value for both of them ;-)
> > That's about all I can see that it needs (probably forgotten something
> > though :-S)
>
> Blank dates&numbers are important, I don' t know how they could
> escape us.

:-)

> As for nicer interface... I guess you' ll have to elaborate a
> bit ;-)

Well, I think it's manage_changeProperties (nasty name for starters) that
deletes any property you don't include in its arguments, see the interfaces
wiki for details.

How about just replacing it with:

def modifyProperties(**kw)

...where kw is a dictionary mapping property name to property value. If it
property specified in kw didn't exist, it would be created.

Also, on addProperty and modifyProperties, how about making type coersion
happen and raise an exception if it fails?

so, if you did addProperty('test','string',1.234), addProperty would coerse
1.234 into the string '1.234' or raise an UncoercableException if it
couldn't?

Might be nice if the available property types were also documented
somewhere.
Hmm, also, coersion should check that when something is stored as the
'lines' property type, it only accepts a list of strings.

cheers,

Chris
> []s,
>|alo
>+
> --
>I say a prayer now our love's departed
> That you'll come back to stay
>   Bring back the perfect day
>
> http://www.laranja.org/mailto:[EMAIL PROTECTED]
>  pgp key: http://www.laranja.org/pessoal/pgp
>
> Brazil of Darkness (RPG)  ---   http://www.BroDar.org/
>
>


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] What would *you* like to have in PropertyManager and friends?

2001-05-28 Thread Andy McKay

> ...and how about a list-of-objects type too?

Hmm what is that? You can have a list already.

Cheers.
--
  Andy McKay.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] What would *you* like to have in PropertyManager and friends?

2001-05-28 Thread Zopista

ZWiki's seem a little wonky at the moment so Im commenting here.

The one big that would be hugely helpful is a dict property class. Should be
quite simple and very useful IHMO without having to rely on TinyTables etc.

Cheers and thanks for starting up the project.

- Original Message -
From: "Lalo Martins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 27, 2001 4:38 PM
Subject: [Zope-dev] What would *you* like to have in PropertyManager and
friends?


> raise
ZopeProject('http://dev.zope.org/Wikis/DevSite/Proposals/PropertyRevamp')
>
> We at Hiperlogica realize a lot of you people prefer to write
> your code in Python in the filesystem. However, we also believe
> the power of Zope's trough-the-web RAD framework is one of the
> reasons for its success; more importantly, it's a good part of
> the reason it works for *us*.
>
> In this spirit, we fired up HiperDom a few months ago, and
> we're now working on ZUnitTTW to allow developers to unit test
> their ZClasses and even their very sites.
>
> Now, we've been taking note of a lot of peeves we have with
> Properties, in the past one year or so. After all this time,
> and dealing with some Zope internals, we feel confident enough
> to propose to fix them.
>
> So we're "raising" a Project in the fishbowl to implement these
> changes. But before we dive in the mud, we'd like to hear from
> people that really use Properties (and/or ZClasses), or that
> would use them if they were more powerful. Please go to the
> Proposal page, linked above, and tell us what you think.
>
> []s,
>|alo
>+
> --
>I say a prayer now our love's departed
> That you'll come back to stay
>   Bring back the perfect day
>
> http://www.laranja.org/mailto:[EMAIL PROTECTED]
>  pgp key: http://www.laranja.org/pessoal/pgp
>
> Brazil of Darkness (RPG)  ---   http://www.BroDar.org/
>
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )