[Zope-dev] Turning acquisition off[Zope-dev] Turning acquisition off

2000-12-06 Thread morten

Hi guys,

Does anyone know how to disable acqusition ?

That is, with a simple method, and not disabling the Acqusition class,
something like self.aq_disabled('attribute') .

Thanks.

-Morten


___
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] ZCatalog scalability...

2000-12-06 Thread Chris Withers

John Eikenberry wrote:
 
 the potential of up
 to 50,000 entries. 

 Using a ZCatalog for
 listings

This may cause you real problems, especially if there's a 'bulk data
load' at any point.

Cheers,

Chris

PS: How's the catalog revamp coming along? Any published ZSearch
interface yet?

___
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] Turning acquisition off selectively.

2000-12-06 Thread Chris Withers

[EMAIL PROTECTED] wrote:
 
 That is, with a simple method, and not disabling the Acqusition class,
 something like self.aq_disabled('attribute') .

So kindof the inverse of using Aquisition.Explicit and using the
aq_acquire method?

What you describe would be really cool...

The only workaround for now is to use calls to ac_acquire() and provide
a filter function, but this doesn't help when other code that you have
no control over accesses an attribute that you'd rather not have
acquired :-(

cheers,

Chris

PS:
http://www.zope.org/Members/michel/Projects/Interfaces/AcquisitionWrappedObject

___
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] Turning acquisition off selectively.

2000-12-06 Thread Robin Becker

I'm almost beginning to understand Acquisition. I can see that it's
possible to control the things that my class acquires ie import or
ancestor acquisition control, but is it possible to control what other
classes acquire from me sort of export/descendant control.
-- 
Robin Becker

___
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] Turning acquisition off[Zope-dev] Turning acquisitionoff

2000-12-06 Thread Ken Manheimer

On Wed, 6 Dec 2000 [EMAIL PROTECTED] wrote:

 Does anyone know how to disable acqusition ?
 
 That is, with a simple method, and not disabling the Acqusition class,
 something like self.aq_disabled('attribute') .

I believe one way is self.aq_base['attribute'].  aq_base gets the
unwrapped object (what got __of__'ed).  If you're not sure the thing
is acquisition-wrapped in the first place, you'd probably want to check
for the existing of the 'aq_base' attribute before using it...

Ken Manheimer
[EMAIL PROTECTED]


___
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] Turning acquisition off

2000-12-06 Thread Chris Withers

Ken Manheimer wrote:
 
 On Wed, 6 Dec 2000 [EMAIL PROTECTED] wrote:
 
  Does anyone know how to disable acqusition ?
 
  That is, with a simple method, and not disabling the Acqusition class,
  something like self.aq_disabled('attribute') .
 
 I believe one way is self.aq_base['attribute'].  aq_base gets the
 unwrapped object (what got __of__'ed). 

What if the base object's not a dictionary?

 If you're not sure the thing
 is acquisition-wrapped in the first place, you'd probably want to check
 for the existing of the 'aq_base' attribute before using it...

Am I imagining things of did Jim F say he might make ac_base present in
all the acquisition classes so that kind of checking isn't necessary?

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 )




Re: [Zope-dev] Turning acquisition off

2000-12-06 Thread Ken Manheimer

On Wed, 6 Dec 2000, Chris Withers wrote:

 Ken Manheimer wrote:
  
  On Wed, 6 Dec 2000 [EMAIL PROTECTED] wrote:
  
   Does anyone know how to disable acqusition ?
  
   That is, with a simple method, and not disabling the Acqusition class,
   something like self.aq_disabled('attribute') .
  
  I believe one way is self.aq_base['attribute'].  aq_base gets the
  unwrapped object (what got __of__'ed). 
 
 What if the base object's not a dictionary?

I suspect i was missing something, but i assumed since he was referring to
an attribute of the object, that morten did not mean to write a function
call form.  I probably should have presumed toward attribute lookup:
self.aq_base.attribute or getattr(self.aq_base, 'attribute') - and been
explicit that i was reading between the lines, in the first place.

  If you're not sure the thing
  is acquisition-wrapped in the first place, you'd probably want to check
  for the existing of the 'aq_base' attribute before using it...
 
 Am I imagining things of did Jim F say he might make ac_base present in
 all the acquisition classes so that kind of checking isn't necessary?

Dunno.

Ken
[EMAIL PROTECTED]


___
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] Turning acquisition off

2000-12-06 Thread Stefan H. Holek

On Wed, 6 Dec 2000 [EMAIL PROTECTED] wrote:

 Does anyone know how to disable acqusition ?
 
 That is, with a simple method, and not disabling the Acqusition class,
 something like self.aq_disabled('attribute') .

Might this be what you are looking for?

http://www.egroups.com/message/zope/45049

Regards,
Stefan


___
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] case insensitive sorts

2000-12-06 Thread Andy McKay

Minor nit and patch: I've found that really for me what users want to see is
a case insensitive sort of objects, not the current python case sensitive
sort. So that the order of objects from dtml-in and tree is a, A, b, B as
apposed to A, B, a, b.

Anyway Ive patched dtml-in and dtml-tree to do this sort on a ignore_case
tag. Is this useful to anyone else? And Ive thought of patching my Zope so
this is the default behaviour what does anyone else think. The next
thing to patch is ZCatalog...


___
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] case insensitive sorts

2000-12-06 Thread Steve Alexander

Andy McKay wrote:

 Minor nit and patch: I've found that really for me what users want to see is
 a case insensitive sort of objects, not the current python case sensitive
 sort. So that the order of objects from dtml-in and tree is a, A, b, B as
 apposed to A, B, a, b.
 
 Anyway Ive patched dtml-in and dtml-tree to do this sort on a ignore_case
 tag. Is this useful to anyone else? And Ive thought of patching my Zope so
 this is the default behaviour what does anyone else think. The next
 thing to patch is ZCatalog...


The way I approached this was to have a ZPatterns attribute provider, or 
a method, that provides a modified version of the value I want to sort on.

For example, I have a load of documents and folders with titles like

  Big Folder

  brown document

  "Berries for Cooking" list

I wanted to present these sorted by non-case-sensitive first letter or 
number. So, I made a method "title_for_sorting" that stripped off any 
punctuation at the start, and returned the first 20 characters in all 
lower case.  In this case, as it was a ZPatterns application, the method 
was presented as an attribute of the object using some skin-script. I 
used this attribute as a field-index in my SiteIndex ZCatalog.

The reason I mention this is that sometimes case-insensitivity is not 
enough for sensible sorting. In this case, I had to strip out 
punctuation too.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net


___
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] ZUnit - feedback convocation

2000-12-06 Thread Lalo Martins

On Mon, Dec 04, 2000 at 02:56:26PM -0800, Michel Pelletier wrote:
 On Mon, 4 Dec 2000, Lalo Martins wrote:
 
  The first section is the advocacy section; it will begin with
  "if you already do unit tests, you may want to skip this
  section". I'm not sure if the history lesson is out of scope,
  but "Why do you want to use it" is probably better.
 
 Hmm... actually in that case you may want to axe both "why" and the history.

I agree. At most, one paragraph about each could go in "What
is Unit Testing".

   What does "refactor mercilessly!" mean?
  
  I'll explain that one of the benefits of unit testing
  extensively is that you can modify your code without fear
  (you'll know when it breaks). This section is more advocacy
  than technical.
 
 Ah, ok I like it.  I wonder if "refactor" is the right word; it's very
 specific and it sounds like any kind of changing can be done.

"Refactor Mercilessly!" is one of the "practices" of XP, and an
expression (XPression?) they like to throw around.

Also, yes, any kind of changing can be done, if the tests cover
it :-) (except that if you develop new functionality, you must
write new tests too)


  I allocated a subsection for this because just explaining the
  problem is already somewhat convoluted, as you see above ;-) in
  a printed book, I'd make it a sidebar or something, but...
 
 Hmm.  I guess my concern was because it was the only subsection of
 'Fixtures'.  Do fixtures need a more topical breakdown or are they
 simple enough to sum up in one section?  Maybe we can think of some
 'fixture use cases'.

I don't think so. I think I just broke the rules. When I added
this subsection I was thinking more about some kind of sidebar,
not a real subsection - fixtures definitely don't need their
own topical breakdown.

As there is no provision for "sidebars" or "boxes" in the
informal standard format we've been using for these docs,
I'll move the note about this issue one level up.

[]s,
   |alo
   +
--
  Hack and Roll ( http://www.hackandroll.org )
The biggest site for whatever-it-is-that-we-are.


http://zope.gf.com.br/lalo   mailto:[EMAIL PROTECTED]
 pgp key: http://zope.gf.com.br/lalo/pessoal/pgp

Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar

___
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] SQLAlias Memory Leak?

2000-12-06 Thread Dyon Balding

OK, I've had more of a hack at this, and I've narrowed the problem
down a little.

It appears that any access to an SQLAlias object causes it to not
be correctly released.  The SQLAlias objects means that you can
access column names using a different case to how they are stored
in the database.

For example, we store users in a users table in the database, with
column names like USERNAME, but they are accessed with:
dtml-var username, this causes the SQLAlias objects to stick around.

One solution to our problem is to just do a dtml-var USERNAME
instead.  However that doesn't solve the problem with this
"feature" of being able to call it with a different case.

This is a fairly easy bug to reproduce, on my setup at least :).
I have tested it with ZSQLRelay and ZODBDA both talking to SQLServer,
and with ZPyGreSQLDA talking to PostgreSQL.

I would appreciate it if someone else can reproduce the bug,
and I'll put it in the Collector I guess.

thanks
-d

On Wed, Dec 06, 2000 at 09:06:47AM +1100, Dyon Balding wrote:
 Hi,
 
 I have an application that stores state data in a
 SQLServer database.  The Zope and database servers
 run on different windows machines, using the ZODBCDA
 product to connect Zope to the ODBC machinery.
 
 What I have been observing is that the Zope client's
 memory usage increases consistently when ZSQL methods
 are being called.  In the Debug screens, the
 culprit appears to be Shared.DC.ZRDB.RDB.SQLAlias.
 
 Here's a dump of the first few lines after hitting
 a ZSQL method a few hundred times using ab.  The
 SQLAlias figures never seem to go down.
 
 Class 
 December 5, 2000
 1:58 pm 
  December 5, 2000
  2:01 pm 
  
Delta 
 Shared.DC.ZRDB.RDB.SQLAlias 
 1048 
  4068 
  
+3020 
 ZClasses.ZClass.ZClass 
 73 
  108 
  
+35 
 OFS.DTMLMethod.DTMLMethod 
 63 
  94 
  
+31 
 
 In fact most of our servers run out of memory and need
 to be restarted every couple of days when they get
 sufficient use.
 
 I've done a bit of a search of the mailing lists, and noone
 else appears to be having the same problem.  So does
 anyone have an idea of what we might be doing differently
 to everyone else?  We appear to have the latest versions
 installed.
 
 I've had a bit of a look through the code, and it appears
 that SQLAlias is used to case desensitize the column names
 of the returned data?
 
 Any pointers would be appreciated.
 
 thanks, d
 
 -- 
 |Dyon Balding [EMAIL PROTECTED] |
 
 ___
 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 )

-- 
Dyon Balding [EMAIL PROTECTED]

___
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] case insensitive sorts

2000-12-06 Thread Andy McKay

Oh yeah for the ZCatalog I have two indexes one upper case and one lower
case for some of my classes. No problemo. My area to attack though is the
standard views such as the management interface...

How's life in Lancaster? Went to school there and grew up in Garstang

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Steve Alexander" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, December 06, 2000 11:03 AM
Subject: Re: [Zope-dev] case insensitive sorts


 Andy McKay wrote:

  Minor nit and patch: I've found that really for me what users want to
see is
  a case insensitive sort of objects, not the current python case
sensitive
  sort. So that the order of objects from dtml-in and tree is a, A, b, B
as
  apposed to A, B, a, b.
 
  Anyway Ive patched dtml-in and dtml-tree to do this sort on a
ignore_case
  tag. Is this useful to anyone else? And Ive thought of patching my Zope
so
  this is the default behaviour what does anyone else think. The next
  thing to patch is ZCatalog...


 The way I approached this was to have a ZPatterns attribute provider, or
 a method, that provides a modified version of the value I want to sort on.

 For example, I have a load of documents and folders with titles like

   Big Folder

   brown document

   "Berries for Cooking" list

 I wanted to present these sorted by non-case-sensitive first letter or
 number. So, I made a method "title_for_sorting" that stripped off any
 punctuation at the start, and returned the first 20 characters in all
 lower case.  In this case, as it was a ZPatterns application, the method
 was presented as an attribute of the object using some skin-script. I
 used this attribute as a field-index in my SiteIndex ZCatalog.

 The reason I mention this is that sometimes case-insensitivity is not
 enough for sensible sorting. In this case, I had to strip out
 punctuation too.

 --
 Steve Alexander
 Software Engineer
 Cat-Box limited
 http://www.cat-box.net



___
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] case insensitive sorts

2000-12-06 Thread Dieter Maurer

Andy McKay writes:
   what does anyone else think

I would not like it.


Dieter

___
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] case insensitive sorts

2000-12-06 Thread Rik Hoekstra



 Andy McKay wrote:

  Minor nit and patch: I've found that really for me what users want to
see is
  a case insensitive sort of objects, not the current python case
sensitive
  sort. So that the order of objects from dtml-in and tree is a, A, b, B
as
  apposed to A, B, a, b.
 
  Anyway Ive patched dtml-in and dtml-tree to do this sort on a
ignore_case
  tag. Is this useful to anyone else? And Ive thought of patching my Zope
so
  this is the default behaviour what does anyone else think. The next
  thing to patch is ZCatalog...


 The way I approached this was to have a ZPatterns attribute provider, or
 a method, that provides a modified version of the value I want to sort on.

 For example, I have a load of documents and folders with titles like

   Big Folder

   brown document

   "Berries for Cooking" list

 I wanted to present these sorted by non-case-sensitive first letter or
 number. So, I made a method "title_for_sorting" that stripped off any
 punctuation at the start, and returned the first 20 characters in all
 lower case.  In this case, as it was a ZPatterns application, the method
 was presented as an attribute of the object using some skin-script. I
 used this attribute as a field-index in my SiteIndex ZCatalog.

 The reason I mention this is that sometimes case-insensitivity is not
 enough for sensible sorting. In this case, I had to strip out
 punctuation too.

Hm, reading this... just a loose comment.
In light of the awkward search interface of ZCatalogs, would it be a good
idea to make a search interface for ZCatalog ZPatterns based? This would add
the possibility to make it configurable wrt case sensitivity, and to do nice
things with ANDing and ORing different kinds of indexes.
The only thing I can't judge whether it would be possible to make this
generic enough.

for-what-it's-worth

Rik


___
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] SQLAlias Memory Leak?

2000-12-06 Thread Jon Prettyman

I've seen this as well under DCOracle.

-jon

Dyon Balding [EMAIL PROTECTED] writes:

 OK, I've had more of a hack at this, and I've narrowed the problem
 down a little.
 
 It appears that any access to an SQLAlias object causes it to not
 be correctly released.  The SQLAlias objects means that you can
 access column names using a different case to how they are stored
 in the database.
 
 For example, we store users in a users table in the database, with
 column names like USERNAME, but they are accessed with:
 dtml-var username, this causes the SQLAlias objects to stick around.
 
 One solution to our problem is to just do a dtml-var USERNAME
 instead.  However that doesn't solve the problem with this
 "feature" of being able to call it with a different case.
 
 This is a fairly easy bug to reproduce, on my setup at least :).
 I have tested it with ZSQLRelay and ZODBDA both talking to SQLServer,
 and with ZPyGreSQLDA talking to PostgreSQL.
 
 I would appreciate it if someone else can reproduce the bug,
 and I'll put it in the Collector I guess.
 
 thanks
 -d
 
 On Wed, Dec 06, 2000 at 09:06:47AM +1100, Dyon Balding wrote:
  Hi,
  
  I have an application that stores state data in a
  SQLServer database.  The Zope and database servers
  run on different windows machines, using the ZODBCDA
  product to connect Zope to the ODBC machinery.
  
  What I have been observing is that the Zope client's
  memory usage increases consistently when ZSQL methods
  are being called.  In the Debug screens, the
  culprit appears to be Shared.DC.ZRDB.RDB.SQLAlias.
  
  Here's a dump of the first few lines after hitting
  a ZSQL method a few hundred times using ab.  The
  SQLAlias figures never seem to go down.
  
  Class 
  December 5, 2000
  1:58 pm 
   December 5, 
2000
   2:01 pm 
 
  Delta 
  Shared.DC.ZRDB.RDB.SQLAlias 
  1048 
   4068 
 
  +3020 
  ZClasses.ZClass.ZClass 
  73 
   108 
 
  +35 
  OFS.DTMLMethod.DTMLMethod 
  63 
   94 
 
  +31 
  
  In fact most of our servers run out of memory and need
  to be restarted every couple of days when they get
  sufficient use.
  
  I've done a bit of a search of the mailing lists, and noone
  else appears to be having the same problem.  So does
  anyone have an idea of what we might be doing differently
  to everyone else?  We appear to have the latest versions
  installed.
  
  I've had a bit of a look through the code, and it appears
  that SQLAlias is used to case desensitize the column names
  of the returned data?
  
  Any pointers would be appreciated.
  
  thanks, d
  
  -- 
  |Dyon Balding [EMAIL PROTECTED] |
  
  ___
  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 )
 
 -- 
 Dyon Balding [EMAIL PROTECTED]
 
 ___
 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 )




Re: [Zope] FTP for ZClass hierarchies

2000-12-06 Thread Stephane Bortzmeyer

On Tuesday 5 December 2000, at 9 h 4, the keyboard of Jim Welch 
[EMAIL PROTECTED] wrote:

 have been disappointed to discover that while I can access, via FTP,
 the methods of a top-level ZClass, I can't access any methods of
 ZClasses defined inside of a top-level ZClass. 

Many objects are not editable that way :-( And this is a big problem with Zope 
for me (I will certainly not use the browser form). A friendly Zopatista sent 
me a patch on Zope (which I will submit to the Collector) to be able to edit 
ZQSL methods. May be you can patch the patch for your purpose?




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




Re: [Zope] How to specify to z sql methods, the connection object to use at runtime...time...

2000-12-06 Thread Frederic Quin

Thanks to yall...
Finally, I thought like you Randy... I created as many folders as many
servers I have. Each folder contains a connection object called "con"
every where. Each folder contains also Z SQL Methods. Some of them
contains the same Z SQL Methods. So, I just have to specify the server I
want to connect to and use directly the Z SQL Method I want.

My folders (called like my servers) are Transparent Folder. So, I can
call directly some Z SQL Methods which are available only on one
server...


Fred



Randall Kern wrote:
 
 I haven't actually tried this, but it seems it should work:
 
 /
 /db1- folder
 connection- a DB connection object to db 1
 /db2- folder
 connection- a DB connection object to db 2
 query- a ZSqlMethod, set to use the connection 'connection'.  Note,
 you may have to add a temporary DB connection to the root, to allow you to
 setup these methods.  After you have created your methods, remove the
 /connection object.
 
 Then use urls like http://your.server/db1/query to run the query using the
 first database connection, and http://your.server/db2/query to run query
 using the second database connection.
 
 -Randy
 - Original Message -
 From: "Tino Wildenhain" [EMAIL PROTECTED]
 To: "Frederic Quin" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, December 05, 2000 4:56 AM
 Subject: Re: [Zope] How to specify to z sql methods, the connection object
 to use at runtime...time...
 
  Hi Frederic,
 
  Frederic Quin schrieb:
  
   Hi all,
  
   I have the same querry to execute on different servers. I don't want to
   create as many z sql methods as servers I have. I would like to specify
   to my z sql method, the connection object to use at run time. Do I have
   to patch the files of z sql methods ? Can I use directly the connection
   object ??
  A clean approach would be subclassing the zsql-method
  for your purpose. I would not recommend a free-form
  string as argument for the Datasource. May be an integer index
  (first, second, third... database server)
  or something like that?
 
  Regards
  Tino
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 

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




Re: [Zope] dtml syntax problem

2000-12-06 Thread Rik Hoekstra



Francois-regis Chalaoux wrote:
 
 How to render this code ??
 

change 
4 dtml-with
"_.namespace(foo=_.whrandom.choice(objectValues(['toto'])).id)"

to

4 dtml-with
"_.namespace(foo=_.whrandom.choice(objectValues(['toto'])).id)"

? 

hth
Rik

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




[Zope] MPTrois.com / ZOPE / Systems in Munich

2000-12-06 Thread Alexander DePauli

Hi everybody,

I'm just looking for a german Zopista who I met during the "systems"
fair in Munich where he presented "MPTrois.com". I'd need his name or
email because I desperately want to continue our zope-discussion there.

Anybody got a clue for me?

Thanks in advance

Alex
~
http://www.herrenausstatter.de - Der Online-Herrenausstatter
Kostenlose Serviceline: 0800 -999 66 33
Versandkostenfreie Lieferung - 30 Tage Rückgaberecht
~
Verwaltungsadresse:
DePauli.com Aktiengesellschaft
Stahlgruberring 3 - 81829 München
Telefon: 089 / 530 75 170 - Telefax 089 / 514 50 666

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




RE: [Zope] Zope Beginner

2000-12-06 Thread Max Møller Rasmussen

From: Mark A. Pappas [mailto:[EMAIL PROTECTED]]

after the -D. In the start.bat. I tried all kinds of things and never was
able to get zope up on port 80 as a web server (www.whatever.com_ or
XXX.XXX.XXX.XXX). What am I missing?

Your approach sound about right.

Perhaps you are running another webserver at port 80? Have you got Apache or
IIS running on your machine allready, chances are that they are using port
80 allready creating a conflict.

Regards Max M

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




[Zope] ZClasses and their icons (AI??)

2000-12-06 Thread Sven Hohage

Hallo,
I've got a minor problem.
My ZClasses won't update the ClassIcons when I change them.
Has someone implemented an aesthetic-filter?
A great step in AI??
Furthermore a nice St.Nikolaus, like we say in Germany.

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




Re: [Zope] Search and replace interface

2000-12-06 Thread Chris Withers

Curtis Maloney wrote:
 
 I was just wondering if there were some convenient way I could search all of
 my DTML[Documents|Methods] and ZSQL Methods, for comments, so I could review
 them?
 
 Perhaps it's time I learned how to use ZCatalog?

There was a trhead recently abotu search and replace. It'd be great if
Zope had a search and replace interface, wouldn't it? ;-)

(note: this doesn't mean that all objects would need to implement it,
but it'd be mighty helpful if DTML Methods, Documents, etc did)

cheers,

Chris

PS: This has got to be related to ZCAtalog somehow, I wonder how the two
interact? I guess Catalog provides the search interface (ZSearch
Interface, nto documented anywhere, pretty ropey IMHO) and object would
have to implement a replace interface. It's be cool If there was a
repalce library call too... give it a string and some replacement text
and it does a search and replace on that in C so it's nice and fast...)

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




[Zope] META Tags in Zope Documents

2000-12-06 Thread David Legg

Hello,

I am currently embedding meta tags into documents within the Zope
environment. At the moment the meta tags are in the standard_html_header
file and embedded within index_html and other documents.

Are there any issues with embedding meta data this way when a search engine
spiders the site? Will the search engine pick up the contents of dtml-var
standard_html_header or just the literal document itself, or is there
anything else to consider?

Thanks in advance,

David


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




RE: [Zope] Large XML files

2000-12-06 Thread Todd Coram

"Parsed XML" (the successor to XML Document) should handle large documents
less expensively. No code has been released yet, but something should be
available soon (in a couple of weeks?)... Keep an eye on
http://www.zope.org/Wikis/DevSite/Projects/ParsedXML and you may want to
subscribe to the zope-xml mailing list.

---
"Sardonic Slaughterer of Sacred Cows"
Todd Coram - mailto:[EMAIL PROTECTED]
Digital Creations, Inc - http://www.digicool.com
Publishers of Zope - http://www.zope.org

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Phil
 Harris
 Sent: Tuesday, December 05, 2000 6:03 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [Zope] Large XML files


 Paul,

 The XMLDocument type is rather 'expensive' and you may be able to
 'get away'
 with using a simpler type such as DTMLDocument.

 If you don't need the DOMification of your XML when you put it into Zope
 this is something i'd look at..

 I have done this with large documents and then used an external method to
 process them with XSLT, XPath etc.

 hth

 Phil
 [EMAIL PROTECTED]

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, December 05, 2000 10:01 PM
 Subject: [Zope] Large XML files


  I am testing the possibilities of delivering the content of
 XML Documents
  through the Zope environment.  Unfortunately, some of the proposed file
 are
  rather large (up to 760KB) and just uploading them and viewing
 them on our
  current Zope server is prohibitively slow.  Our server, running Z2 is a
  blazing P133 running NT 4.0 with 32 MB of RAM (I get the bottom
 feeders).
  Is the bottleneck the hardware; is there something I can do
 software-wise
  to improve performance; or is development not yet advanced enough to
 handle
  this scenario efficiently? Any opinions on this?
 
  Thanks,
 
  P. Johnson
 
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )


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




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




Re: [Zope] New user - couple of questions

2000-12-06 Thread Jose Soares



Paolo Quaglia wrote:
Hi
to all,I'm
a new Zope user/developer ... Zope has impressed me very much!Ihave
a couple of questions.I
want to build a new intranet site for my company using Zope, but:1.
How can I import and use Python modulesFor
example I want to use the function sleep(secs) that resides in the
time module.I
wrote this code:import
timedef hello(self):
sleep(10)
return "I'm Back!!"



Better if you write this function like
this:
import time
def hello(self):
 time.sleep(10)
 return
"I'm Back!!"
1. give it a name, say pippo.py
2. then go back to your zope and add
an External Method
3. put id=pluto
4. function name=hello
5. python module=pippo
6. save it
If you want to try it create a DTML
Document for example and put in it the the following command:
dtml-var pluto>
and then view the DTML Document,
after a while i.e. 10 secs you will
see the message: I'm Back!!

but
when I call the external method bounded with the hello function an error
occours!!1st.
Have I to install the time module?
- if yes where can I found it and where can I install it?2nd.
How do I have to call the sleep function?2.
I want to build an application that use the database transection to update
rows.I
use SQL server that support DB transactions.where
can I build SQL transactions with Zope?do
I have to build a ZSQL method with multiple SQL calls? .. for example:...
If I am not mistaken,
zope works all the time in transaction mode, then you don't need to
expecify
transactions at all.

begin
transactiondtml-var
sql_delimiter>update
t_cliente set primaetichinterna = 'mia'dtml-var
sql_delimiter>commitAm
I sure that the transaction will work (if another user use the same method
at the same time)?How
can I test if a transaction has been committed or aborted?Thanks
VERY MUCH in advancePaolo
QuagliaSitek Spa
ItalyPaolo
Quaglia
Information Technology Coordinator
Sitek S.p.A.
[EMAIL PROTECTED]
Ciao
Jos Soares - Italy



RE: [Zope] string splitting in dtml

2000-12-06 Thread Spicklemire, Jerry

Mike said:

 I tried what you recommended and got the following error:

 Error Type: AttributeError
 Error Value: __getslice__

 The problem I think is that the variable is drawn from the database as
type
 date (Microsoft Access 2k) and somehow is cast into a date type.  Is there
a
 way to re-cast this variable as a string type?

You're right, it's not really a string, even though Zope is smart enough 
to render it into one when inserting it directly into HTML.

 I also tried the
 
 dtml-var "_.string.split(start_date, '/')[1]"
 
 solution but got the error:
 
 Error Type: TypeError
 Error Value: argument 1: expected read-only character buffer, instance
found

Now if only Zope were smart enough to tel us what it "really" is, 
so we could transform it! 

It looks like MS Access delivers dates as some proprietary object type.

However, in your query, you may be able to wrap the date field like so:

to_char(dateFieldName)

to convince MS Access to return a formatted string instead. 
Once you can see what the string looks like, the slicing bit 
should work.

Good Luck!
Jerry S.



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




[Zope] Disabling Services

2000-12-06 Thread Chris Withers

Hi,

When Zope starts up, I see it starts the following:

ZServer Medusa (V1.16.4.3)
ZServer FTP server
ZServer PCGI Server
ZServer Monitor Server (V1.8.4.1)

Which of those handles WebDAV requests?
How do I turn any of the above 'off' permentantly, without hacking z2.py
or anything similar (which is nasty ;-)

Why?
Well, the FTP Server is buggy enough that it needs to be disabled on
Production sites.
There's no need to run PCGI if you're using Apache ProxyPass, and
likewise, no need for medusa if you're PCGI'ing, correct?
And as for the monitor, well, I've never used it, and I know it's very
powerful, so I'd prefer it if it wasn't around on Production sites...

cheers,

Chris

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




Re: [Zope] META Tags in Zope Documents

2000-12-06 Thread Bill Welch

The robot, like any other user of your site, will only see the html that
results from zope rendering the code you write. No viewer of the rendered
html can tell how it was put together, so there is nothing to consider.

Bill.

On Wed, 6 Dec 2000, David Legg wrote:

 Hello,
 
 I am currently embedding meta tags into documents within the Zope
 environment. At the moment the meta tags are in the standard_html_header
 file and embedded within index_html and other documents.
 
 Are there any issues with embedding meta data this way when a search engine
 spiders the site? Will the search engine pick up the contents of dtml-var
 standard_html_header or just the literal document itself, or is there
 anything else to consider?
 
 Thanks in advance,
 
 David
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 


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




Re: [Zope] string splitting in dtml

2000-12-06 Thread Jim Washington

Just a thought:

Have you tried using "_.str(thedate)" to convert it into a string?  I am
not using Access, but since Zope can handle the Access date stuff
properly, it may be using something like _.str() internally.  It's what
I would try first.

-- Jim Washington

"Spicklemire, Jerry" wrote:
 
 Mike said:
 
  I tried what you recommended and got the following error:
 
  Error Type: AttributeError
  Error Value: __getslice__
 
  The problem I think is that the variable is drawn from the database as
 type
  date (Microsoft Access 2k) and somehow is cast into a date type.  Is there
 a
  way to re-cast this variable as a string type?
 
 You're right, it's not really a string, even though Zope is smart enough
 to render it into one when inserting it directly into HTML.
 
  I also tried the
 
  dtml-var "_.string.split(start_date, '/')[1]"
 
  solution but got the error:
 
  Error Type: TypeError
  Error Value: argument 1: expected read-only character buffer, instance
 found
 
 Now if only Zope were smart enough to tel us what it "really" is,
 so we could transform it!
 
 It looks like MS Access delivers dates as some proprietary object type.
 
 However, in your query, you may be able to wrap the date field like so:
 
 to_char(dateFieldName)
 
 to convince MS Access to return a formatted string instead.
 Once you can see what the string looks like, the slicing bit
 should work.

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




Re: [Zope] Disabling Services

2000-12-06 Thread Ivan Cornell

Chris Withers wrote:

 When Zope starts up, I see it starts the following:

 ZServer Medusa (V1.16.4.3)
 ZServer FTP server
 ZServer PCGI Server
 ZServer Monitor Server (V1.8.4.1)

 Which of those handles WebDAV requests?
 How do I turn any of the above 'off' permentantly, without hacking z2.py
 or anything similar (which is nasty ;-)


Not sure about WebDAV (I guess try the following  see!), but in my startup
script I have:
exec /usr/local/Zope-2.2.4-linux2-x86/bin/python \
 $PYTHONHOME/z2.py \
 -X -w 8000 "$@"

-X : turn off all servers
-w : explicitly turn on http server on port 8000
I took out -D as it is a production server  after reading the last few
digests I'm going to add -Z, though Zope hasn't crashed once on me yet!

HTH

Ivan


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




Re: [Zope] Disabling Services

2000-12-06 Thread Oleg Broytmann

On Wed, 6 Dec 2000, Chris Withers wrote:
 How do I turn any of the above 'off' permentantly, without hacking z2.py
 or anything similar (which is nasty ;-)

   z2.py has a lot of options. Run z2.py --help. (I mean passing options to
z2.py IS NOT nasty :)

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




[Zope] zope/zeo beginner

2000-12-06 Thread Kaeidinejad, Shahram

Hi,

i need some information about zeo.
is maybe to install zeo and 2 zope on the same mashine. i use this only for
"test".
how can i configure zope or zoe to work together. i think 2 ip-addr. on the
same mashine??!!
do zeo work with apache, too?

that is all at the moment.

bye

Shahram

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




Re: [Zope] Search and replace interface

2000-12-06 Thread Stefan H. Holek

On Wed, 6 Dec 2000, Chris Withers wrote:

 There was a trhead recently abotu search and replace. It'd be great if
 Zope had a search and replace interface, wouldn't it? ;-)

May I humbly point you to the ReplaceSupport product I had cataloged
today... 

http://www.zope.org/Members/shh/ReplaceSupport/

It is not the object-level replace interface you were asking 
for, Chris, but it still helps a lot round here when we do 
things TTW. ;)

Regards,
Stefan


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




[Zope] Image from a Database

2000-12-06 Thread Mohan Baro


Hey Guys and Gals,

Can anyone help me to

Retrieve, Update, Insert image files into a Database in Zope.



I am running zope on linux mandrake and use ZSever
The database I am currently using is MySQL on MySQLDA (MySQLdb non-binary
dist.)

Mo.



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




Re: [Zope] FTP in HTML-Kit? Sussed it!

2000-12-06 Thread Martijn Pieters

On Tue, Dec 05, 2000 at 03:51:28PM -, Phil Harris wrote:
 Working on the HTML-Kit plugin as we speak. ;)

I have created a Python library for HTML-Kit plugins. Very easy with
Mark Hammonds Win32 extensions. It is only the bare bones COM interface
though, no niceties such as Exceptions and such.

As soon as the download server is back online again (www.chamisplace.com)
I can figure out more easily what plugins can do on the whole and create a
higher level interface along the lines of:

--

from HTMLKitPlugins import Plugin, RegisterPlugin

class HelloWorld(Plugin):
name = 'Hello_in_Python'
iconCaption = = 'PyD'
section = 'MyPlugins'

def main:
self.output('Hello, Python World!')

RegisterPlugin(HelloWorld())

--

A HiperDom or DTML plugin is then going to be a breeze. Imagine XML-RPC
access to the Zope server so you can expand dtml-var references in
place. :)

Currently I use a fake Perl plugin to pass through to Python (yukk), but
if someone wants to write a standalone .EXE file that transparently
invokes a python file based on registry entries (location of Python
interpreter and a registry of Python plugin files) we can do without Perl
altogether.

Next step would then be to ask Chami.com to add support for Python plugins
as well (which is not hard for them if I supply the Python library files).

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

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




[Zope] How to find items to catalog from a dtml method ???

2000-12-06 Thread Frederic Quin

Hi all,

I tried to use the manage_catalogFoundItems( REQUEST, RESPONSE, URL2,
URL1, [] ) method of Catalog objects, from a dtml method. But it didn't
work... There is still some parameters that I don't understand like URL2
and URL1. Which values do we have to pass ? Is it why it didn't work for
me ?


Thanks
Fred

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




Re: [Zope] Large XML files

2000-12-06 Thread Toby Dickenson

On Tue, 5 Dec 2000 23:02:38 -, "Phil Harris"
[EMAIL PROTECTED] wrote:



The XMLDocument type is rather 'expensive' and you may be able to 'get away'
with using a simpler type such as DTMLDocument.

Simpler, but thats not necessarily an advantage. DTMLDocument will
store the whole document in memory, but XMLDocument uses ZODB
effectively so that it only loads the DOM nodes that are in use.

If you are always using the *whole* document then this is no help, and
simpler may indeed be better.

From: [EMAIL PROTECTED]

 I am testing the possibilities of delivering the content of  XML Documents
 through the Zope environment.  Unfortunately, some of the proposed file
are
 rather large (up to 760KB) and just uploading them and viewing them on our
 current Zope server is prohibitively slow.  Our server, running Z2 is a
 blazing P133 running NT 4.0 with 32 MB of RAM (I get the bottom feeders).
 Is the bottleneck the hardware; is there something I can do software-wise
 to improve performance; or is development not yet advanced enough to
handle
 this scenario efficiently? Any opinions on this?

For a machine of that size I suggest you use only one publisher thread
(thats -T 1 on the command line), rather than the default of 4. Each
thread gets a copy of the ZODB object cache, and you probably dont
want to keep four copies of your 700k document in memory.

Toby Dickenson
[EMAIL PROTECTED]

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




[Zope] Which Python versions are supported?

2000-12-06 Thread Jim Harrison

I'm about to set up a new 2.2.4 Zope server and I've been looking around to
see what the situation is between Zope and Python 1.6 and 2.0. Oddly, I'm
not able to find a reference to this. Can anyone comment on which version of
Python is most appropriate for current Zope releases? Perhaps I just missed
it, but it would seem appropriate for this information to be in a prominent
place (i.e., Zope's download page).

Jim Harrison
University of Pittsburgh

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




RE: [Zope] Which Python versions are supported?

2000-12-06 Thread Max M

From: Jim Harrison

I'm about to set up a new 2.2.4 Zope server and I've been looking around to
see what the situation is between Zope and Python 1.6 and 2.0. Oddly, I'm
not able to find a reference to this. Can anyone comment on which version
of
Python is most appropriate for current Zope releases? Perhaps I just missed
it, but it would seem appropriate for this information to be in a prominent
place (i.e., Zope's download page).

The current releases of Zope is suposed to use Python 1.5.2.

It might work with Python 2.0 but it hasn't been officially tested.

Regards Max M

Max M. W. Rasmussen,Denmark.   New Media Director
private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Specialization is for insects.  -  Robert A. Heinlein


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




Re: [Zope] Which Python versions are supported?

2000-12-06 Thread Chris McDonough

Python 1.5.2 is still the required release for Zope 2.2.4.

- Original Message -
From: "Jim Harrison" [EMAIL PROTECTED]
To: "zope" [EMAIL PROTECTED]
Sent: Wednesday, December 06, 2000 12:15 PM
Subject: [Zope] Which Python versions are supported?


 I'm about to set up a new 2.2.4 Zope server and I've been looking around
to
 see what the situation is between Zope and Python 1.6 and 2.0. Oddly, I'm
 not able to find a reference to this. Can anyone comment on which version
of
 Python is most appropriate for current Zope releases? Perhaps I just
missed
 it, but it would seem appropriate for this information to be in a
prominent
 place (i.e., Zope's download page).

 Jim Harrison
 University of Pittsburgh

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




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




Re: [Zope] Disabling Services : RTFM

2000-12-06 Thread Chris Withers

Oleg Broytmann wrote:
 
 On Wed, 6 Dec 2000, Chris Withers wrote:
  How do I turn any of the above 'off' permentantly, without hacking z2.py
  or anything similar (which is nasty ;-)
 
z2.py has a lot of options. Run z2.py --help. (I mean passing options to
 z2.py IS NOT nasty :)

Sorry, RTFM on my part :-)

Actually, RTFS or RTCLH, but such is the zope way...

cheers,

Chris

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




[Zope] Data.fs

2000-12-06 Thread Tom Deprez

Hi,

My  Zope is installed in /usr/local/zope

Is it possible to tell zope to store the data.fs file on another directory?

eg. /home/zope/var

ie. Can you run zope from the directory /usr/local/zope and let it use the
data.fs file
  from /home/zope/var and not /usr/local/zope/var

If so, how can I do this?

Thanks, Tom


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




[Zope] sendmail control?

2000-12-06 Thread marc lindahl

Does anyone know if or how you can create, destroy, change passwords, and
possibly other things, to sendmail (IMAP) accounts remotely?  I want to use
WorldPilot, but it uses sendmail's usernames and passwords, not Zope's.  So
I'm interested in something that can synchronize those two things.

Or, just flame me that it would be the biggest security hole since NT :)

Marc Lindahl
bowery.com


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




Re: [Zope] Cataloguing on zope.org

2000-12-06 Thread ethan mindlace fremen

Andy McKay wrote:

 I've had quite a few things waiting in the catalog, is anything happening
 there?


Sorry, I handed this off to Andrew, but forgot to give him the Reviewer 
role.  Fixed now.

~ethan


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




RE: [Zope] Data.fs

2000-12-06 Thread Ron Bickers

At least one option is to use the INSTANCE_HOME setup as described at
http://www.zope.org/Members/4am/instancehome

I'm using this to run several servers (and thus several different Data.fs
files) with one Zope installation.
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom
 Deprez
 Sent: Wednesday, December 06, 2000 1:05 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Data.fs


 Hi,

 My  Zope is installed in /usr/local/zope

 Is it possible to tell zope to store the data.fs file on another
 directory?

 eg. /home/zope/var

 ie. Can you run zope from the directory /usr/local/zope and let it use the
 data.fs file
   from /home/zope/var and not /usr/local/zope/var

 If so, how can I do this?


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




[Zope] next value

2000-12-06 Thread Olaf Zanger

hi there,

i work with postgreSQL 7.0.2, ZPyGreSQL and zope 2.2 on suse 7.0 linux

for a identifier field adr_id:serial i want to automatically insert a
new number max(adr_id)+1

how can this be done in an insert into sql statement?

i tried nextval('adr_adr_id_seq') but get an error message

any idea?

olaf

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Zanger Nusch
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



Re: [Zope] Large XML files

2000-12-06 Thread Edward Muller

Definetly consider a stripped down linux install for this machine instead. just
make sure almost nothing else is running as well (A lots ditros start all sorts
of stuff up for you).

Edward Muller - [EMAIL PROTECTED] - [EMAIL PROTECTED]
Grow a ponytail -- view it as your telepathic antenna to other Linux Kernel 
Developers. -- Jeff V. Merkey

On Tue, 5 Dec 2000, Jim Hebert wrote:

 You could check into the ExtFile product (search on zope.org) and see if
 that makes a perf difference.

 That said, just about anything on that setup is going to be slow!!
 Please excuse the os advocacy, but given that this is likely all you'd
 dream of running on this server anyways (ie it's not like it's also going
 to be your Exchange server), you might consider putting something that
 will leave more spare RAM and cpu time for Zope on that box, e.g. Linux or
 some other OS more suited towards the low end server hardware market.

 Or buy a nicer box to run this on. If you don't have existing unix skills
 in-house then throwing money at hardware might be less expensive than
 investing in human resources to get a Linux box going. (Whew, being
 even-handed is so much harder than being an OS bigot...;-)

 Sorry that's probably not what you wanted to hear. =)
 jim

 On Tue, 5 Dec 2000 [EMAIL PROTECTED] wrote:

  I am testing the possibilities of delivering the content of  XML Documents
  through the Zope environment.  Unfortunately, some of the proposed file are
  rather large (up to 760KB) and just uploading them and viewing them on our
  current Zope server is prohibitively slow.  Our server, running Z2 is a
  blazing P133 running NT 4.0 with 32 MB of RAM (I get the bottom feeders).
  Is the bottleneck the hardware; is there something I can do software-wise
  to improve performance; or is development not yet advanced enough to handle
  this scenario efficiently? Any opinions on this?
 
  Thanks,
 
  P. Johnson
 
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 


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



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




Re: [Zope] next value

2000-12-06 Thread Oliver Bleutgen

 hi there,

 i work with postgreSQL 7.0.2, ZPyGreSQL and zope 2.2 on suse 7.0 linux

 for a identifier field adr_id:serial i want to automatically insert a
 new number max(adr_id)+1

 how can this be done in an insert into sql statement?

 i tried nextval('adr_adr_id_seq') but get an error message

 any idea?

http://www.postgresql.org/docs/aw_pgsql_book/node85.html

ff.



cheers,
oliver

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




Re: [Zope] just curious

2000-12-06 Thread Dieter Maurer

michael angelo ruberto writes:
  how do i remove all of the 7000 + company documents from Zope?
You locate them with "ZopeFind" and delete them with "manage_deleteObjects".

Both methods are described in the ZQR (Zope quick reference)
on zdp.zope.org.


Dieter

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




Re: [Zope] Newbie question, help with navigation method

2000-12-06 Thread Dieter Maurer

Richard Blumberg writes:
   Navigation works when called directly,
  does not work when included in "index_html" 
  
  Navigation:
  dtml-in objectValues
 

  Is this a bug in Zope, or am I doing something wrong?
Not directly.

Almost surely, your "index_html" is a DTML document.
A DTML document defines the method "objectValues" and it
returns the empty list.
One *might* think of this as a bug or a feature.
(I tend to think of it as a bug).

In a DTML document (unlike a DTML method), the object
is pushed on top of the namespace stack.
Therefore, the "objectValues" in your navigation object
is the "objectValues" of the "index_html" and it returns
"[]".

If you would make your "index_html" a DTML method,
then "objectValues" would be the method of the
object for which the method is called for. This
means your folder. And it would work.



Dieter

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




Re: [Zope] Comment elimination...

2000-12-06 Thread Dieter Maurer

Curtis Maloney writes:
  ... finding objects with "comment" in them 

You can use the "Find" tab and fill the "containing" field
with "comment".


Dieter

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




Re: [Zope] Zope Beginner

2000-12-06 Thread Dieter Maurer

Mark A. Pappas writes:
   zope running on port 80 
All ports below 1024 are priviledged ports.

Under Unix, a process must run as "root" to bind to them.


Dieter

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




Re: [Zope] Cut/copy/paste problems

2000-12-06 Thread Dieter Maurer

Oleg Broytmann writes:
   Cut/copy/paste problems in Zope behind Apache 
  
 To help me to resolve the problem I want to ask the helpful community
  provide me some information. Of those who run Zope behind Apache please
  tell me:
  
  1) which way do you connect? (mod_proxy, Zope.cgi, mod_pcgi2, mod_fcgi)
  2) any problem?
We run Zope behind Apache using "ProxyPass".
We have no problems.


Dieter

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




Re: [Zope] Disabling Services

2000-12-06 Thread Dieter Maurer

Chris Withers writes:
  ZServer Medusa (V1.16.4.3)
  ...
  
  Which of those handles WebDAV requests?
WebDAV runs on top of HTTP.
You must disable ZServer Medusa.
Maybe, you accept WebDAV?


Dieter

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




Re: [Zope] next value

2000-12-06 Thread rob

Hi

Here's what I use: 

create table customer(
  custid serial primary key,
  name text not null check (char_length(name)1),
address text,
  code text,
country text,
  telephone text,
  fax text,
  email text,
  private_comments text
);

And the zsql method to insert a customer:

insert into customer
(name, address, code, country, telephone, fax, email, private_comments)
values(
dtml-sqlvar name type=nb,
dtml-sqlvar address type=nb optional,
dtml-sqlvar code type=nb optional,
dtml-sqlvar country type=nb optional,
dtml-sqlvar telephone type=nb optional,
dtml-sqlvar fax type=nb optional,
dtml-sqlvar email type=nb optional,
dtml-sqlvar private_comments type=nb optional
)
dtml-var sql_delimiter
select currval('customer_custid_seq') as custid

By default Postgresql inserts the next value for a serial type if it
is not provided. The last bit of the SQL method returns the id of the
customer just inserted.

Regards

Rob


On Wed, Dec 06, 2000 at 08:17:08PM +0100, Olaf Zanger wrote:
 hi there,
 
 i work with postgreSQL 7.0.2, ZPyGreSQL and zope 2.2 on suse 7.0 linux
 
 for a identifier field adr_id:serial i want to automatically insert a
 new number max(adr_id)+1
 
 how can this be done in an insert into sql statement?
 
 i tried nextval('adr_adr_id_seq') but get an error message
 
 any idea?
 
 olaf
 
 -- 
 soli-con Engineering Zanger
 Dipl.-Ing. (FH) Olaf Zanger Nusch
 Lorrainestrasse 23
 3013 Bern / Switzerland
 Fon: +41-31-332 9782
 Mob: +41-76-572 9782
 mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 http://www.soli-con.com
Content-Description: Visitenkarte für Olaf Zanger


-- 
Rob Murray

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




Re: [Zope] Another Zope E-Commerce Site Online

2000-12-06 Thread Bill Welch

I found the shopping cart interesting. Did you start with an existing
package or write it from scratch? Are you willing to share it?

Bill.


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




[Zope] REQUEST.set doesn't set in 2.2.4

2000-12-06 Thread Brad Clements



This code:

dtml-call 
"REQUEST.set('verrormessage',orderobject.chargeCard(REQUEST,Holmes.CyberCash,Rec))"
!-- charge result is dtml-verrormessage;--

Prints out _.None as the result.

However a print statement in my ordeobject.chargeCard method shows 
that the return value isn't None.

This seems broken. The return code is coming from within an exception 
handler, I wonder if that is related to the problem.

I've also noticed that in a dtml-trydtml-except calling 
REQUEST.set within the except doesn't set it.

Anyone got ideas? 

Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

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




[Zope] score in ZCatalog search results?

2000-12-06 Thread sean . upton

Can't seem to find word on this anywhere.  I wanted to put relevancy ranking
into my ZCatlog search result hit-list, but am finding no info in searches
of zope.org, ZDP, or mailing lists.

I've also tried guessing and reading code (in lib/python/SearchIndex), but
my brain is melting.

Any enlightenment here would be greatly appreciated.

Sean

=
Sean Upton
Senior Programmer/Analyst
SignOnSanDiego.com
The San Diego Union-Tribune
619.718.5241
[EMAIL PROTECTED]
=

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




Re: [Zope] Comment elimination...

2000-12-06 Thread Curtis Maloney

On Thursday 07 December 2000 08:05, Dieter Maurer wrote:
 Curtis Maloney writes:
   ... finding objects with "comment" in them 

 You can use the "Find" tab and fill the "containing" field
 with "comment".


slaps forehead duh!

I've been ignoring that tab for so long I don't even see it any more. (o8
Yep, this does exactly what I want... thanks.

So I take it all the other people want is a 'replace' option added to this ?


 Dieter


Curtis.

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




RE: [Zope] Another Zope E-Commerce Site Online

2000-12-06 Thread Max M

Nice site

A small suggestion for the shopping basket.

It is really great the way you describe the 4 steps involved in making a
purchase. But it would be really nice if you added som information allready
in step one in regard to payment methods.

I would get rather crossed if I got to step 4 and found out that my prefered
method of payment wasn't included. I would also be more inclined to buy if I
could see upfront that I could use my Visa.

Furthermore Icons with credit cards, verisign etc. on the payment page make
customers trust the site several times more than sites without it. (It's
been tested)

Regards

Max M

Max M. W. Rasmussen,Denmark.   New Media Director
private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Specialization is for insects.  -  Robert A. Heinlein

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Brad
Clements
Sent: Wednesday, December 06, 2000 7:17 PM
To: [EMAIL PROTECTED]
Subject: [Zope] Another Zope E-Commerce Site Online


Just announcing this new e-commerce zope based site.

http://www.adirondackcraft.com

Come buy something, but don't whack it too hard, this site is still a
work in progress (aren't they all?)

--

This site was "thrown together" in about 5 days for a disorganized
customer, came online just 30 minutes before it's first sale.

They had a big ad in the New York Times which pushed the deadline.

-

Zope 2.2.4 with Interbase, gvibDA and Wampum Generator running
behind Apache with mod_proxy and mod_ssl, on RH Linux 7.

I'm thinking of writing a white paper on this entire experience, from a
consulting point of view and a programmer's viewpoint. Not sure how
useful that would be to anyone.

There were 2 graphics/layout designers and myself working directly with
the customer to go from concept to completion in an extremely short
timeframe.



Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

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



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




Re: [Zope] Another Zope E-Commerce Site Online

2000-12-06 Thread Bill Welch

Maybe you just looked at the catalog and didn't notice what's in the
checkout. Having spent the past month setting up a site with Etailer, I
would have to completely disagree with you. If Brad started with Etailer
(I suspect he did, the checkout sequence has an Etailer look), it would
have taken a lot of hard core programming, not graphical work, to get to
where he is in 5 days.

1) Etailer doesn't support separate billing and shipping addresses

2) ETailer doesn't support a shipping fee, much less shipping alternatives

3) Etailer doesn't do taxes.

Adding even one of the above features means touching a lot of python,
management dtml, and user dtml.

4) Etailer sorts options alphabetically. 

5) Etailer uses the variable name as the label on forms, i.e. Firstname in
CheckOut. Makes for ugly shipping address vs billing address forms unless
you extend the required_properties code to support labels. More python,
management dtml, and user dtml.

Nothing wrong with Etailer, but there's a lot to Brad's site that Etailer
doesn't handle.

Bill.

On Thu, 7 Dec 2000, Terry Kerr wrote:

 Hi,
 
 Looks good.  5 days eh?.  I think one graphics artist could have done it
 in less than two days using Etailer (e-tailer.adroit.net)...except for the
 Wampum bit...I am hoping someone will add this in soon.
 
 terry
 
 Brad Clements wrote:
 
  Just announcing this new e-commerce zope based site.
 
  http://www.adirondackcraft.com



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




Re: [Zope] Another Zope E-Commerce Site Online

2000-12-06 Thread Terry Kerr

Bill,

No I didn't look at the checkout.  It just seemed that the catalog was a
perfect fit.

terry

Bill Welch wrote:

 Maybe you just looked at the catalog and didn't notice what's in the
 checkout. Having spent the past month setting up a site with Etailer, I
 would have to completely disagree with you. If Brad started with Etailer
 (I suspect he did, the checkout sequence has an Etailer look), it would
 have taken a lot of hard core programming, not graphical work, to get to
 where he is in 5 days.

 1) Etailer doesn't support separate billing and shipping addresses

 2) ETailer doesn't support a shipping fee, much less shipping alternatives

 3) Etailer doesn't do taxes.

 Adding even one of the above features means touching a lot of python,
 management dtml, and user dtml.

 4) Etailer sorts options alphabetically.

 5) Etailer uses the variable name as the label on forms, i.e. Firstname in
 CheckOut. Makes for ugly shipping address vs billing address forms unless
 you extend the required_properties code to support labels. More python,
 management dtml, and user dtml.

 Nothing wrong with Etailer, but there's a lot to Brad's site that Etailer
 doesn't handle.

 Bill.

 On Thu, 7 Dec 2000, Terry Kerr wrote:

  Hi,
 
  Looks good.  5 days eh?.  I think one graphics artist could have done it
  in less than two days using Etailer (e-tailer.adroit.net)...except for the
  Wampum bit...I am hoping someone will add this in soon.
 
  terry
 
  Brad Clements wrote:
 
   Just announcing this new e-commerce zope based site.
  
   http://www.adirondackcraft.com

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

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions (www.adroit.net)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381




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




RE: [Zope] Another Zope E-Commerce Site Online

2000-12-06 Thread Lee Hunter

Site looks beautiful but I would *never* have guessed that it was an ecom
site unless you told me.

Even then it was just by accident that I clicked an image and came to a
price and description. Maybe that's the part you were refering to as being
in progress.

Otherwise the site works great.

Cheers

Lee Hunter
Hum Communications Ltd.



 Brad Clements wrote:

  Just announcing this new e-commerce zope based site.
 
  http://www.adirondackcraft.com
 
  Come buy something, but don't whack it too hard, this site is still a
  work in progress (aren't they all?)



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




Re: [Zope] Cut/copy/paste problems

2000-12-06 Thread [EMAIL PROTECTED]

On Wednesday 06 December 2000 19:08, Oleg Broytmann wrote:
 Hello!

For a long while I have problems with cut/copy/paste in Zope management
 interface.
I run Zope behind Apache with mod_pcgi2.

I did some quick experiments. I connected directly to Zope (port 8080).
 Cut/copy/paste worked flawlessly. Hence the problem is not in the browser
 nor in the proxy nor in Zope. Perhaps the problem is in mod_pcgi2 or in
 the Apache or in my specific version of Russian Apache.

I switched to Zope.cgi. Copy/paste worked, but cut stopped working.
 Oops! First sign of problem. May be this is a problem with PCGI?
With mod_pcgi2 copy/paste almost always do not work.

To help me to resolve the problem I want to ask the helpful community
 provide me some information. Of those who run Zope behind Apache please
 tell me:

 1) which way do you connect? (mod_proxy, Zope.cgi, mod_pcgi2, mod_fcgi)
 

i've tried proxypass, fcgi, and modpci2.  and i stuck with mod_pcgi2, since 
this is the option with the least amount of problems/failure.

2) any problem?
w fcgi, i have connection failed errors.  with proxy pass, zope 
intermittently hangs, causing apache to reach the max client parameter set.

i connect to zserver for all my management/development, so i may not see 
cut/copy/paste problem.  but i did give it a try with mod_pcgi2 and 
apache1.3.9, and i can cut/copy/paste.

hth


Thank you in advance.

 Oleg.
 
  Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.


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

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

I will follow you! ..Damage Inc


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




Re: [Zope] score in ZCatalog search results?

2000-12-06 Thread Kevin Teague


 Can't seem to find word on this anywhere.  I wanted to put relevancy ranking
 into my ZCatlog search result hit-list, but am finding no info in searches
 of zope.org, ZDP, or mailing lists.

data_record_score_ is probably what you want. You could use it to do
something like:

dtml-in "zcatalog(field=keyword)" sort=data_record_score_ reverse
id: dtml-var idbr
score: dtml-var data_record_score_br
hr
/dtml-in

Or for a more complex example, see this page:

http://www.stormix.com/search_website_results/view_source

--
  Kevin Teague, Zopista
  http://www.stormix.com

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




Re: [Zope] Re: [Zope-ZEO] Zope 2.2.4 ZEO 0.4.1 (latest anyway)doesn'twant to add Products

2000-12-06 Thread Bill Anderson

Shane Hathaway wrote:
 
 On Tue, 5 Dec 2000, Bill Anderson wrote:
  So, what would you suggest for the following scenario?
 
  o Site distirbuted via ZEO
  o Using SiteAccess2 for virtual hosting sites under
/vhosts/thissite /vhosts/thatsite
  o each site is actually it's own full Data.fs
 
  Under non-zeo, it's simple, use a mounted filestorage, and it works
  quite well. Unfortunately, it doesn't work under zeo, for obvious
  reasons. If I had time, I'd do a mountedZEOstorage, but time is too much
  a precious commodity for the next few weeks/months. :/
 
 What do you mean it doesn't work under ZEO?  Set it up just like zope.org.

Simple: I have a site running on it's own right now. It is based right
of of the root of the data.fs, not under a folder (like a wiki is). If I
try the externalmount you tarred up for us (thank you, btw), it insist
on having a path inside said data.fs.  If I give it a folder in said
data.fs it works for that folder, as expected.
 
 Either create two storage servers or one that provides access to both
 FileStorages.  Then write an external method for each storage, each of
 which creates a ClientStorage and wraps a DB around it. 

How do I do this part? I made one for FileStorage (the example given),
which works fine. Substituting ClientStorage for FileStorage didn;t
work. ;)

...mebbe I've just been too deep in scsi code lately to think properly
... ugh.

 Then mount those
 external methods.  Thus you don't even need to write MountedZEOStorage.

That would be a boon. :)


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




Re: [Zope] REQUEST.set doesn't set in 2.2.4

2000-12-06 Thread Bill Anderson

Brad Clements wrote:
 
 This code:
 
 dtml-call 
"REQUEST.set('verrormessage',orderobject.chargeCard(REQUEST,Holmes.CyberCash,Rec))"
 !-- charge result is dtml-verrormessage;--
 
 Prints out _.None as the result.
 
 However a print statement in my ordeobject.chargeCard method shows
 that the return value isn't None.
 
 This seems broken. The return code is coming from within an exception
 handler, I wonder if that is related to the problem.
 
 I've also noticed that in a dtml-trydtml-except calling
 REQUEST.set within the except doesn't set it.
 
 Anyone got ideas?

Just for thoroughness (or something) try this to eliminate something:

!-- PRE: charge result is dtml-var
"orderobject.chargeCard(REQUEST,Holmes.CyberCash,Rec)" --
dtml-call
"REQUEST.set('verrormessage',orderobject.chargeCard(REQUEST,Holmes.CyberCash,Rec))"
!-- POST: charge result is dtml-verrormessage;--


This should determine whether what you want to set is working first.
If PRE and POSt are the same, the problem s defintiely in your method
call.  

dtml-call REQUEST.set is working fine on 2.2.4 from here.


Bill


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




Re: [Zope] Disabling Services

2000-12-06 Thread Bill Anderson

Ivan Cornell wrote:
 
 Chris Withers wrote:
 
  When Zope starts up, I see it starts the following:
 
  ZServer Medusa (V1.16.4.3)
  ZServer FTP server
  ZServer PCGI Server
  ZServer Monitor Server (V1.8.4.1)
 
  Which of those handles WebDAV requests?
  How do I turn any of the above 'off' permentantly, without hacking z2.py
  or anything similar (which is nasty ;-)
 
 
 Not sure about WebDAV (I guess try the following  see!), but in my startup
 script I have:
 exec /usr/local/Zope-2.2.4-linux2-x86/bin/python \
  $PYTHONHOME/z2.py \
  -X -w 8000 "$@"
 
 -X : turn off all servers
 -w : explicitly turn on http server on port 8000
 I took out -D as it is a production server  after reading the last few
 digests I'm going to add -Z, though Zope hasn't crashed once on me yet!


Note, that it the past, doing this also disabled pcgi. I dunno if that
has been resolved, but it was a REAL nightmare here 

Of course, you aren't using pcgi, so for you, that's not a problem. :) I
just thought I'd injectthat little comment for future readers who may be
wondering wtf if they try this and still need pcgi. 

Bill


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




Re: [Zope] Zope Beginner

2000-12-06 Thread Bill Anderson

Dieter Maurer wrote:
 
 Mark A. Pappas writes:
    zope running on port 80 
 All ports below 1024 are priviledged ports.
 
 Under Unix, a process must run as "root" to bind to them.


Mehtinks that start.bat indicates teh querant is on windows ... but I
could be wrong. ;^)=

If on windows,. check to make sure you don't have  personal webserver or
something like that running.

Bill


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




[Zope] Adding users

2000-12-06 Thread Mike Kelland



Is it possible to have a form in a zope page that 
allows you to add a new user to the acl_users folder? I can get the data I 
need, I just need to know, if I have the user name and password as dtml 
variables, and the user adding the other user has all the appropriate 
permissions, is there a way in dtml to use this information to add a user (with 
a defined role).

Thanks very much for this and prior 
help!

Mike Kelland
[EMAIL PROTECTED] 



Re: [Zope] Adding users

2000-12-06 Thread Randall Kern



Something like this should work:

dtml-with acl_users
 dtml-call 
expr="manage_users(submit = 'Add')"
/dtml-with

It will look in the REQUEST for the following 
fields:
 name
 password
 confirm (this must match 
password)
 roles
 domains

So either set these from an HTML form, or use 
dtml-call expr="REQUEST.set('name', 'Joe')". For examples of the 
form technique, look at zope/lib/python/AccessControl/addUser.dtml

-Randy

  - Original Message - 
  From: 
  Mike 
  Kelland 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, December 06, 2000 8:47 
  PM
  Subject: [Zope] Adding users
  
  Is it possible to have a form in a zope page that 
  allows you to add a new user to the acl_users folder? I can get the data 
  I need, I just need to know, if I have the user name and password as dtml 
  variables, and the user adding the other user has all the appropriate 
  permissions, is there a way in dtml to use this information to add a user 
  (with a defined role).
  
  Thanks very much for this and prior 
  help!
  
  Mike Kelland
  [EMAIL PROTECTED] 



Re: [Zope] Another Zope E-Commerce Site Online

2000-12-06 Thread Jason C. Leach

hi,

How long did it take?  And what level of Zope(xpertese) where you at whe
you started?  Did you have to do that shopping cart from scratch?

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Wed, 6 Dec 2000, Brad Clements wrote:

 Just announcing this new e-commerce zope based site.
 
 http://www.adirondackcraft.com
 
 Come buy something, but don't whack it too hard, this site is still a 
 work in progress (aren't they all?)
 
 --
 
 This site was "thrown together" in about 5 days for a disorganized 
 customer, came online just 30 minutes before it's first sale. 
 
 They had a big ad in the New York Times which pushed the deadline.
 
 -
 
 Zope 2.2.4 with Interbase, gvibDA and Wampum Generator running 
 behind Apache with mod_proxy and mod_ssl, on RH Linux 7.
 
 I'm thinking of writing a white paper on this entire experience, from a 
 consulting point of view and a programmer's viewpoint. Not sure how 
 useful that would be to anyone.
 
 There were 2 graphics/layout designers and myself working directly with 
 the customer to go from concept to completion in an extremely short 
 timeframe. 
 
 
 
 Brad Clements,[EMAIL PROTECTED]   (315)268-1000
 http://www.murkworks.com  (315)268-9812 Fax
 netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements
 


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




Re: [Zope] Another Zope E-Commerce Site Online

2000-12-06 Thread Jason C. Leach

hi,

You shoud add it to the Zope site's list of Zope sites.

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 



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




RE: [Zope] Another Zope E-Commerce Site Online

2000-12-06 Thread icottee



Ooops

I get a Zope transaction error when I go there

Ian Cottee



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