[Zope-dev] ZPatterns Design Issue

2001-04-24 Thread Roch'e Compaan

Hi Everybody

We are porting a desktop application to Zope using Interbase and ZPatterns.
In this application objects like Vintage, Farm, Vineyard, Block and Panel
form a hierarchy and are displayed with the Zope tree widget.  To build the
hierarchy we use a method called getChildrenFor() on each level to retrieve
the children for the object at hand.  Behind getChildrenFor() lies a ZSQL
Method on their respective racks to retrieve the result set.

Building the tree leads to a whole bunch of queries to the database that
really slows thing down ie. besides the queries that retrieve children,
select queries to retrieve individual instances is called by getItem through
SkinScript for each item in the tree.

I haven't been able to figure out a way to get some performance back without
talking to the database directly through ZSQL Methods but this defies the
whole point of using ZPatterns.

Some guidance/pointers would really be appreciated.

Roché





___
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] ANN: new CalendarTag and other news

2001-04-24 Thread Juan David Ibáñez Palomar


Hi all,


I've working a little in a new CalendarTag, you can download it
(version 2.0 alpha 1) from http://sourceforge.net/projects/lleu

Be careful, its usage is somewhat different and will probably
break the pages that use the old CalendarTag. It's not for
production environments, it's mainly for getting feedback,
if there's a feature you want to see in the new Calendar Tag
let me know. Note that the new version depends on the product
mxDateTime that you can also download from the same url.


Other news, the Localizer product is updated, the version 0.1.1
fixes two bugs of the 0.1.0 version. If you're curious look at
the CVS, there you'll find an unreleased product named Content
(yes, it's not a very good name). Combining both the Localizer
and Content it will be possible to easily build big multilingual
web sites.


Best regards,
jdavid

___
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] Splitter.c hack by Spisak; anyone have a Splitter.so?

2001-04-24 Thread Erik Enge

Hola,

please don't make me touch C or a ... erm... you know, one of those
compiler-thingys.   I don't like them.

Does anyone have a nicely baked Splitter.c for Linux?  The one that Spisak
hacked to make it chew and swallow anything?

Fhank you very much. :-)


___
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] ZPatterns Design Issue

2001-04-24 Thread Roch'e Compaan

How do you bind a SQL Result with multiple records with multiple instances
of the class?  Can you do this in Skinscript? Or do you mean I should return
the sql result directly?

Roché

 Why don't you just have the rack's getChildrenFor() method return
 instances
 of the correct class, with all the data filled in from the SQL
 method?  There should be no need to re-retrieve the same items with
 getItem().  Note, by the way, that this does not violate encapsulation,
 since the specialist and racks are specifically the place to put
 implementation-specific versions of multi-object methods like this.

 (Btw, if anybody's compiling a ZPatterns FAQ, this should probably get in
 there.)



___
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] deepcopy of file object

2001-04-24 Thread Chris Withers

Hi,

I've got an object of type OFS.Image.File and I want to make a copy of it.
I can't use the ObjectManager stuff, 'cos this object is being stored in a
BTree-ish thing in a quite different context from a Zope folder.

For obvious reasons, deepcopy(myfileobject) fails with a copy.error 'cos I don't
see the File class having a __deepcopy__ method.

Has anyone got any ideas or things that I might haev overlooked.

cheers,

Chris

___
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] ZPivotTable

2001-04-24 Thread florian_reiser

Hi guys,

I want to program a pivot table similar to the one M$ Excel has.
I feel there's the need for it.

For the planned features see http://www.zope.org/Members/freiser/PivotTable/

I've thought that it would be best if I would create the following classes:
- Cell (The table cell)
- Column (The table column)
- Row (The table row containing columns and cells. Columns only if one or more columns 
are drilled down)
- Table (The table itself)

Could you give me some advice if I'm on the right path, and give me alternative design 
ideas?

Greetings

Florian
-- 
---
| Florian ReiserPGP-Key:0x5368CF3F|
| PGP-Fingerprint: 84C7 24BC F3A4 487F CBC7  692C 05DB 6E11 5368 CF3F |
---


 PGP signature


[Zope-dev] wxPython + ZODB = bliss

2001-04-24 Thread Shane Hathaway

Here is a script that lets you browse *everything* in your ZODB through a
quick GUI client.  I was looking at wxPython the other day and this idea
occurred to me.  It worked amazingly well.

http://www.zope.org/Members/hathawsh/pyTree

(BTW you can't hold me responsible if your password slips out because of
this. ;-) It runs outside the security model. )

I don't know how many of you have tried out wxPython but I think it's a
marvellous GUI library.  It's fast, stable, and in active development.
It works as well under Python 2.1 as it does under 1.5.2.  Just thought
I'd give that little plug. :-)

And when you mix wxPython with ZODB... it's pure bliss.  I've been writing
a little program on the side that uses wxPython and ZODB as a foundation,
and I'm amazed at how well the project is coming together.  I've heard
rumors about a fat client for Zope that used a ZEO connection for
editing (ZopeFish?)... I think this script demonstrates how well that idea
would work!

Shane


___
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] wxPython + ZODB = bliss

2001-04-24 Thread Tino Wildenhain

Hi Shane,

--On Dienstag, 24. April 2001 14:08 -0400 Shane Hathaway 
[EMAIL PROTECTED] wrote:

 http://www.zope.org/Members/hathawsh/pyTree


very nice! :)))
Regards
Tino

___
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] forking of the mailing list

2001-04-24 Thread Andy McKay

There was a discussion on [EMAIL PROTECTED] about forking of the mailing list.
Would there be any support behind a seperate ZPatterns list? There seem to
be lots of users and lots of questions that arent of interest to people who
dont use ZPatterns (like me).

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 )