[Zope-dev] Another caching scheme...

2000-11-08 Thread Carlos Neves

Hello, all.

The reason that brings me here is to ask for the good people's cooperation. Ok,
bad people can cooperate too ;)

In the long hard way of creating some sort of internal cache scheme for zope,
one that wouldn't depend on meta-tags and would be transparent to the
developer/user, I came up with CachePool
(http://www.zope.org/Members/neli/CachePool).
But that just isn't enough... though it works for a specific caching scheme,
it's not a site wide, or should I say, server wide. Mindstorming with my fellow
workers, one (the boss, and that's why he's the boss) came up with the magic
words... cache the html on it's way out and make some callback on request to
test if we have that particular request in store. So I did...
First try was to integrate SiteAccess with a traversal interfaced CachePool,
one you could call /Cacher/thing/to/grab in order to cache /thing/to/grab from
the root. But __bobo_traverse__ just isn't my friend.
Next thing I did, I took out the surgeon gloves and went to get my hands
dirty. I started tampering with ZPublisher/Publish.py.
And this is where I need your help. To those of you who don't suffer from a
faint heart and wish to increase zope's performance by about 6x (my number,
your's *will* be different), I ask to point your browsers to my Member page,
where instructions and source will be available.
btw, the one on my Members page is for Zope 2.2.2, and will only work with
zope's with the exact same Publish.py.  Both win and linux 2.2.2 versions
have the same Publish.py.

Oh, and of course, I would appreciate any feedback on
bugs/features/comments/you_have_no_idea_what_your_doin/hello_how_are_you

Hope I haven't bothered you, but I tend to get carried away!

-- 
"Kill processes, not people."
- Larry Cohen

Carlos Neves
[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] Another caching scheme...

2000-11-08 Thread Itamar Shtull-Trauring

Carlos Neves wrote:

 But that just isn't enough... though it works for a specific caching scheme,
 it's not a site wide, or should I say, server wide. Mindstorming with my fellow
 workers, one (the boss, and that's why he's the boss) came up with the magic
 words... cache the html on it's way out and make some callback on request to
 test if we have that particular request in store. So I did...

Um, what you're describing is already supported using HTTP caching headers.
Set up Apache as a reverse proxy, give Zope the appropiate header handling
code (I posted how on Zope-dev a while back) and you'll get wonderful speed
up without messing with Zope's internals.

-- 
Itamar S.T.  [EMAIL PROTECTED]
Fingerprint = D365 7BE8 B81E 2B18 6534  025E D0E7 92DB E441 411C

___
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] Confera status?

2000-11-08 Thread Thilo Mezger

Hi!

I read something about Confera being obsolete or not working
properly anymore.  Is that true?  I wanted to run Confera on
a 2.1.6 server but I get horribly bad results (1 req/sec).

Is there a solution to the performance problem?  Or a replacement
to Confera?  I searched but couldn't find any more information...

Thilo


-- 
[EMAIL PROTECTED]
e-business manager  innominate AG
 the linux architects
tel: +49-30-308806-0fax: -77   www.innominate.com 

___
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] Objects that are properties

2000-11-08 Thread Roch'e Compaan

I have a Customer and Address ZClasses based on Dataskin as well as a
CustomerManager specialist.

The Customer ZClass has a external method setAddress:

def setAddress(self, Address)
  self.Address = Address

CustomerManager has a defaultRack and addressRack.
The methods that adds the instance contains this:

dtml-let newCustomer="newItem(name)"
dtml-call
"newCustomer.propertysheets.Basic.manage_changeProperties(test=test)"
  dtml-let address="addressRack.newItem(id)"
 dtml-call
"address.propertysheets.basic.manage_changeProperties(test=test)"
 dtml-call "newCustomer.setAddress(address)"
  /dtml-let
/dtml-let

and it seems to work fine.

Then to retrieve the Customer addresses I call:

addressRack.getPersistentItemIDs()"

but there seems to be a problem with permissions because Zope prompts me for
username and password although i'm already working in the management
interface.

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 )




RE: [Zope-dev] JPython Product?

2000-11-08 Thread Casey Duncan

Steve:

That is good to know, being a Mac fan myself. I'll have to play with and
test the different browsers on the client side as well as server-side jdks.
From what I have learned so far on the server end, the project seems
reasonably feasible.

I think the interesting part will be creating the precise dividing line
between the JPython and CPython worlds. I doubt much JPython will exist in
the product excepting some "glue" to get Zope/CPython to interact with it in
a robust way. That will probably be the fun part.

Thanks for the comments,
Casey D.

-Original Message-
From: Steve Spicklemire [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 08, 2000 5:33 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope-dev] JPython Product?



Hi Casey,

   I think this is a fine idea. The main thing that keeps me from
doing it is that JPython doesn't work on Netscape (Mac) and so (at this
point at least) I can't use it, unless I have a context where I can
insist that users use a particular browser.

The other annoyance is the long download time for the JPython
implementation

The other annoyance is the general flakiness of Java VMs out there

But.. I think the concept is a good one.. and once the JPython
implementation is cached it should be pretty fast. Then you just
have to worry about all the JVM bugs. ;-)

good luck!
-steve


___
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] ZPatterns, MySQL, Full Text Searching

2000-11-08 Thread Chris Withers

Hello,

I've read that ZPatterns and ZCatalog don't interact too well and I was
wondering if this is also true of the new ZPatterns release. I might be
looking to move something to ZPatterns so that it can get all benefits
of Zope's security system and things like the Catalog, obviously if the
Catalog doesn't work with ZPatterns, that's a bit of a problem :-S

On a related note, has anyone thought of using MySQL's new full text
searching to implement the Catalog interface? Has anyone thought of or
actually made the Catalog stuff into an interface so people can
implement other options to ZCatalog?

cheers,

Chris

PS: Is there a ZPatterns demo/tutorial around anywhere? How should I
start getting into ZPatterns? What should I read? Where should I start?
(The four most common ZPatterns FAQ's if I'm not mistaken ;-)

___
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, MySQL, Full Text Searching

2000-11-08 Thread Itamar Shtull-Trauring

Chris Withers wrote:
 
 I've read that ZPatterns and ZCatalog don't interact too well and I was
 wondering if this is also true of the new ZPatterns release. I might be
 looking to move something to ZPatterns so that it can get all benefits
 of Zope's security system and things like the Catalog, obviously if the
 Catalog doesn't work with ZPatterns, that's a bit of a problem :-S

CatalogAwareness and DataSkings don't work together. However, I wrote and
stevea maintains a replacement, for DataSkins, thats better than
CatalogAwareness - it automatically recatalogs when the object changes - no
more reindex_object() calls. The product is DataSkinAddons.

Older version of ZPatterns didn't support subtransactions - newest version
does, so it should work fine with ZCatalog.

-- 
Itamar S.T.  [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] ZPatterns: Non-ZODB storage and Racks

2000-11-08 Thread Roch'e Compaan

In Rack.py I noticed the following:

a = self.loadAttrib
if not a:
slot = self._writeableSlot(key)
slot[SelfKey] = item.aq_base# strip acquisition wrapping
item._setSlot(slot) # Not needed for non-ZODB
storage

If item._setSlot set is not needed for non-ZODB storage should I subclass
rack and override createItem?

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 )




Re: [Zope-dev] ZPatterns, MySQL, Full Text Searching

2000-11-08 Thread Steve Spicklemire


Hi Chris,

ZPatterns and ZCatalog work fine. Here is a skin script I've
been using to keep a catalog up to day with DataSkins:

WHEN OBJECT ADDED CALL Catalog.catalog_object(self, 
_.string.join(self.getPhysicalPath(),'/'))

WHEN OBJECT DELETED CALL 
Catalog.uncatalog_object(_.string.join(self.getPhysicalPath(),'/'))

WHEN OBJECT CHANGED CALL 
Catalog.uncatalog_object(_.string.join(self.getPhysicalPath(),'/')), 
Catalog.catalog_object(self, _.string.join(self.getPhysicalPath(),'/'))

The problem (I think) is DataSkins and CatalogAware, which don't mix.

-steve

 "Chris" == Chris Withers [EMAIL PROTECTED] writes:

Chris Hello,

Chris I've read that ZPatterns and ZCatalog don't interact too
Chris well and I was wondering if this is also true of the new
Chris ZPatterns release. I might be looking to move something to
Chris ZPatterns so that it can get all benefits of Zope's
Chris security system and things like the Catalog, obviously if
Chris the Catalog doesn't work with ZPatterns, that's a bit of a
Chris problem :-S

Chris On a related note, has anyone thought of using MySQL's new
Chris full text searching to implement the Catalog interface? Has
Chris anyone thought of or actually made the Catalog stuff into
Chris an interface so people can implement other options to
Chris ZCatalog?

Chris cheers,

Chris Chris

Chris PS: Is there a ZPatterns demo/tutorial around anywhere? How
Chris should I start getting into ZPatterns? What should I read?
Chris Where should I start?  (The four most common ZPatterns
Chris FAQ's if I'm not mistaken ;-)

Chris ___ Zope-Dev
Chris maillist - [EMAIL PROTECTED]
Chris http://lists.zope.org/mailman/listinfo/zope-dev ** No cross
Chris posts or HTML encoding!  ** (Related lists -
Chris http://lists.zope.org/mailman/listinfo/zope-announce
Chris 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-dev] Objects that are properties

2000-11-08 Thread Roch'e Compaan

This is a known problem. Use:

 dtml-let itemIDs="[]"
 dtml-in "addressRack.getPersistentItemIDs()" sort
 dmtl-call "itemIDs.append(_['sequence-item'])"
 /dtml-in

 Now you have the required itemIDs in itemIDs.

 /dtml-in

Thanks Steve and thank you Phillip for ZPatterns.

I've managed to create a very basic framework storing attributes in the ZODB
and in a SQL RDBMS.  I'm elated.  This is the way to write applications,
IMHO.

A couple of things are still unclear but I at least feel that I can create
now.

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 )




Re: [Zope-dev] ZPatterns: Non-ZODB storage and Racks

2000-11-08 Thread Phillip J. Eby

At 06:10 PM 11/8/00 +0200, Roch'e Compaan wrote:
In Rack.py I noticed the following:

a = self.loadAttrib
if not a:
slot = self._writeableSlot(key)
slot[SelfKey] = item.aq_base# strip acquisition wrapping
item._setSlot(slot) # Not needed for non-ZODB
storage

If item._setSlot set is not needed for non-ZODB storage should I subclass
rack and override createItem?


I'm not sure I understand your question.  If you don't have something
special you want to do by subclassing Rack, then the answer would be "no".  :)

The comment is perhaps misleading.  What it means is that the _setSlot call
isn't needed if your Rack implements a non-ZODB storage mechanism.  The
reason *why* it isn't needed, is that the DataSkin will ask for a slot on
demand, so that a ZODB record is only created if something needs to be
stored persistently.  However, in the case where you have not set a "load"
attribute (i.e., you are storing actual objects in the ZODB), then one
might as well tell the object its slot, because the slot is where the
object itself is going to be stored.  Technically, the _setSlot call isn't
necessary even then, because the DataSkin could still ask for it on demand.
 However, since the code at this point has gone to the trouble of getting
the slot object, it might as well pass it to the DataSkin immediately.


___
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] Cache parameters

2000-11-08 Thread Andy McKay

Just wondering what kind of cache parameters people run on their Zope
installation.

It would seem running a high target size and maximum time between accesses
would speed up those requests it can find the cache, but not cached request
take longer since more RAM is used in the maintaining of the cache (guess).

Has anyone found a sweet spot away from the standard, I guess of course it
all depends on the individual Zope site, this one is particulary ZCatalog
heavy. Or should I just leave it at the default, which I found seems to work
fine.

--
  Andy McKay, Developer.
  ActiveState.



___
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] REQUEST in id causes errors

2000-11-08 Thread Neil K

Any id with 'REQUEST' in it cannot be edited or viewed. If you don't believe
me, try it out yourself. In my case, I *need* a URL named
'BIG_REQUESTS.html' -- it's a Zope-based mirror of content from somewhere
else.

This fixes it:

/lib/python/ZPublisher/BaseRequest.py:
243c243
 if find(path, '/REQUEST/') = 0:
---
 if find(path, 'REQUEST') = 0:


I'm not sure if I did quite the right thing here... are delimiters always
slash? should we also check if the URL terminates in "/REQUEST"? What about
cgi parameters named 'REQUEST'?

Zope gurus, your comments please?

--
Neil Kandalgaonkar  [EMAIL PROTECTED]
Web Application Developer, ActiveState


___
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: Non-ZODB storage and Racks

2000-11-08 Thread Roch'e Compaan


 I'm not sure I understand your question.  If you don't have something
 special you want to do by subclassing Rack, then the answer would be
 "no".  :)

You do answer my question below.  I was wondering if this line would not
cause an object to be stored in the ZODB by default.

 
 The comment is perhaps misleading.  What it means is that the _setSlot
 call isn't needed if your Rack implements a non-ZODB storage mechanism. 
 The reason *why* it isn't needed, is that the DataSkin will ask for a
 slot on demand, so that a ZODB record is only created if something needs
 to be stored persistently.  However, in the case where you have not set
 a "load" attribute (i.e., you are storing actual objects in the ZODB),
 then one might as well tell the object its slot, because the slot is
 where the object itself is going to be stored.  Technically, the
 _setSlot call isn't necessary even then, because the DataSkin could
 still ask for it on demand.
  However, since the code at this point has gone to the trouble of
  getting
 the slot object, it might as well pass it to the DataSkin immediately.

Here I loose you.  What does "setting the load attribute" mean?

I did manage to store objects in a SQL RDBMS through some skinscript
methods that call sql methods.  I assumed selecting a ZClass on the
storage tab simply informs the ZClass what it's rack is. I couldn't verify
if these objects were stored in the ZODB as well as in my RDBMS.

Besides writing some skinscript and sql methods is there anything else one
should do to only use non-ZODB storage.  When will I use attribute and
sheetproviders and do they come into play at all with non-ZODB storage.

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 )




RE: [Zope-dev] REQUEST in id causes errors

2000-11-08 Thread Neil K

D'oh. The diff I posted was backwards. I assume you all got the general
idea.

With more context:

*** C:\Documents and Settings\neilk\My Documents\BaseRequest-old.py Wed Nov
08 12:21:32 2000
--- lib\python\ZPublisher\BaseRequest.pyWed Nov 08 12:22:05 2000
***
*** 242,244 
  # Make sure that REQUEST cannot be traversed.
! if find(path, 'REQUEST') = 0:
  return response.notFoundError(path)
--- 242,244 
  # Make sure that REQUEST cannot be traversed.
! if find(path, '/REQUEST/') = 0:
  return response.notFoundError(path)


--
Neil Kandalgaonkar  [EMAIL PROTECTED]
Web Application Developer, ActiveState



___
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] Re: Problems with LoginManager 0.8.8b1

2000-11-08 Thread Phillip J. Eby

Jeff,

The behavior is exactly the same with a "plain" Zope User Folder.  It also
has nothing to do with acquisition, at least not in the way you think.

The problem is that a user who is defined in a subfolder is *not* granted
roles to any folder above them.  This means that they have no access to
"standard_html_header", unless it is set to be viewable by Anonymous.  Hope
that answers your question.


At 11:50 AM 11/7/00 -0500, Jeff Hoffman wrote:
Phillip and Ty,

I posted this to the Zope list two to three days ago. No one has
responded, so I am writing you directly in the hopes that one of you 
may have some insight on my problem.

If I can do anything to help you narrow it down, such as tarring up
my Zope install and sending it to you (with my ZODB and products),
let me know.

Thanks,

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.com/

-- Forwarded message --
Date: Sun, 5 Nov 2000 16:02:14 -0500 (EST)
From: Jeff Hoffman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Zope] Problems with LoginManager 0.8.8b1

Hello,

I am having an odd problem with LoginManager 0.8.8b1 and am writing the
list in the hopes that someone can either help me out, or confirm that
I've encountered a bug.

I am running Zope 2.2.2 with Python 1.5.2 on a Linux box. I installed
LoginManager as described, and compiled DynPersist and so forth for
ZPatterns. All seems to be working well.

I created a temporary folder called 'sandbox', inside of which I
instantiated a LoginManager. In its UserSource (a Generic User Source), I
created four Python Methods (with Python Methods v0.1.7):

  ---
  userAuthenticate
  paramsself, REQUEST, username, password/params

  if username == 'XXX' and password == 'XXX':
return 1
  else:
return 0
  ---
  userExists
  paramsself, REQUEST, username/params

  if username == 'XXX':
return 1
  else:
return 0
  ---
  userDomains
  paramsself, REQUEST, username/params

  return []
  ---
  userRoles
  paramsself, REQUEST, username/params

  if username == 'XXX':
return ['Manager', 'Member']
  else:
return ['Member']

Once done, I pointed my browser to http://myhost/sandbox/index_html. This
method is a standard DTML Method, inluding standard_html_header and footer
and putting some text in the middle.

I get the following error:

Traceback (innermost last):
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: index_html)
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: index_html)
  File /usr/local/zope/lib/python/OFS/DTMLMethod.py, line 172, in __call__
(Object: index_html)
  File /usr/local/zope/lib/python/DocumentTemplate/DT_String.py, line 528,
in __call__
(Object: index_html)
KeyError: standard_html_header

Zope can't find standard_html_header. I am guessing the acquisition path
is getting hosed somewhere along the way. If I simply delete acl_users
from sandbox (my LoginManager), index_html works fine. Moreover, it is not
just standard_html_header that I can't acquire. I created a DTML Method
called foo, and could not acquire it, either.

Any ideas?

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.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 )





___
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] JPython Product?

2000-11-08 Thread Bjorn Stabell

Somehow I think the other way around would be even more interesting: a
Java application server accessing Zope (Jope?).  The platform market is
really tough, and competing with Java isn't easy.  If you can't beat
them, join them...  I guess there are millions of reasons why it can't
be done, though?

-Original Message-
From: Casey Duncan [mailto:[EMAIL PROTECTED]]
Posted At: Wednesday, November 08, 2000 23:20
Posted To: Zope Developer
Conversation: [Zope-dev] JPython Product?
Subject: RE: [Zope-dev] JPython Product?


Steve:

That is good to know, being a Mac fan myself. I'll have to play with and
test the different browsers on the client side as well as server-side
jdks.
From what I have learned so far on the server end, the project seems
reasonably feasible.

I think the interesting part will be creating the precise dividing line
between the JPython and CPython worlds. I doubt much JPython will exist
in
the product excepting some "glue" to get Zope/CPython to interact with
it in
a robust way. That will probably be the fun part.

Thanks for the comments,
Casey D.

-Original Message-
From: Steve Spicklemire [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 08, 2000 5:33 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope-dev] JPython Product?



Hi Casey,

   I think this is a fine idea. The main thing that keeps me from
doing it is that JPython doesn't work on Netscape (Mac) and so (at this
point at least) I can't use it, unless I have a context where I can
insist that users use a particular browser.

The other annoyance is the long download time for the JPython
implementation

The other annoyance is the general flakiness of Java VMs out there

But.. I think the concept is a good one.. and once the JPython
implementation is cached it should be pretty fast. Then you just
have to worry about all the JVM bugs. ;-)

good luck!
-steve


___
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-dev] ZPatterns: Non-ZODB storage and Racks

2000-11-08 Thread Roch'e Compaan


 It's determined by the radio button setting on the Storage tab.  If you
 neglected to set it to "loaded by accessing attribute " and
 fill in the
 blank, then your objects have been stored in the ZODB, as well as in the
 RDBMS.


Thanks.

I set "loaded by accessing attribute" to the attribute "id".  Storing items
in the RDBMS works fine.  But when I try to retrieve them with
getPersistentItemIDs() nothing is returned?  I have a skinsript method
getCustomer:

WITH getCustomerSQL(CUSTOMER_ID=self.id) COMPUTE id=CUSTOMER_ID, name=NAME

and getCustomerSQL is a SQL method.

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] Needed: DCOracle C++ code on which SWIG was used

2000-11-08 Thread Alwyn Schoeman

Hi all,

It is a real pain in the b to get a C++ library to use with Oracle 8 on 
Solaris  Can someone please send me information on getting the C++ code 
used to generate the python wrappers with SWIG?

Thank you
-- 
~~~
Alwyn Schoeman

The clock on the wall keeps moving, time stands still.  No matter how
the dice may fall, someone else always gets to call the number.

___
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] Dump .zexp export to readable source?

2000-11-08 Thread Robin Becker

In article 7BD10B680501D411B9DF009027E06F32197AD5@exchange, Max Møller
Rasmussen [EMAIL PROTECTED] writes
From: Alex Khan [mailto:[EMAIL PROTECTED]]

I can probably learn more from reading other people's code than by reading
the fragmented documentation.
I can do this easily with products but not zexp's. Thanks in advance...
 
zClasses are not written in Python so there is no code to see. Except fot
the dtml code and you can see that when you have imported a zClass product.

Regards Max M

...
I disagree strongly. Many of the useful coding tools need line oriented
Ascii text; where is diff or grep for my ZClass code. The XML export
form would do except that the differences caused by ordering/numbering
mean that diff reports many irrelevant differences. Zope loses by not
having a decent external storage mechanism for its programming.
-- 
Robin Becker

___
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] asked a million times again...

2000-11-08 Thread Chris Withers

 Chris Trowbridge wrote:
 
 Okay, I got the dtml-var filename to work right assuming that that
 files are arranged properly according to aquistion, but then when I
 try to get the file from another folder like
 
 dtml-var "folder.filename"
 
 It displays the code of that page rather thatn recognizing that it is
 content. What should I do?

1. Stop posting in HTML.

2.

dtml-with folder
 dtml-var filename
/dtml-with

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] Python Methods Vote

2000-11-08 Thread Chris Withers

Is there any way you can see what the results are looking like without
having to vote again?

How do you know we're only voting once? ;-)

cheers,

Chris

Michel Pelletier wrote:
 
 Please vote folks!
 
 -Michel
 
 Shane Hathaway wrote:
 
  Being Election Day in the United States, now is a good time to vote on
  the new name for Python Methods.
 
  Python Methods are a relatively new concept for Zope. They give you the
  features of DTML, such as through-the-web editing and security, while
  providing a familiar, refined syntax.
 
  But before we can fold them into the Zope core, you need to help us
  choose the right name for them. Some have voiced the opinion that the
  name "Python Method" is confusing because it can just as easily refer to
  methods in standard Python modules.
 
  There are some interesting alternatives, so please cast your vote!
 
  http://www.zope.org/Members/hathawsh/poll
 
  ___
  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 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] How to access control panel debug information as normal user??

2000-11-08 Thread Gilles Lavaux

Hello,


I want to give to my normal users (non manager) the possibility to access
some debug informations like:
- the number of currently open connections + the date of the openning.
(This mainly to track the hanged request...)

I am not able to retrive this information, except as manager. Whatever
security or role I set on my 'status' method:
dtml-var standard_html_header
!--#try--
  Status:br
  !--#var "Control_Panel.DebugInfo.dbconnections()"--
!--#except--
  !--#var Except_Message--
!--#/try--
dtml-var standard_html_footer


Thanks for any help

Gilles Lavaux


___
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 access control panel debug information as normal user??

2000-11-08 Thread Chris Withers

Gilles Lavaux wrote:
 
 I am not able to retrive this information, except as manager. Whatever
 security or role I set on my 'status' method:


You need to give your 'status' method a proxy Role of Manager. Then be
very careful that only managers can edit that method ;-)

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] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread Hamish Lawson

In the poll currently underway on renaming options for Python Methods, 
the most popular choice so far is to leave the name as it is. It could
just be because people don't see enough benefit in changing what's
already there, but I think it may be that people actively feel that the
term 'method' captures some technical essence. However, we still have
the problem of disambiguating between a method in Zope's eyes and a
method in the implementation language. How about calling anything that
Zope regards as a method a Zope Method? That would then give us Python
Zope Method, Perl Zope Method, DTML Zope Method, SQL Zope Method, etc.
Is it too late to add the option for Python Zope Method to the poll?

Hamish Lawson



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
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] Cloning a ZClass-Instance

2000-11-08 Thread brocken22

Thank you Dieter for your reply,
but yout suggestion doesn't solve the problem.
This is the traceback:
"The object 973677459 does not support this operation "
This means to me that x is an instance.
That's my script-
dtml-in "objectValues(['news'])"
dtml-let x="_.getitem('sequence-item')"

dtml-if "Jetzt.isCurrentDay()"
 dtml- call "manage_clone(x,'versuch', [REQUEST])" 
   
Kopiert!!!
dtml-else
  
   dtml- var text
/dtml-if
/dtml-let
/dtml-in

-- 
Sent through GMX FreeMail - http://www.gmx.net


___
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] images in directories

2000-11-08 Thread Chris Withers

Dieter Maurer wrote:
 
 Then Chris Withers wrote: use
 
 dtml-with imagesdtml-var image.gif/dtml-with
 
 I did not believe him and tried it out...
 ... it works in Zope 2.2.2.

...worked for me all the way back to 2.1.4 ;-)

Anyway, if you're _really_ lazy, write an external method something
alogn the lines of:

def showImage(self,path):
return self.restrictedTraverse(path)(self,self.REQUEST)


...then, in your dtml, you can do:

dtml-var "showImage('/images/image.gif')"

This is all totally untested of course ;-)

I've often wondered why this isn't built into DTML so that you could do:

dtml-var /folder/myobject

obviously, you wouldn't be able to do this with stuf inside " " ;-)

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] newbie: comparing dates?

2000-11-08 Thread Chris Withers

Georg Rellensmann wrote:
 
 Hi all,
 
 another newbie-question:
 
 - I created a zclass with three date properties.
 
 - Now I´d like to display the most recent of these dates in
   directory-listings etc.

Try something like:

dtml-in "objectValues('MetaTypeOfYourZClass')" sort=your_date_property
...your dir stuff here...
/dtml-in

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] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread Chris Withers

Hamish Lawson wrote:
 Zope regards as a method a Zope Method? That would then give us Python
 Zope Method, Perl Zope Method, DTML Zope Method, SQL Zope Method, etc.
 Is it too late to add the option for Python Zope Method to the poll?

All too long an unwieldy... glad to see the -lets have died.
Sad to see neither Python Block nor Python Op(eration) seem so be
gettign there since they most accurately describe what these things are,
IMVHO...

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] my brains?

2000-11-08 Thread Júlio Dinis Silva

Hello,

I'm doing some search in two catalogs I have. They each have
more than 1000 items. When a search is made besides taking to long
the debug information screen print a lot of my brains instance.
Can anyone explain what is this "my brains" thing or some page to go and 
read more about this?

Thanks,
Júlio Dinis Silva
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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] Python Methods Vote

2000-11-08 Thread Seb Bacon


 Is there any way you can see what the results are looking like without
 having to vote again?

Don't worry, there's no need actually to count the votes.

Despite the fact that this race went right down to the wire, according to my
complex computer-based prediction models (based on exit polls and incredibly
detailed statistical analysis) I can hereby announce that "Python Script" is
the outright undisputed winner :)


___
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] XMLRPC accessing Zope DTML/SQL methods

2000-11-08 Thread Mayers, Philip J

Ok, so this works:

def extmethod(self, REQUEST):
return str(REQUEST)

From the web that prints the string Representation of REQUEST. But, over
XMLRPC, this:

s=xmlrpblib.Server("http://server.name/Zope/path/")
s.path.extmethod()

Returns the string representation of REQUEST, but *this*

s.path.extmethod('rrr')

return 'rrr'. What's happening?

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
Sent: 07 November 2000 21:35
To: Mayers, Philip J
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Zope] XMLRPC accessing Zope DTML/SQL methods

snip helpful replies

___
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] ISPs that host zope

2000-11-08 Thread Stephan Goeldi

-give me access to an RDBMS (MySQL or any other system would more than 
suffice)

MySQL

-give me a reasonable amount of space (50MB)

200MB

-not break my budget ($30.00 per month.)

CHF 49.- i.e. about US$28.00

Does such an animal exist?

We offer Zope Hosting (over Apache ProxyPass or Rewrite).
Have a look at
www.goeldi.com/e (english) or
www.leimental.net (german)

It is the same company.

Greetings
Stephan
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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] Dump .zexp export to readable source?

2000-11-08 Thread Max Møller Rasmussen

From: Robin Becker [mailto:[EMAIL PROTECTED]]

zClasses are not written in Python so there is no code to see. Except fot
the dtml code and you can see that when you have imported a zClass
product.

...
I disagree strongly. Many of the useful coding tools need line oriented
Ascii text; where is diff or grep for my ZClass code. The XML export
form would do except that the differences caused by ordering/numbering
mean that diff reports many irrelevant differences. Zope loses by not
having a decent external storage mechanism for its programming.

Whoa there ... I didn't say anything you could disagree with. I just stated
facts. But I do agree that writing software in Zope is a problem for me too.
I would also like a flat text storage system, but I also see why it is
difficult considdering the design choices made in Zope.

I believe that my problems stems from the fact that code, content and
presentation is to strongly interwoven.

zClasses are nice and simple but difficult to edit, as it has to be done in
the browser. Or at least pasted into it. You also get yourself painted into
a corner pretty quickly.

Subclassing a Pyhton class as a base for a zClass is kind of nice. But
currently I am having problems using that method as it seems that "helper
classes" cannot be adressed from dtml methods in the zClass. (Se my acessing
parameters in a "helper class" posting).

Products are difficult to make, and all the tutorials are rather bad.
Business logic and presentation is mixed together. (Business logic should
not use any code or libraries from Zope at all.)

A nice way to work would be to make a Python class that is completely
independent of Zope. Test and debug it.

Then make a thin Zope wrapper that adds just enough functionality to make it
work in Zope, and so that it can be accessed nicely via dtml.

I am trying this approach currently, but it gets ugly real fast. It will
probably be nicer when I understand it fully. I Will post a How-to then.

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 )




RE: [Zope] asked a million times again...

2000-11-08 Thread Max Møller Rasmussen

 Okay, I got the dtml-var filename to work right assuming that that
 files are arranged properly according to aquistion, but then when I
 try to get the file from another folder like
 
 dtml-var "folder.filename"
 
 It displays the code of that page rather thatn recognizing that it is
 content. What should I do?

Perhaps dtml-var "folder.filename()" will do? It executes the method
"filname()" and returns the result.

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 )




Re: [Zope] Your thoughts about Zope-based database apps

2000-11-08 Thread Francisco José Esteban Risueño

We've implemented an application like this in our intranet, and it's now
up and running satisfactory with 1500 users. We use Oracle as back-end.
Here are responses from the rest of your questions:

1.- We've using zope only since six months ago. the development period
of the application was three months and we can consider him medium-sized
(30 tables, 10 imput screens, 15 output screens, interfaces with
operating system authentication and services, outputs in PDF, RTF and
HTML formats...). We're not particulary smart :).

2.- We use javascript to perform data validation before insert them in
the database (although Oracle has its own data validation, we also
perform it in the client side in order to reduce database traffic and to
offer the user more precise information about the errors)

3.- The implementation of master/detail forms is rather complicated the
first time, but possible: We offer initialy three detail rows for the
master one and an "Add row" button that refresh the screen with another
detail row when pressed (using zope dtml-in statements). In the
validation of the form, we know the number of detail rows and the number
of form fields of each row, so, by the position of a field in the form,
whe can know to wich detail it belongs and can pass it to the proper
insert/update sentence. If you understand spanish, I can give you an
example dtml method with this behaviour

Alonso Rhenals escribió:

 I'm considering implementing a web-based database application with
 MySQL as a back-end and a Zope-based front-end. I wonder if you could
 provide your thoughts on the following questions: 1. Is Zope a good
 tool to quicky build an efficient  effective user interface for a
 database application? 2. In particular, what would be the best way to
 implement the inserting and updating of records along with input data
 validation? (Retrieving data from a database to show on a web page
 using Zope is straightforward as you know.) 3. In several cases I'd
 like to implement a main form/subform, where the subform allows the
 user to enter several items related to only one record in the main
 form. Since every item might have many fields (say 20) I'd like to
 present just the most important fields on a table, and allow the user
 to view/enter/update all the fields for each item in a different web
 page. Those of you familiar with Microsoft Access know that in Access
 it is straightforward to implement this main form/subform interface. I
 wonder what would be the best way of implementing this using Zope? 4.
 Do you know of any existing Zope-based app similar to this?.
 Obviously, the back-end doesn't have to be MySQL. 5. Finally, if
 somebody is interested in further discussing this type of
 applications, I'll be glad to participate. Just e-mail me to
 [EMAIL PROTECTED] Thanks in advance for your inputs.
 Alonso RhenalsMiami, FL, USAPlease reply to: [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] Re: [Zope-Annce] November 8th Zope Weekly News

2000-11-08 Thread Gregor Hoffleit

On Tue, Nov 07, 2000 at 11:56:28PM -0500, emf wrote:
  How Many Zopatistas?
   
   Zope gets downloaded from zope.org 12-15,000 times a month.
   It has risen steadily over the last year and a half.  Zope
   has been downloaded roughly 200,000 times since version 2.0.
 
   Zope is distributed on all major linux distributions, but
   there's no way of tracking those.
 
   Netcraft asserts that there are 937 servers 
   "reporting themselves as zope",
   http://www.netcraft.com/survey/Reports/0010/byserver/Zope/index.html

A quick supplement: Debian provides an optional package popularity-contest,
that, if installed and configured, sends a list of the packages installed
on a machine to a central instance. If you look at the results of this
sample of Debian installations, in the section `web packages'
(http://people.debian.org/~apenwarr//popcon/results.web.html), the top 20
are like this:

Package   Vote   Old Recent Unknown  

apache-common  4618735 0  
apache 4573620 0  
wget   434   33488 0  
lynx   407   16921 0  
junkbuster 16329 3 0  
mozilla143   14589 0  
squid  139 2 3 0  
htdig   8416 2 0  
wwwoffle66 1 1 0  
weblint 60   26625 0  
analog  58   10551 0  
webalizer   5048 9 0  
zope4915 9 0  
imp 40 1 1 0  
apache-dev  38   12629 0  
php3377552 0  
tidy31   12715 0  
boa 29 1 6 0  
konqueror   28 050 0  
apache-perl 28 4 1 0

(About 924 individual computers submitted results this week.
- Vote: Number of people that use this package regularly.
- Old: Number of people who installed but have not used the package recently.
- Recent: Upgraded the package too recently for stats to be valid.
- Unknown: No files in the package were used in the statistics calculation.)

For sure this is by no way a representative sample of all Debian 
installations. FWIW, if it was representative, it would suggest that 
Apache was installed on half of all Debian installation, and that Zope was 
installed on 5 % of all Debian installations. You could start and multiply
that with an estimate of the number of Debian installations (no idea,
something in between 5e4 and 5e6, I'd guess ;-) to end up with
some 2000 up to 20 installed Zope Debian packages.

What exactly did Churchill have to say about statistics ?

Gregor

___
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] ZSQL is killing me...

2000-11-08 Thread Hugo Ramos

Yellow ppl,

I think everybody already had this problem...

Suppose you have a DB connection in /root/subfolder/DB_conn
then you build lots of zsql objects from that point down...
then you move the DB connection object up to the root.

result: all ZSQL's have to be changed to assume the DB_conn new position.


shouldn't the zsql's assume right away that the upper DB_conn in the root
folder is the right one??

regards


=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
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] Python Methods Vote

2000-11-08 Thread peter bengtson

I have the opposite problem.
Having voted once - early yesterday - I now can't vote again. The reason I
want to vote again is that I have changed my mind!

Now I want to _poll down_ "Python Method" and add a new alternative "ZPython
Method" or add some points to "Python Script" or "ZPY".

The poll is not cookiebased.




 Is there any way you can see what the results are looking like without
 having to vote again?

 How do you know we're only voting once? ;-)

 cheers,

 Chris

 Michel Pelletier wrote:
 
  Please vote folks!
 
  -Michel
 
  Shane Hathaway wrote:
  
   Being Election Day in the United States, now is a good time to vote on
   the new name for Python Methods.
  
   Python Methods are a relatively new concept for Zope. They give you
the
   features of DTML, such as through-the-web editing and security, while
   providing a familiar, refined syntax.
  
   But before we can fold them into the Zope core, you need to help us
   choose the right name for them. Some have voiced the opinion that the
   name "Python Method" is confusing because it can just as easily refer
to
   methods in standard Python modules.
  
   There are some interesting alternatives, so please cast your vote!
  
   http://www.zope.org/Members/hathawsh/poll
  
   ___
   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 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] importing data

2000-11-08 Thread Steve Spicklemire


Hi Jamey,

   It's also possible (and i think maybe easiest...) to do this in an
external method. Alas..  this also requires you to be familiar with
Python (as was posted before...)

-steve
 "James" == James Sintz [EMAIL PROTECTED] writes:

James I have created a simple zclass product for a web based
James newsletter. Each day's newsletter is input into a form and
James added into the ZODB as instances of this newsletter
James zclass. My question is... how do I import 2 years worth of
James newsletters from tab delimited files exported from another
James database?

James I searched the archives and how-to section and could not
James find the answer. Is this possible to do?

James Thanks!!

James Jamey



James ___ Zope
James maillist - [EMAIL PROTECTED]
James http://lists.zope.org/mailman/listinfo/zope ** No cross
James posts or HTML encoding!  ** (Related lists -
James http://lists.zope.org/mailman/listinfo/zope-announce
James 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] installing ZPatterns

2000-11-08 Thread Mario Olimpio de Menezes


Hi,

I'm trying to install ZPatterns and I'm having troubles with the
Setup.
I don't have a cPersistence.h file and I don't know where to
find it. This file is necessary to compile DynPersist.c. Here is the
error:

gcc -fPIC  -I../../ZODB -I../../../Components/ExtensionClass -g -O2 
-I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H 
-c ./DynPersist.c
./DynPersist.c:1: cPersistence.h: No such file or directory
make: *** [DynPersist.o] Error 1

Any help?
Thanks, 

[]s,
Mario O.de Menezes"Many are the plans in a man's heart, but
IPEN-CNEN/SP is the Lord's purpose that prevails"
http://curiango.ipen.br/~mario Prov. 19.21
   http://www.revistalinux.com.br


___
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] Python Methods Vote

2000-11-08 Thread Simon Michael

Just view the poll again. Everything but "python method" has been
getting trounced so far.

How come "python function" isn't there, again ? Isn't that what they
actually are ?


___
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] Can't delete products

2000-11-08 Thread Stephan Goeldi

I deleted some products in Control_Panel several times. Some are gone (ok), 
some stay and seem to be undeletable. I'm sure someone shows me the way to 
delete it from the command line (it's Zope 2.2.2 on RedHat Linux).

TIA
-goe-

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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 )




[Zope] Problen wtih dtml-in inside Zsql method

2000-11-08 Thread Alejandro Pancani


-
I have a problem using a 'dtml-in' tag inside of  a Zsql method and I'm
wondering if anybody can help me

I´m using a sequence  in  ORACLE  (called 'seq')  and I need to obtain the
following value of that sequence before execute other Zsql methods.
For that, I define a  Zsql method (called sql_select_nextval) that returns
the following  value of the sequence and other Zsql method (called sql_2 )
that executes another actions. The problem is that when I execute the Zsql
method 'sql_2' it seems to execute the sql_select_next_val method two times
because at the next time that I execute 'sql_2'  the value returned from
sql_select_next_val is incremented in 2 in comparison with last value
returned. I need it to be incremented in 1.



the code of  sql_select_nextval method is the following:

 SELECT seq.NEXTVAL  val
   FROM DUAL


the code of sql_2  method is the following:

dtml-in "sql_select_nextval"

insert into anytable
(oid_anytable, name)
values
 (dtml-var val,
  'john')

   dtml-var sql_delimiter

select * from anytable  where oid_anytable  = dtml-var val

/dtml-in

The code used to create the sequence is the following:

CREATE SEQUENCE seq
 START WITH 1
 NOCYCLE
NOCACHE;



Note: if I put the dtml-in outside of the Zsql method it seems to work
correctly...




Alejandro Pancani
[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] I can't find a way to give parameters to the getDtmlData of a ZGDChartobjectobject

2000-11-08 Thread Frederic Quin

Hi all,


I can't find a way to give parameters to the getDtmlData of a ZGDChart
object.
Please, help... 'Cause I don't want to duplicate the same chart one
hundred times...


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] Can't delete products

2000-11-08 Thread Max Møller Rasmussen

From: Stephan Goeldi [mailto:[EMAIL PROTECTED]]

I deleted some products in Control_Panel several times. Some are gone (ok),

some stay and seem to be undeletable. I'm sure someone shows me the way to 
delete it from the command line (it's Zope 2.2.2 on RedHat Linux).

You should also delete the products from your product directory.

Maybe that is the problem?

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 )




Re: [Zope] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread Jason Cunliffe

Hamish Lawson [EMAIL PROTECTED] wrote


 In the poll currently underway on renaming options for Python Methods,
 the most popular choice so far is to leave the name as it is. It could
 just be because people don't see enough benefit in changing what's
 already there, but I think it may be that people actively feel that the
 term 'method' captures some technical essence. However, we still have
 the problem of disambiguating between a method in Zope's eyes and a
 method in the implementation language. How about calling anything that
 Zope regards as a method a Zope Method? That would then give us Python
 Zope Method, Perl Zope Method, DTML Zope Method, SQL Zope Method, etc.
 Is it too late to add the option for Python Zope Method to the poll?

YES. I agree this makes a _lot_ of sense.

It also means in any forms or menu popup boxlist, the most important
distinguishing words will be shown first:

Python Zope Method
Perl Zope Method
SQL Zope Method
DTML Zope Method
Rebol Zope Method
Java Zope Method
VB Zope Method
Custom Zope Mthod
etc..


- Jason


___
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] Can't access management page.

2000-11-08 Thread Joel Janosky

I have tried this. 

I have restarted Zope.

I have recreated the admin password with zpasswd.py.

Nothing seems to help.

Is there some security setting that may have been corrupted that I need to
examine and fix??

Joel



-Original Message-
From: Andy McKay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 07, 2000 11:42 AM
To: Joel Janosky; [EMAIL PROTECTED]
Subject: Re: [Zope] Can't access management page.


Have you closed your browser and logged in again? This is normally
indicative of a login failure.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Joel Janosky" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 07, 2000 7:26 AM
Subject: [Zope] Can't access management page.


 I have a small internal site I have been running for about a year.

 Starting today, when I browse to the base /manage page, I get the normal
 tree display in the left hand pane. The right hand pane, however, displays
 the base page in its presentation form rather than showing the list of
 objects in the base folder.

 Any ideas on what may have been changed to cause this behavior ??

 Any ideas on how to get it back to normal??

 Thanks for the help.

 Joel

 [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 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] ZCatalog scalability?

2000-11-08 Thread Júlio Dinis Silva

Does anyone has a Catalog with more than 1500 items catalogued?
If yes does anyone can do searches to this Catalog in a
resonable time without freezing ZServer until it ends?

Thanks,
Júlio Silva
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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] Can't delete products

2000-11-08 Thread Stephan Goeldi

Is it save to simply delete a folder in Products?


From: Max Møller Rasmussen [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED],
"'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: RE: [Zope] Can't delete products
Date: Wed, 8 Nov 2000 16:28:00 +0100

From: Stephan Goeldi [mailto:[EMAIL PROTECTED]]

 I deleted some products in Control_Panel several times. Some are gone 
(ok),

 some stay and seem to be undeletable. I'm sure someone shows me the way 
to
 delete it from the command line (it's Zope 2.2.2 on RedHat Linux).

You should also delete the products from your product directory.

Maybe that is the problem?

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 )


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread Oliver Bleutgen

 Hamish Lawson [EMAIL PROTECTED] wrote

 Python Zope Method
 Perl Zope Method
 SQL Zope Method
 DTML Zope Method
 Rebol Zope Method
 Java Zope Method
 VB Zope Method
 Custom Zope Mthod
 etc..

and perhaps let "Zope Method" become a "ZMethod", a bit shorter.

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] I can't find a way to give parameters to the getDtmlData of a ZGDChartobjectobject

2000-11-08 Thread Steve Spicklemire


Hi Fred,

   I experimented a bit with the ZGDChart product. You can might try the following 
patch:

*** lib/python/Products/ZGDChart/ZGDChart.pyTue Sep 12 21:44:09 2000
--- /usr/local/etc/Zope2Test/pr/ZGDChart/ZGDChart.pyWed Oct  4 10:41:51 2000
***
*** 64,73 
--- 64,74 
  from Globals import HTMLFile, MessageDialog, Persistent
  from Globals import package_home
  from DocumentTemplate.DT_Util import *
  from DocumentTemplate.DT_String import String
  from maybe_lock import allocate_lock
+ import traceback
  
  #
  # In this module, extend gdchart so
  # that it can render itself
  #
***
*** 133,142 
--- 134,144 
manage_options=(
{'label':'Properties' , 'icon':icon, 'action':'manage_main',
'target':'_self'},
{'label':'Colors' , 'icon':icon, 'action':'manage_mainColor',   
'target':'_self'},
{'label':'Scale',   'icon':icon, 'action':'manage_mainScale',   
'target':'_self'},
{'label':'Data Method', 'icon':icon, 'action':'manage_mainGetData', 
'target':'_self'},
+   {'label':'DTML Data',   'icon':icon, 
+'action':'getDtmlData/manage_main', 'target':'_self'},
{'label':'Security'   , 'icon':icon, 'action':'manage_access',  
'target':'_self'},
{'label':'View'   , 'icon':icon, 'action':'manage_mainView',
'target':'_self'},
)
  
__ac_permissions__=(
***
*** 281,291 
self.id = id
self.title  = title
self.height = height
self.width  = width
self.SQL= SQL
!   self.content_type   = 'image/gif'
self.tempfile   = self.home() + '/temp.gif'

# Set the chart options
self.bg_transparent = 'bg_transparent' in option
self.xaxis  = 'xaxis' in option
--- 283,293 
self.id = id
self.title  = title
self.height = height
self.width  = width
self.SQL= SQL
!   self.content_type   = 'image/png'
self.tempfile   = self.home() + '/temp.gif'

# Set the chart options
self.bg_transparent = 'bg_transparent' in option
self.xaxis  = 'xaxis' in option
***
*** 372,386 
self.threed_angle   =   0
self.threed_depth   =   0
  
# Set the data gathering method
self.selected_data_method = 'dtml'
!   f = open(os.path.join(self.home(),'manage', 'getDtmlData.dtml'), 'r')
!   getDtmlData_dtml = f.read()
!   f.close()
!   ob = OFS.DTMLMethod.DTMLMethod(getDtmlData_dtml, 
__name__='getDtmlData')
!   self._setObject('getDtmlData', ob)

def manage_edit(self, title, xtitle, ytitle, width, height, chart_type, 
option=[], REQUEST=None):
"""edit ZGDChart"""
self.title  = title
self.xtitle = xtitle
--- 374,384 
self.threed_angle   =   0
self.threed_depth   =   0
  
# Set the data gathering method
self.selected_data_method = 'dtml'
!   self.manage_addDTMLMethod('getDtmlData', 'DTML Data Method', 
open(HTMLFile('manage/getDtmlData',globals()).raw).read())

def manage_edit(self, title, xtitle, ytitle, width, height, chart_type, 
option=[], REQUEST=None):
"""edit ZGDChart"""
self.title  = title
self.xtitle = xtitle
***
*** 687,704 
#
# requires GDChart 0.4
#
tempfile = cStringIO.StringIO() 
apply(chart, (GDC_TYPE, (self.width, self.height), tempfile) + 
tuple(chartdata))
!   if RESPONSE: RESPONSE['content-type']=self.content_type
output = tempfile.getvalue()
-   #
-   # requires GDChart 0.3
-   # apply(chart, (GDC_TYPE, (self.width, self.height), 
self.tempfile) + tuple(chartdata))
-   # if RESPONSE: RESPONSE['content-type']=self.content_type
-   # output = open(self.tempfile,'rb').read()
-   #
finally:
_chart_lock.release()  

[Zope] String to Object

2000-11-08 Thread Leichtman, David J


Does anyone now how I might take a string and turn it into an object
reference in DTML?

By that, I mean, I want to take a string like: 'object.subobject.subobject'
from a database,
and I want to reference it as dtml-var object.subobject.subobject.
I think this is a simple, straightforward thing, but I've been wracking my
brain over it.

___
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] XMLRPC accessing Zope DTML/SQL methods

2000-11-08 Thread Mayers, Philip J

sigh

Getting there. Note to the wise - when using PCGI and Apache, sometimes Zope
won't notice that you've edited an internal method source file... The cache
in Data.fs gets out-of-date.

Ok. So, I have this working:

def callSQLmethod(self, REQUEST):

s=self.sqlMethod(self, REQUEST)
y = []
for x in s:
y.append(x)
return str(y)


Called over XMLRPC, this gives me:

[r instance at 853ee30, r instance at 84f2810, r instance at 84f29f0,
r instance at 84b1528]

Fine, I can extract the result data later... How can I pass paramters to the
method without overwriting the REQUEST value - I need access to that, so I
can get environment variables, namely the SSL certificate subject name.

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

-Original Message-
From: Mayers, Philip J [mailto:[EMAIL PROTECTED]]
Sent: 08 November 2000 10:29
To: '[EMAIL PROTECTED]'
Subject: RE: [Zope] XMLRPC accessing Zope DTML/SQL methods


Ok, so this works:

def extmethod(self, REQUEST):
return str(REQUEST)

From the web that prints the string Representation of REQUEST. But, over
XMLRPC, this:

s=xmlrpblib.Server("http://server.name/Zope/path/")
s.path.extmethod()

Returns the string representation of REQUEST, but *this*

s.path.extmethod('rrr')

return 'rrr'. What's happening?

Regards,
Phil

+--+
| Phil Mayers, Network Support |
| Centre for Computing Services|
| Imperial College |
+--+  

-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
Sent: 07 November 2000 21:35
To: Mayers, Philip J
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Zope] XMLRPC accessing Zope DTML/SQL methods

snip helpful replies

___
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] Python Zope Method as option for renamed Python Method?

2000-11-08 Thread jpenny

On Wed, Nov 08, 2000 at 05:08:13PM +0100, Oliver Bleutgen wrote:
  Hamish Lawson [EMAIL PROTECTED] wrote
 
  Python Zope Method
  Perl Zope Method
  SQL Zope Method
  DTML Zope Method
  Rebol Zope Method
  Java Zope Method
  VB Zope Method
  Custom Zope Mthod
  etc..
 
 and perhaps let "Zope Method" become a "ZMethod", a bit shorter.

A winner by acclamation!

Now, how about internal/external?

 
 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 )
 

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

2000-11-08 Thread Andy McKay

Yes. Some queries especially ones with wildcards can take a lot more juice
than others. Try and keep your metadata small and your queries simple.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Júlio Dinis Silva" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 08, 2000 7:54 AM
Subject: [Zope] ZCatalog scalability?


 Does anyone has a Catalog with more than 1500 items catalogued?
 If yes does anyone can do searches to this Catalog in a
 resonable time without freezing ZServer until it ends?

 Thanks,
 Júlio Silva
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

 Share information about yourself, create your own public profile at
 http://profiles.msn.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 )



___
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] ZSQL is killing me...

2000-11-08 Thread Andy McKay

Yes it should if the one in the root is the "closest" or first connection it
finds.
Im using ZODBC and it works for me.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Hugo Ramos" [EMAIL PROTECTED]
To: "ZOPE" [EMAIL PROTECTED]
Sent: Wednesday, November 08, 2000 4:00 AM
Subject: [Zope] ZSQL is killing me...


 Yellow ppl,

 I think everybody already had this problem...

 Suppose you have a DB connection in /root/subfolder/DB_conn
 then you build lots of zsql objects from that point down...
 then you move the DB connection object up to the root.

 result: all ZSQL's have to be changed to assume the DB_conn new position.


 shouldn't the zsql's assume right away that the upper DB_conn in the root
 folder is the right one??

 regards


 =
 Hugo Ramos - [EMAIL PROTECTED]
 ZopersORG - http://www.zopers.org
 =
 Do not meddle in the affairs of programmers, for they are easy to annoy,
 and have all the source code!!!


 ___
 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] Can't delete products

2000-11-08 Thread Andy McKay

Yes, the Zope simply looks for all the product directories that are there,
if its not there no problem.

(Unless of course that means you are about to lose any unsaved changes to
the actual python or so on, or have any objects derived from that product.)

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Stephan Goeldi" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 08, 2000 8:04 AM
Subject: RE: [Zope] Can't delete products


 Is it save to simply delete a folder in Products?


 From: Max Møller Rasmussen [EMAIL PROTECTED]
 To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED],
 "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
 Subject: RE: [Zope] Can't delete products
 Date: Wed, 8 Nov 2000 16:28:00 +0100
 
 From: Stephan Goeldi [mailto:[EMAIL PROTECTED]]
 
  I deleted some products in Control_Panel several times. Some are gone
 (ok),
 
  some stay and seem to be undeletable. I'm sure someone shows me the way
 to
  delete it from the command line (it's Zope 2.2.2 on RedHat Linux).
 
 You should also delete the products from your product directory.
 
 Maybe that is the problem?
 
 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 )
 

 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

 Share information about yourself, create your own public profile at
 http://profiles.msn.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 )



___
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] my brains?

2000-11-08 Thread Andy McKay

Basically ZCatalog does not return an object but a brain which is a sort of
lightweight object based on the metadata. You might be doing something like

dtml-in catalog
   dtml-var sequence-item
/dtml-in

Where you should be:

dtml-in catalog
   dtml-var title
/dtml-in

Have a look at: http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Júlio Dinis Silva" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 08, 2000 2:21 AM
Subject: [Zope] my brains?


 Hello,

 I'm doing some search in two catalogs I have. They each have
 more than 1000 items. When a search is made besides taking to long
 the debug information screen print a lot of my brains instance.
 Can anyone explain what is this "my brains" thing or some page to go and
 read more about this?

 Thanks,
 Júlio Dinis Silva
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

 Share information about yourself, create your own public profile at
 http://profiles.msn.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 )



___
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] Can't delete products

2000-11-08 Thread Max M

From: Stephan Goeldi

Is it save to simply delete a folder in Products?

Well that depends on what folder it is ;-)

But if it's a product you have installed yourself and don't want to use
anymore, just throw it out. It can still be in the products folder in Zope
so you have to delete it there too.

There might be exceptions but I havn't meet them yet.

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] String to Object

2000-11-08 Thread Chris Withers

"Leichtman, David J" wrote:
 
 Does anyone now how I might take a string and turn it into an object
 reference in DTML?
 
 By that, I mean, I want to take a string like: 'object.subobject.subobject'
 from a database,
 and I want to reference it as dtml-var object.subobject.subobject.
 I think this is a simple, straightforward thing, but I've been wracking my
 brain over it.

Well, your eample will work just fine with some quotes and a bit of fun:

dtml-var "object.subobject.subobject(_.None,_)"

but only because . is the seperator is python object syntax...

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] Python ZMethod (was Python Zope Method as option for renamed Python Method?)

2000-11-08 Thread Hamish Lawson

I suggested the term Zope Method for anything Zope regards as a method,
giving Python Zope Method, Perl Zope Method, DTML Zope Method, SQL Zope
Method, etc. But Chris Withers thought those to be too long and
unwieldy. OK, what about ZMethod? Thus Python ZMethod, Perl ZMethod,
DTML ZMethod, SQL ZMethod. I was quite favourably disposed toward
Operation, but I wanted to keep 'method' somehow as it I felt it better
brought out the acquisition aspect.

Hamish



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
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] ZMethod (Safe)

2000-11-08 Thread Chris Withers

[EMAIL PROTECTED] wrote:
 
 On Wed, Nov 08, 2000 at 05:08:13PM +0100, Oliver Bleutgen wrote:
   Hamish Lawson [EMAIL PROTECTED] wrote
 
   Python Zope Method
   Perl Zope Method
   SQL Zope Method
   DTML Zope Method
   Rebol Zope Method
   Java Zope Method
   VB Zope Method
   Custom Zope Mthod
   etc..
 
  and perhaps let "Zope Method" become a "ZMethod", a bit shorter.
 
 A winner by acclamation!
 
 Now, how about internal/external?

Safe and Flexible are probably more meaningful words there ;-)

ZMethod is growing though ;-)

how about:

Python ZMethod (Safe)
Python ZMethod (Flexible)

:-)

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] Pre-newbie question: how to implement this app?

2000-11-08 Thread Don Dwiggins

I'm calling this a "pre-newbie" question because I'm not running Zope yet,
although I've been looking into it for some time, and have recently started
reading in earnest.  

I have an application that I think would be a good initial app for getting
into Zope, and I'd like some advice on how to go about it.  It's a basic
task list management system for a small group of developers, and it has the
following characteristics:
- There are two main entities: Task and Person.  The relationship between
  them is many-to-many (a person may be assigned to multiple tasks, a task
  may have multiple people assigned).
- There will be a relatively small number of tasks and people.
- Tasks will be added, removed, and modified frequently; people less so.
- When a task or person is removed, integrity should be maintained by
  removing assignments involving the removed entity.
- I'll start with a couple of basic views that let people see the tasks,
  their status, assignments, priorities, etc.  Later, there'll probably be
  more.
- I want to be able to add attributes to both entities at will.
- Initially, I'll be maintaining the list, but I'd like to add the
  capability for people to sign up for tasks, and to change the status of
  tasks they're assigned to.
- Security isn't an issue here, but avoiding blunders is.

Questions:
- What are the pros and cons of storing the entities in the ZODB vs. a
  relational DB?
- How best to represent the many-to-many relationship?  (Usually, in a
  relational DB, I'd use a relationship table such as PersonTaskAssignment.)
  In particular, how does Zope handle references between independent
  objects?
- What Zope products should I consider using to aid in the implementation?
- Is there already an app like this that I could adapt?

Thanks for any good words you can offer,

Don Dwiggins
Competitive Knowledge, 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 )




[Zope] Is data.fs corrupted?

2000-11-08 Thread Alexander Chelnokov

Hello All,

After a linux machine crash or cold restart something strange is going
on with Zope (2.2.2) - all objects built on ZClass-based products like
Yihaw or QSurvey are broken. Products are in Product folder, and i
even can add an object and it works, but when i try to access it in a
new browser window it reports
==
This object is broken because the unknown product that created it is
no longer installed or is installed incorrectly. Please contact your
product vendor for assistance.  
Note that the data associated with this product has not been lost, and
will be accessible again if the product is reinstalled.
==

Well, i removed QSurvey and tried to re-install its current version -
something goes wrong again:

==
Zope Error
Zope has encountered an error while publishing this resource. 

Error Type: Could not load oid ={, pickled data in traceback info may
contain clues
Error Value: None
==

Is there any way to fix ZODB less radical than complete reinstall?

-- 
Best regards,
Alexander N. Chelnokov
Ural Scientific Institute of Traumatology and Orthopaedics
7, Bankovsky str. Ekaterinburg 620014 Russia
ICQ: 25640913  



___
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] FW: [Zope] adding properties to all existing docs

2000-11-08 Thread michael angelo ruberto



hi Dieter,

thanks for the advice. i have written a small DTML script which i plan to
call from the standard html header so that the intranet users will
unknowingly populate the docs as they browse. saves me from doing it
manually unless there are file objects in the folder. here is the script:

dtml-in "PARENTS[0].objectItems(['File','DTML Document'])" sort=title
dtml-unless "_.string.find(_['id'],'index_html')==0"

dtml-comment
properties are added in the unless below.
to add additional properties to this script repeat the unless block
for each new property and change the id and type to what you
want to add.
/dtml-comment

dtml-unless "hasProperty('rev')"
dtml-call "manage_addProperty('rev','none','string')"
/dtml-unless


/dtml-unless
/dtml-in

to run the script give it manager role and call the method in the URL or
with a dtml-var tag. you can select the types of objects it "sees" in the
first line. please let me know if there is some flaw in doing it this way.

take care

-mike-

ps: i tried to make a python method for this but couldn't figure out how to
handle the objects properly.

-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 05, 2000 12:49 PM
To: michael angelo ruberto
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] adding properties to all existing docs


michael angelo ruberto writes:
  i have a Zope containing 4700+ files and documents. i want to add new
  properties to all of them, how can i do this programmatically? is it
  possible to change the base classes? if so, how?
It is possible to change the base class but I would not do it
(as it affects all Zope objects and your change is likely
to disappear when you upgrade).

You can automate Zope either internally or externally.

  Internally (via a method (DTML or Python)) you would
  use ZopeFind to list all objects that need to be
  updated and then iterate (dtml-in) over the objects
  to update.

  Externally, you would use "ZPublisher.ZClient".


I would go for the internal solution.


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] Is data.fs corrupted?

2000-11-08 Thread Chris McDonough

In your start script, set the STUPID_LOG_FILE environment variable to the
path of a file to which you want log messages to be sent (before 'start'
calls z2.py).  Then review the log file.  You'll probably get more clues as
to what is going wrong, allowing you to fix the problem.

- Original Message -
From: "Alexander Chelnokov" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 08, 2000 12:41 PM
Subject: [Zope] Is data.fs corrupted?


 Hello All,

 After a linux machine crash or cold restart something strange is going
 on with Zope (2.2.2) - all objects built on ZClass-based products like
 Yihaw or QSurvey are broken. Products are in Product folder, and i
 even can add an object and it works, but when i try to access it in a
 new browser window it reports
 ==
 This object is broken because the unknown product that created it is
 no longer installed or is installed incorrectly. Please contact your
 product vendor for assistance.
 Note that the data associated with this product has not been lost, and
 will be accessible again if the product is reinstalled.
 ==

 Well, i removed QSurvey and tried to re-install its current version -
 something goes wrong again:

 ==
 Zope Error
 Zope has encountered an error while publishing this resource.

 Error Type: Could not load oid ={, pickled data in traceback info may
 contain clues
 Error Value: None
 ==

 Is there any way to fix ZODB less radical than complete reinstall?

 --
 Best regards,
 Alexander N. Chelnokov
 Ural Scientific Institute of Traumatology and Orthopaedics
 7, Bankovsky str. Ekaterinburg 620014 Russia
 ICQ: 25640913



 ___
 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] Job Tracking Product

2000-11-08 Thread Andy McKay

Anyone seen a product to track jobs, similar to a bug tracking product
(Collector, Itrack etc) but more focused on resources, timelines, completion
rate etc...? Had a look on Zope.org and managed to miss it if there is one.

TIA

--
  Andy McKay, Developer.
  ActiveState.


___
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] ZMethod (Safe)

2000-11-08 Thread Evan Simpson

From: Chris Withers [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
  Now, how about internal/external?

 Safe and Flexible are probably more meaningful words there ;-)

 ZMethod is growing though ;-)

We've pretty much settled on restricted/unrestricted here.  In honor of the 
presidential Indecision
2000 race, we're seriously thinking about revamping and rerunning the poll, so ZMethod 
may well get
its moment in the spotlight.

Cheers,

Evan @ digicool  4-am


___
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] Tar Ball with all Zope-Howtos

2000-11-08 Thread Manuel Gutierrez Algaba

Is there such a best ?

I email zope admin and he kindly pointed me to a site where
I could download a .pdf with all Howtos.

Is there the _real_ .tar.gz ?

Thanks zope admin and thank you guys. 

BTW, what means things like " _.method()"
In pure python the "_" has not special sense, what object is "_" ?

-- 
Regards/Saludos
Manolo
www.ctv.es/USERS/irmina/TeEncontreX.html   /texpython.htm
/pyttex.htm /cruo/cruolinux.htm ICQ:77697936 (sirve el ICQ para algo?)

 


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

2000-11-08 Thread Wolfgang Strobl

On 8 Nov 2000, 15:54  Júlio Dinis Silva wrote:

 Does anyone has a Catalog with more than 1500 items catalogued?
 If yes does anyone can do searches to this Catalog in a
 resonable time without freezing ZServer until it ends?

I did some experiments over the weekend, for example cataloging 
about ten thousand news messages into a catalog in one step.

Searching isn't the problem (this is quite fast) - cataloging is. This 
takes a lot of time and a lot of memory.

-- 
Wolfgang Strobl


___
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] Is data.fs corrupted?

2000-11-08 Thread Bill Welch

I think it is ZODB corruption. See my post of a couple of weeks ago for
suggestions for recovery.

This the fourth example of ZClass related DB corruption that I've seen in
the past six weeks. In my own brush with this, it seemed to be triggered
by uninstalling and reinstalling products.

Bill.

On Wed, 8 Nov 2000, Chris McDonough wrote:

 In your start script, set the STUPID_LOG_FILE environment variable to the
 path of a file to which you want log messages to be sent (before 'start'
 calls z2.py).  Then review the log file.  You'll probably get more clues as
 to what is going wrong, allowing you to fix the problem.
 

  Error Type: Could not load oid ={, pickled data in traceback info may
  contain clues
  Error Value: None


___
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] Product removal stress: a plea for help

2000-11-08 Thread seb bacon

If anyone can shed some light on this it would be a great help to the
newbies out here.  Perhaps I could even do a HOWTO, and lighten the load on the list 
considerably ;)

I don't have a solution to Alexander's problem quoted below, but it's one I keep 
hitting and
one that is frequently asked on this list.  In fact it's one I recently
asked for more info on, to no avail.  So I thought I'd add my
voice to the clamour.

Deleting products seems to be a very risky business in Zope.  Things
apparently get left behind in the ZOBD which shouldn't be there.  If I
delete a product that was used at some point elsewhere, I don't just get
broken objects, I get pickled data streaming out of my Zope most of the
time.  Today I had an interesting one: I thought I had cleaned
up thoroughly after an unwanted product, and I was getting no error
messages and no pickled junk on stderr.  The only thing I couldn't do is
add ZClasses, for which I got the error message quoted by Alexander
below (could not load object oid=[random character]).

Please, can any Master Zopician give an explanation:
1) what causes this kind of error?
2) how do you debug it?
3) how do you fix your Data.fs?

Thanks!  Seb.

* Alexander Chelnokov [EMAIL PROTECTED] [001108 18:21]:
 Hello All,
 
 After a linux machine crash or cold restart something strange is going
 on with Zope (2.2.2) - all objects built on ZClass-based products like
 Yihaw or QSurvey are broken. Products are in Product folder, and i
 even can add an object and it works, but when i try to access it in a
 new browser window it reports
 ==
 This object is broken because the unknown product that created it is
 no longer installed or is installed incorrectly. Please contact your
 product vendor for assistance.  
 Note that the data associated with this product has not been lost, and
 will be accessible again if the product is reinstalled.
 ==
 
 Well, i removed QSurvey and tried to re-install its current version -
 something goes wrong again:
 
 ==
 Zope Error
 Zope has encountered an error while publishing this resource. 
 
 Error Type: Could not load oid ={, pickled data in traceback info may
 contain clues
 Error Value: None
 ==
 
 Is there any way to fix ZODB less radical than complete reinstall?
 
 -- 
 Best regards,
 Alexander N. Chelnokov
 Ural Scientific Institute of Traumatology and Orthopaedics
 7, Bankovsky str. Ekaterinburg 620014 Russia
 ICQ: 25640913  
 
 
 
 ___
 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] Tar Ball with all Zope-Howtos

2000-11-08 Thread Morten W. Petersen

[Manuel Gutierrez Algaba]


| BTW, what means things like " _.method()"

It's a way to access 'restricted functionality'.  See the documentation
for more information..

| In pure python the "_" has not special sense, what object is "_" ?

Actually, the "_" has a special meaning in interactive python (useful
if you fancy the interpreter as a calculator!):

"""
Python 1.5.2 (#2, Aug 23 2000, 22:10:15)  [GCC egcs-2.91.66 19990314/Linux (egcs- on 
linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
 123*123
15129
 _
15129
 _ * _
228886641

"""

HTH.

-Morten

___
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] Re: Is data.fs corrupted?

2000-11-08 Thread Darcy Clark

Alexander,

we encountered a similar error (i.e. Could not load oid + broken 
products etc) a while back on our install of 2.1.6 on Windows. We 
first tried deleting all products gradually in the hope that we could 
trace which one of them had caused the 'corruption', but to no avail. 
The error would not go away even after we had essentially deleted 
everything from the Zope installation other than the basic products. 
The only way we solved the problem was by upgrading to 2.2.2 and then 
manually importing all products and content into the new Zope 
installation :( If I am not mistaken this problem has been reported 
several times to this list with essentially the same reported 
symptoms.

Darcy

--- In [EMAIL PROTECTED], Alexander Chelnokov [EMAIL PROTECTED] wrote:
 Hello All,
 
 After a linux machine crash or cold restart something strange is 
going
 on with Zope (2.2.2) - all objects built on ZClass-based products 
like
 Yihaw or QSurvey are broken. Products are in Product folder, and i
 even can add an object and it works, but when i try to access it in 
a
 new browser window it reports
 ==
 This object is broken because the unknown product that created it is
 no longer installed or is installed incorrectly. Please contact your
 product vendor for assistance.  
 Note that the data associated with this product has not been lost, 
and
 will be accessible again if the product is reinstalled.
 ==
 
 Well, i removed QSurvey and tried to re-install its current 
version -
 something goes wrong again:
 
 ==
 Zope Error
 Zope has encountered an error while publishing this resource. 
 
 Error Type: Could not load oid ={, pickled data in traceback info 
may
 contain clues
 Error Value: None
 ==
 
 Is there any way to fix ZODB less radical than complete reinstall?
 
 -- 
 Best regards,
 Alexander N. Chelnokov
 Ural Scientific Institute of Traumatology and Orthopaedics
 7, Bankovsky str. Ekaterinburg 620014 Russia
 ICQ: 25640913  
 
 
 
 ___
 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] Is data.fs corrupted?

2000-11-08 Thread Chris McDonough


- Original Message - 
From: "Bill Welch" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 08, 2000 1:58 PM
Subject: Re: [Zope] Is data.fs corrupted?


 I think it is ZODB corruption.

This is very unlikely.  What makes you think 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] Re: Re[4]: [Zope] Is data.fs corrupted?

2000-11-08 Thread Chris McDonough

Hi Alexander,

I am going to take this back to the Zope list...

Have you examined the STUPID_LOG_FILE?  It seems you're showing us the error
from an interactive session, but there should be more information in the log
file.  It seems you've narrowed this down in some fashion to Yihaw.  How did
you do that, what brought you to that conclusion?  What class does the
pickled data in the "could not load oid" traceback seem to be an instance of
(as per STUPID_LOG_FILE)?

- Original Message -
From: "Alexander Chelnokov" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Sent: Wednesday, November 08, 2000 1:43 PM
Subject: Re[4]: [Zope] Is data.fs corrupted?


Hello Chris,

Wednesday, November 08, 2000, 11:23:44 PM, you wrote:

CM Your ZODB isn't corrupted... it's a configuration issue.  You've deleted
a
CM class without deleting all of its instances from the ZODB, most likely.

I definitely didn't do that. And for example Yihaw directory is
present in Products directory and all its class are. I can add any
object form Yihaw family and while i in the same session all is
working like a charm. But if i close the browser, next attempt to
access the object from another session shows the broken object.

CM   You can probably figure out which classes they are, reinstall the
products

I failed to reintstall the products - the error message was in my
previous message. I tried to do this over existing product and after
its removal with the same result. Looks like some parts of a deleted
product persist in ZODB.

CM they come from, and delete their instances, thereby making the errors go

I just removed Yihaw, packed the database and tried to import it again
and got the same error...

Error Type: Could not load oid =², pickled data in traceback info may
contain clues
Error Value: None




--
Best regards,
Alexander N. Chelnokov
Ural Scientific Institute of Traumatology and Orthopaedics
7, Bankovsky str. Ekaterinburg 620014 Russia
ICQ: 25640913





___
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] Second Try: Zope FTP tunneled through SSH1

2000-11-08 Thread Rob Miller

Nobody picked up at all on my first post of this question, so I'm hoping 
I have better luck this time.  Does anyone out there even have any leads 
for me in this situation?  Here's the repost:

I'm trying to tunnel FTP connections to a Zope server through SSH1 to
ensure that passwords don't get sent in the clear.  (I know the session
will still be unencrypted; that's okay for now.)  I've followed the
instructions for doing so that are available at
http://www.employees.org/~satch/ssh/faq/ssh-faq-5.html#ss5.6, and doing
so I can successfully create an FTP session through an SSH tunnel.  The
problem is, once I've logged in, Zope won't let me do anything.  It
responds to every valid command with a single word: 'Unauthorized.'  I 
know I'm connected to the server, because 'cd'ing into a nonexistent 
directory gives me a 'No Such Directory' response, byt 'cd'ing into a 
valid directory gives me th 'Unauthorized' response.  If I connect 
directly to the FTP server using the same login and password,
all works well.

If this can't work, does anyone have Zope FTP server connections being 
tunneled through an encryption layer?  I'd really like my developers to 
be able to use their favorite editor with an FTP connection, but I 
really don't want management-capable passwords flying around in the clear.

Thanks for your time and assistance,

rob


___
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] Is data.fs corrupted?

2000-11-08 Thread Bill Welch

In my case, I couldn't import DemoPortal.zexp or Wizard.zexp from PTK
because oid 1377 was already in use. The pickle dump that followed
contained references to ZDiscussions, which I had deleted some time
before.

After deleting the offending products and their directories, restarting
zope, and packing, I ran tranalyzer -r on my problem Data.fs. I found that
the problem oid was in this transaction:

"/Control_Panel/Products/manage_importObject

import into /var/lib/zope/var/Data.fs from
/var/lib/zope/import/ZDiscussions.zexp"

referred to by this transaction:

"Installed product DemoPortal"

in turn, referred to by this tranaction:

"Added Globals"

I think ZODB corruption when I see a record in one product refer to
a record in an independent product and when the transaction of a deleted
product doesn't go away.

On Wed, 8 Nov 2000, Chris McDonough wrote:

  I think it is ZODB corruption.
 
 This is very unlikely.  What makes you think 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] PHP/Zope Guru

2000-11-08 Thread Vincent - D. Ertner

Hi folks,

first of all I'd like to apologize for crossposting this message. I'm
well aware of the fact that this isn't they way it should be done, but
I considered this the probably most promising alternative. Enough
about this.

I want to setup a major database project. It is supposed to cover the
administration (entering, changing, deleting) of recordsets, as well
als a search engine (resultspace narrowed by several different
criteria chosen from a form) ending up in resultlists and detailed
views of the recordsets.

I started with PHP (LAMP) and then came across Zope. Zope impresses me
and I like the simple concept of PHP.

There I am now considering the pros and cons ... and then a thought
stroke my mind: Why not ask the pros professionals?

So I finally decided to create this awful crossposting ... so: Are
there any pros who already dealt with a similar matter?

Any detailed information on how and *why* one or the other solution
rulez would be highly appreciated and helpful, as I have to argue the
decision for one or the other system with the initiators of the
project.

Thanx for reading a lot, hope hearing from u pals soon ...

Cheers,

Vince

 '''
 ô¿ô
  -



___
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] Is data.fs corrupted?

2000-11-08 Thread Chris McDonough

I can see your point, but it's not quite correct to call this "ZODB
corruption".  This was (and is) related to a Zope programming error.
Perhaps ZDiscussion.zexp does some funky things in instance space on an
import that it shouldn't do.  I imagine if we unraveled this far enough that
we could pick the error out (not going to try :-).

I'd argue that the ZODB is a very independent component of Zope, and it
shouldn't be blamed for this.  Devil's advocate question:  if your Perl
application failed because it couldn't find a record in an Oracle database,
would you immediately chalk this up to database corruption and Oracle?

We do clearly need to work on Zope tools to make it easier to find and clear
"orphaned" instances in the ZODB.  We should also try to weed out the
programming errors which cause interdependencies of seemingly unrelated
components of the same Zope instance that cause failures like this.
Transactions are only tangentially related to this issue (I'm not sure how
the "Added globals" transaction 'referred to' the "Installed product
DemoPortal" transaction in your example, BTW).

BTW, I'm being sort of pedantic because when people hear "ZODB" and
"corruption" in the same sentence, they tend to get scared and think of ZODB
as "unstable" which is really not the case... most purported "ZODB
corruption" issues are caused by programming errors in Products.  This has
been the case for at least every one but one (the 2G pointer bug) that I've
personally seen.

- Original Message -
From: "Bill Welch" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, November 08, 2000 2:59 PM
Subject: Re: [Zope] Is data.fs corrupted?


 In my case, I couldn't import DemoPortal.zexp or Wizard.zexp from PTK
 because oid 1377 was already in use. The pickle dump that followed
 contained references to ZDiscussions, which I had deleted some time
 before.

 After deleting the offending products and their directories, restarting
 zope, and packing, I ran tranalyzer -r on my problem Data.fs. I found that
 the problem oid was in this transaction:

 "/Control_Panel/Products/manage_importObject

 import into /var/lib/zope/var/Data.fs from
 /var/lib/zope/import/ZDiscussions.zexp"

 referred to by this transaction:

 "Installed product DemoPortal"

 in turn, referred to by this tranaction:

 "Added Globals"

 I think ZODB corruption when I see a record in one product refer to
 a record in an independent product and when the transaction of a deleted
 product doesn't go away.

 On Wed, 8 Nov 2000, Chris McDonough wrote:

   I think it is ZODB corruption.
 
  This is very unlikely.  What makes you think 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] calendar help (newbie)

2000-11-08 Thread James Sintz

I want to use the Calendar Tag product to display the subject of my daily
newsletters (newsletter archive), but there are no examples of how to
display anything other than propval stuff. I would like the calendar to show
the subject for each day and link to the newsletter but only show
newsletters prior to or equal to today's date (I create most of them weeks
in advance).

The newsletters are created with a zclass and have a subject, goLiveDate and
body fields.

Anyone have example of how to do something like this?

Thanks!!

Jamey

___
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] XML-RPC

2000-11-08 Thread David Nimmons

I am trying to develop a web based interface to automation equipment (Allen
Bradley plc's in this case) to use for an operator interface. I am using
SVG to develop graphics and want to use javascript to manipulate the
graphics based on data from the plc. I am looking for a way to pull more
data from the server without having to reload the page. My question is will
XML-RPC allow this. Or does Zope have some other mechanism that would allow
this. Thanks for any help.


___
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] Is data.fs corrupted?

2000-11-08 Thread Bill Welch

Here's my evidence. A record (OID 0) in the "Added Globals" transaction
refers to a record (OID 57) in the "Installed product DemoPortal"
transaction.

From tranalyzer -r

TID: 33140200A4749F8 @ 69694 obs 1 len 274 (status 'p') By [Zope]
"Added Globals"
OID: 0 len 204
2, 57

TID: 3374475482BCF4C @ 3697235 obs 2 len 648 (status 'p') By
[Zope]
"Installed product DemoPortal"
OID: 137f len 456
1377, 43ed, 43f3, 4431
135e, 43f0, 4389, 1568
442e, 1565
OID: 57 len 65
137f

On Wed, 8 Nov 2000, Chris McDonough wrote:

 Transactions are only tangentially related to this issue (I'm not sure how
 the "Added globals" transaction 'referred to' the "Installed product
 DemoPortal" transaction in your example, BTW).


___
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] Cloning a ZClass-Instance

2000-11-08 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  Thank you Dieter for your reply,
  but yout suggestion doesn't solve the problem.
Sad to hear.

  This is the traceback:
  "The object 973677459 does not support this operation "
  This means to me that x is an instance.
I agree.
Though, your news items have strange id's.

  That's my script-
  dtml-in "objectValues(['news'])"
  dtml-let x="_.getitem('sequence-item')"
  
  dtml-if "Jetzt.isCurrentDay()"
   dtml- call "manage_clone(x,'versuch', [REQUEST])" 
You should not enclose "REQUEST" with "[...]", though this
is *NOT* your current problem.

I looked at the code of "OFS.CopySupport.manage_clone"
and apparently, one of your "news" items (the one with
id '973677459') lets its "cb_isCopyable" return false.
Unfortunately, I have no idea why.



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] XMLRPC accessing Zope DTML/SQL methods

2000-11-08 Thread Dieter Maurer

Mayers, Philip J writes:
  def extmethod(self, REQUEST):
   return str(REQUEST)
  
  From the web that prints the string Representation of REQUEST. But, over
  XMLRPC, this:
  
  s=xmlrpblib.Server("http://server.name/Zope/path/")
  s.path.extmethod()
  
  Returns the string representation of REQUEST, but *this*
  
  s.path.extmethod('rrr')
  
  return 'rrr'. What's happening?
That's the ZPublisher magic:

  it tries to match the requirements of the called object
  with what is provided by the request.

  In your first example, you did not provide a parameter,
  but your function requires one. ZPublisher determined
  the "REQUEST" object as candidate based on the parameters
  name.

  In your second example, you did provide a parameter.
  ZPublisher used this positional parameter to satisfy
  the first positional parameter of your function.

  Thus, if your function requires two parameters: say
  'text' and 'REQUEST', your second example would
  behave as your first now does.


There is a document on zope.org that describes this
ZPublisher magic in more detail.
But maybe, you already know enough to fulfill your
requirements.


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 )




[Zope] Re: How about create another method other than index_html to get content in OFS::File?

2000-11-08 Thread Dieter Maurer

iap_y2fun.com writes:
  My problem is that : I have a ZClass based on OFS::File.
  I need to override the default index_html for my own purpose.
  After I created my own index_html, I found myself can't access the content
  of that object.
  Since:
  1. I have no way to access the original method index_html of the base class
I, too, would wish that ZClasses provide access to overwritten
methods (as Python does).

  2. In OFS::File, There is no other method than index_html to access the
  content of this object.
  That's why I modify Image.py and add one line:
  getContent=index_html
  It's work for me.
For file objects, you can use "str(data)".

It won't work with images, though.



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 )




[Zope] Re: tags for export import

2000-11-08 Thread Dieter Maurer

jacintha menezes writes:
 Kindly give dtml tags or python module for doing import  export in
  zope.Since i am not able to send the query output as an attachment with zope
  mail facility i am thinking of
  using import  export.
You *ARE* able to send any output as an attachment with zope's
sendmail. Did you look at the examples for "dtml-sendmail/dtml-mime"
(I think, there are some in the upcoming Zope book).
You will probably see there a "dtml-var file" example.
But you can use any dtml code to define the body of the attachment.
You may need to take care about leading whitespace (to be avoided)
and about the empty line separating attachment header from
attachment body (to be provided).


For your import and export question:
  I am too lazy to look these functions up for you in the API
  documentation (it comes online with your Zope 2.2 installation).
  These are methods of the "ObjectManager", probably named
  "manage_import/manage_export" or something like this.


As a general hint:
  Whatever can be done via the management interface can be done
  programmatically *AND* you can learn how by looking at the
  source of the respective form. These sources are
  files with the extension ".dtml" that reside in subfolders
  of "lib/python".


I am surprised that "import/export" should be able to emulate
mailing. But this is of minor importance.


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] acessing parameters in a helper class

2000-11-08 Thread Dieter Maurer

Max M writes:
  
  dtml-in getAllComments
  idtml-var author/ibr
  .
  Traceback:
  
  Unauthorized: author
 
  
  def addComment(self, comment='', author='' , RESPONSE=None):
  "Adds a comment"
  self.comments.append(aComment(comment, author))
  self._p_changed = 1 # Trigger persistence
  RESPONSE.redirect('index_html')
  
  def getAllComments(self):
  "returns a list of all comments"
  return self.comments

Your "getAllComments" returns a list of bare (unwrapped) 
objects. This removes any possibility to acquire permissions.
You should probably rewrite you "getAllComments" like this:

def getAllComments(self):
"returns a list of all comments"
r= []
for c in self.comments:
r.append(r.__of__(self))

This would require that "aComment" inherits from
"Acquisition.Implicit" (or "Explicit").

Furthermore, your "aComment" does not specify any security
rules. With the news Zope 2.2 security policy, this means
access is prohibited.
You may consider to provide security rules.

There is a nice document from Brian which explains your options.


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] Problen wtih dtml-in inside Zsql method

2000-11-08 Thread Dieter Maurer

Alejandro Pancani writes:
   The problem is that when I execute the Zsql
  method 'sql_2' it seems to execute the sql_select_next_val method two times
  because at the next time that I execute 'sql_2'  the value returned from
  sql_select_next_val is incremented in 2 in comparison with last value
  returned. I need it to be incremented in 1.
  
  
  
  the code of  sql_select_nextval method is the following:
  
   SELECT seq.NEXTVAL  val
 FROM DUAL
  
  
  the code of sql_2  method is the following:
  
  dtml-in "sql_select_nextval"
  
  insert into anytable
  (oid_anytable, name)
  values
   (dtml-var val,
'john')
  
 dtml-var sql_delimiter
  
  select * from anytable  where oid_anytable  = dtml-var val
  
  /dtml-in
Try to remove the "..." around "sql_select_nextval".
I do not understand why your code with the "..." works at all.

If this does not solve your problem, you may try:

   insert  into anytable (oid_anytable, name)
  values (seq.NEXTVAL,'john')

   dtml-var sql_delimiter
   select * from anytable where oid_anytable = seq.CURVAL

That's the code, we use successfully ('CURVAL' may be wrongly spelled,
though).


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 )




[Zope] Can't get dtml-tree to work in a sub-folder.

2000-11-08 Thread jvoth


Howdy Folks,

I'm trying to make use of the dtml-tree gizmo and it only works in 
the root directory.

I'm trying to create a dynamic navigation display so users can click
their way through the sub-directories of files. Kind of a 
"Zope Explorer".

Any ideas? I've been playing with the security bits on various 
directories without success.

Thanks in advance.

John
/\
| John Voth   Mobiltex Data Ltd.Calgary, Alberta,Canada, T1Y-4T7 |
| [EMAIL PROTECTED] 403-291-2770, 403-259-6795 (fax)|
\/

___
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 do I logout?

2000-11-08 Thread The Doctor What

* Ender ([EMAIL PROTECTED]) [001104 18:04]:
 I don't know if there is an elegant way to do this.
 
 if i'm the superuser i just try to find a junk method (The QuickStart
 Tutorial does nicely) and change the text to include the following. (if
 i'm another user it the same thing applies but i generally create a
 logout method._

What is a 'logout method._'?  Is that a "DTML Method" named logout?
Is the '_' a typo?  You mention method above, but I'm just making
sure we're talking about the same thing. :)

 dtml-raise Unauthorized
   Log Me out Scotty
 /dtml-raise
 

Thanks for the help.

Ciao!

-- 
Chemist who falls in acid is absorbed in work.

The Doctor What: Un-Humble   http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

___
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] Wampum Generator

2000-11-08 Thread Kathy Hester

Hi,

Has anyone used this before? I am a newbie and would
like to play 
around with it. I have the how-to docs. But my problem
starts at the 
download! 

When I try to open it with winzip I get this error:
“Error
reading header after processing 0 entries”. I have
successfully untared other files with winzip. I have
dowmloaded it 4 times to make sure it wasn’t just
corrupted. Is there another place that I can download
it?

Also any tips on install/use are welcomed!

Thank you.

=
Kathy Hester

to feel powerful often
to act powerful sometimes
to overpower others seldom
to share power whenever possible
-  unknown

__
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.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 )




[Zope] Zope Book (Error and Suggestion)

2000-11-08 Thread The Doctor What

At least I think it's an error (either in my understanding or in the
book).

First off, I think the books great. Finally something that's trying
to explain what's going on.  Zope looks so cool, but it's been hard
for a hardcode PHP and Perl programmer like me to get my brain around it.

Anyway, my suggestion is that all the image URLs be fixed so that
your book can be easily mirrored with normal web-tools.  Perhaps
even offer a version that's downloadable.  When I went to mirror it,
my mirror software choked on image urls like:
http://www.zope.org/Members/michel/ZB/SimpleExamples.html/Figures/5-7.png

The mirror was so I can use it at home where I don't have a
reasonable net access (very flaky 56k, it hoses up frequently as
it's through work).

The error or problem that I have run into is that I can't get the
Guest Book in chapter 5 to work.  They python method listed there
does not work for me.  I'm using Debian Unstable (Woody) with these
versions of packages:
ii  zope   2.2.2-3The Z Object Publishing Environment
ii  zope-bytecodeh 0.1.7-2Rewrite bytecode of functions to do unlikely
ii  zope-pythonmet 0.1.7-2Allows ZopeMethods to be written in plain Py

That's bytecodehacks and pythonmethods on the bottom there.

The error message is:
Error Type: NameError
Error Value: context

I have no idea how to fix this, so I'm asking here.

Ciao!

-- 
When you say 'I wrote a program that crashed Windows', people just stare at you 
blankly and say 'Hey, I got those with the system, *for free*'.
-- Linus Torvalds

The Doctor What: Not that 'who' guy  http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

___
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] ZMethod (Safe)

2000-11-08 Thread jpenny

On Wed, Nov 08, 2000 at 01:12:12PM -0500, Evan Simpson wrote:
 From: Chris Withers [EMAIL PROTECTED]
  [EMAIL PROTECTED] wrote:
  
   Now, how about internal/external?
 
  Safe and Flexible are probably more meaningful words there ;-)
 
  ZMethod is growing though ;-)
 
 We've pretty much settled on restricted/unrestricted here.  In honor of the 
presidential Indecision
 2000 race, we're seriously thinking about revamping and rerunning the poll, so 
ZMethod may well get
 its moment in the spotlight.
 
 Cheers,

Well, you guys are the Zen Masters of Zope.  But, I am going to give one
more attempt at explaining why this decision is lacking in enlightenment.

The presumed audience of the terminology is newbies, not security managers.
We want everyone, but newbies in particular, to use the restricted method
whenever possible.  But no newbie wants to be restricted/strait-jacketed/
'kept from the cool stuff'.

You are proposing a term with negative conotations for the option that
we want people to prefer!  

Moreover, some meritorious suggestions for names were overruled for being
too long, or hard to say.   Unrestricted/Restricted fail this criterium
also.  Unrestricted Zope ZMethod (8 syllables, 26 letters) is quite a 
mouth full.

I understand your reluctance for Safe, with its immediate antonym Unsafe.

But, please find a positive term for the Restricted version.  Perhaps
Ordinary/Power, ''/Power, Ordinary/Super, ''/Super, Muggle/Wizard.

[If you use Super, the documentation can begin:
Stronger than a locomotive, able to leap strong buildings at a single
bound, able to import any module, able to escape for a secure lockbox, 
a method with Super powers.  But don't unleash this method without
understanding it fully!]

Damn, I am beginning to think that Tame Snake Thingy and Wild Snake
Thingy are the best yet!

Hoping this increases satori.

Jim


 
 Evan @ digicool  4-am
 
 
 ___
 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] XML-RPC

2000-11-08 Thread Hannu Krosing

David Nimmons wrote:
 
 I am trying to develop a web based interface to automation equipment (Allen
 Bradley plc's in this case) to use for an operator interface. I am using
 SVG to develop graphics and want to use javascript to manipulate the
 graphics based on data from the plc. I am looking for a way to pull more
 data from the server without having to reload the page. My question is will
 XML-RPC allow this. Or does Zope have some other mechanism that would allow
 this. Thanks for any help.

Actually this is mainly a client-side problem, on server side you have
total 
freedom to serve any protocol ;)

Often this kind of problem is solved by having twho frames and data is
aquired 
by reloading the "data-page" which then manipulates the
"presentation-page" 
using javascript, possibly in its onLoad method.


Hannu

___
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] SAP DB with Zope?

2000-11-08 Thread Daniel Dittmar


There isn't one yet, although it is on my private list. It will be
difficult to make it run on Linux, though, because

- a SAP DB client connection isn't allowed to be taken across a fork ()
(otherwise two process could use the same connection)
- Linux assigns new process ids to threads, so a SAP DB client believes
there was a fork () when there was only a change of thread (anyone got a
solution to that one?)
- you could try the ODBC DA, but I hadn't much luck with that one

Daniel Dittmar


"Jonathan (ListServ Account)" wrote:
 
 Hi all,
 
 Will be testing it myself shortly, but has anyone already hooked up Zope to
 SAP DB? It has been open sourced recently, and there are Python interfaces
 available (as well as Perl, JDBC, PHP, ODBC and C/C++). For those who are
 not familiar with it: it's a high end database used for example with SAP
 R/3 and has its roots in ADABAS D.
 
 Check it out:
 http://www.sap-ag.de/solutions/technology/sapdb/index.htm


___
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] ZMethod (Safe)

2000-11-08 Thread Jason Cunliffe

Evan Simpson [EMAIL PROTECTED] wrote
  Safe and Flexible are probably more meaningful words there ;-)
 
  ZMethod is growing though ;-)

 We've pretty much settled on restricted/unrestricted here.  In honor of
the presidential Indecision
 2000 race, we're seriously thinking about revamping and rerunning the
poll, so ZMethod may well get
 its moment in the spotlight.

lol

Good news: 'ZMethod' is nice and 'sounds' good, however one says it.

'safe' / 'flexible' imho=nice ideam but a little too subjective, not
informative enough

'restricted' / 'unrestricted'

hmm.. better because more functional, but how about:


1. 'closed' / 'open'

2. 'builtin' / 'custom'

3. 'local' / 'custom'

4. 'client-side' /  'server-side'

???

- Jason




___
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] acessing parameters in a helper class

2000-11-08 Thread Max M

From: Dieter Maurer

You may consider to provide security rules.

There is a nice document from Brian which explains your options.

Yes there is indeed. I just hadn't noticed it before.

I have just added: "__allow_access_to_unprotected_subobjects__=1" to the
aComment class and everythings dandy. Just what the doctor ordered.

Brian also mentions in his document that a "__roles__ = None" should do the
same for the class, but it doesn't. Don't know why.

class aComment:
' '
__allow_access_to_unprotected_subobjects__=1 # This works
#__roles__= None # This doesn't

def __init__(self, comment, author):
self.comment = comment
self.author  = author

Thanks for the info

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] Is data.fs corrupted?

2000-11-08 Thread Chris McDonough

I'm going to take a guess.  It would appear AFAICT that the ZDiscussions
product installed an object which it hung off the root object (the
application object) when it was first imported.  Maybe it was trying to make
some sort of a singleton by doing so, where the singleton was *not* a
Zope-manageable object (and thus it can't be seen or found via ZopeFind).
When the product was deleted, it did not clean up after itself properly
(specifically, it did not delete this singleton).  While I don't completely
understand the relationship between ZDiscussions and DemoPortal in this case
(I *really* don't understand why you couldn't subsequently import DemoPortal
or Wizard), I think if we dug hard enough we'd find at the bottom of it a
problem like this.

The point being that I'd bet we'd find a programming error staring at us in
this sequence of events if we looked hard enough.  Though it's tempting to
call it a "ZODB corruption" problem, if you really get down to the lower
levels, it's likely an application-level problem.

That said, I'll admit that this distinction is really pedantic when your
Zope doesn't work.  :-)  I'm glad you had the gumption to figure it out...

- Original Message -
From: "Bill Welch" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, November 08, 2000 4:21 PM
Subject: Re: [Zope] Is data.fs corrupted?


 Here's my evidence. A record (OID 0) in the "Added Globals" transaction
 refers to a record (OID 57) in the "Installed product DemoPortal"
 transaction.

 From tranalyzer -r

 TID: 33140200A4749F8 @ 69694 obs 1 len 274 (status 'p') By [Zope]
 "Added Globals"
 OID: 0 len 204
 2, 57

 TID: 3374475482BCF4C @ 3697235 obs 2 len 648 (status 'p') By
 [Zope]
 "Installed product DemoPortal"
 OID: 137f len 456
 1377, 43ed, 43f3, 4431
 135e, 43f0, 4389, 1568
 442e, 1565
 OID: 57 len 65
 137f

 On Wed, 8 Nov 2000, Chris McDonough wrote:

  Transactions are only tangentially related to this issue (I'm not sure
how
  the "Added globals" transaction 'referred to' the "Installed product
  DemoPortal" transaction in your example, BTW).




___
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 )




  1   2   >