RE: [Zope] acl_users API

2000-11-09 Thread steve smith

I must be blind...

I've been through the whole book (I think), and can't find a shred of info
on manipulating acl_users with DTML. In one of the chapters it leads with
the tantalizing phrase "we'll see how to give users the ability to change
their own passwords later", but the trail goes cold.

I'm sure there is a way...

Steve

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill
Anderson
Sent: Thursday, 2 November 2000 2:56
To: '[EMAIL PROTECTED]'
Subject: Re: [Zope] acl_users API


Harris Peter wrote:
>
> Hi
> I have given up trying to manipulate acl_users from DTML for now -
> I'm sure it's possible  because here and there on this list and on the
> Zope site I see hints that it can be done. However, I can't find
> (for example) a HOWTO anywhere that describes the API of
> acl_users and what you can do with it.

Try:
http://www.zope.org/Members/michel/ZB/

--
E PLURIBUS LINUX


___
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] security dilemma?

2000-11-09 Thread Jason C. Leach


hi,

do you have these two:
http://www.zope.org/Members/michel/ZB/
http://zdp.zope.org/projects/zqr

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



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




Re: [Zope] logging for virtual hosts

2000-11-09 Thread Jason C. Leach

hi,

I have the same prob. Although I have not implemented it yet, I was
thinking of doing a python method that I could pass all the info into and
stick in in the site rules.  That would probably only do the main hit
(perhaps if all pages go through the it will to all of them).

j.

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

On 9 Nov 2000 [EMAIL PROTECTED] wrote:

> We are using SiteAccess to have multiple virtual hosts on one Zope
> Server. We would like to provide our customers with stats reports
> based on the zope log. But entries in the log don't contain any
> distinguishing information about the virtual host to which the entry
> applies. Short of hacking zope, is there a way to modify our zope
> environment to to have the requested hostname included in the log
> entry?
> 
> We know that we can use PCGI thru apache and have apache do the
> logging. But I'm hoping to avoid that.
> 


___
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] transferring from gadfly to oracle

2000-11-09 Thread jacintha menezes

Hi,

 Thanks for your response.Kindly let me know how to give connection to
oracle(or an other)database from zope.Can i use same ZSQL methods what i
used for Gadfly ?.Can i use
same dtml tags what i used for Gadfly ?.

please help me.
 waiting for your reply.
 Thanks,
   bye,
jacintha


___
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 do I set the Title property of a File object from a DTML method

2000-11-09 Thread magnus

I have some of my own ZClass objects that may contain other ZClass
objects or Files.  Using a form and a method (that calls
manage_editProperties(REQUEST)) I can set all the properties of my own
ZClass subobjects.  But I'm unable to set the Title property of a File
object.  Is there a secret trick?

-Magnus

___
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-09 Thread Chris McDonough

Bill Welch wrote:
> 
> Eyeballing my problem Data.fs (I kept a copy), I see something different
> than you describe.
> 
> What I take to be the root object (OID 0) refers to a record in what
> appears to an instance of something to do with PTK (OID 57).

Wow, nice dumps...

So the root object contains a reference to oid 57, which appears to be
an instance in Product land having to do with DemoPortal. For instance,
maybe it's the ObjectManager instance related to the Product that goes
into the Control_Panel.Products area.

So...

app.something = app.Control_Panel.Products.DemoPortal
get_transaction().commit()

... just for instance.

Why would somebody do this?  I don't know.

BTW, I think object 2 is the child object list.

> A separate
> record in the PTK related instance (PRI) refers to a record in what seems
> to be the ZDiscussions *ZClass*, not an instance of ZDiscussions.

That's possible.  Still assuming oid 57 is the ObjectManager instance
related to the Product:

app.Control_Panel.Products.DemoPortal.foo =
app.Control_Panel.Products.ZDiscussions.propertysheets.methods.amethod
get_transaction().commit()

Why?  I have no idea.

> Interesting that the first (and problem) record of the PRI has the next
> OID after that of the last OID of the ZClass. Could it have orginally been
> part of the ZDiscussions install? I don't remember when I installed what.

To be honest, I have no frigging clue.  :-)  The "PRI" in your case is
created on Zope startup.  It's the persistent representation of the
on-disk DemoPortal Product in the Control_Panel.  Furthermore, it gets
re-created every time Zope starts (unless you're using ZEO).

There are talks about making on-disk products not have persistent
representations in the control panel products folder (not that this
would help your issue, but it might make things a little simpler).

> See snippets of dump and tranlyzer at end of message. N.B., the Data.fs is
> from an Intel machine (you have to swap bytes on the hex side to read it
> correctly).
> 
> I tried the reinstall, delete instances method with no improvement. It
> didn't seem to me that truncating would have helped me either, considering
> that I would have had to truncate back to and including the root :-).

As I read your problem report, if you wanted to try to solve the problem
via truncation, it seems you would have needed to chop the file at the
byte previous to the beginning of the transaction which first installed
the "PRI".  I presume that was too early of a transaction to be
feasible?  It seems a pretty low number.

Also, I presume this was an older version of Zope?  You imported an
object as superuser, which shouldn't be able to happen under Zope
2.2.X?  Was this an older version of the PTK as well?

> I recovered by exporting all my objects, starting a new ZODB, and
> importing my objects.

Bummer.  :-(  But I still think your problem was caused by app-level
error and not ZODB-level error.  If I had time, I'd examine ZDiscussions
and the PTK to see if I could spot the problem.  But I don't.


> On Thu, 9 Nov 2000, Chris McDonough wrote:
> 
> > But problems may happen when an application places instances into the ZODB
> > of non-web-manageable, non-builtin objects as attributes of normal Zope
> > objects.  If these instances aren't cleaned up in the process of the
> > deletion of whatever bit of Python code created them, they're "orphaned".
> > When they're orphaned, some application code may attempt to initialize the
> > object's instance (for whatever reason) in order to make use of them, and
> > because the ZODB can't find the class of the instance, it complains.  It
> > complains by raising an exception.  Zope's supposed to catch this and do the
> > right thing, but it evidently doesn't sometimes.
> >
> > You can "fix it" by restoring whatever class the instance depends on and
> > subsequently use the debugger to delete the instance from the ZODB.  But
> > I've had it happen to me where it was just easier to truncate the
> > FileStorage I was working on than figure out exactly what was going on.
> > This is bad.
> 
> TID: 33140200A4749F8 @ 69694 obs 1 len 274 (status 'p') By [Zope]
> "Added Globals"
> OID: 0 len 204
> 2, 57
> 
> 0069680 7d0b 0c71 2e75    e404 3103  >.}q.u..1<
> 0069696 1f40 b8f5 08b6    1a01 0070  >@.p.<
> 0069712  000d 4100 6464 6465 4720 6f6c 6162  >.Added Globa<
> 0069728 736c     3103 1f40 b8f5  >ls.1@...<
> 0069744 08b6       0100  ><
> 0069760 3e10     cc00 2828 0b55  >.>..((U.<
> 0069776 6550 7372 7369 6574 636e 7165 5501 5011  >Persistenceq.U.P<
> 0069792 7265 6973 7473 6e65 4d74 7061 6970 676e  >ersistentMapping<
> 0069808 0271 7174 4e03 2e74 717d 5504 5f0a 6f63  >q.tq.Nt.}q.U._co<
> 0069824 746e 6961 656e 7172 7d05 0671 5528 5f0a  >ntainerq.}q.(U._<
> 0069840 6170 6b63 745f 6d69 7165 4707 cb41 1497  >pack_

[Zope] ZCatalog and random key error

2000-11-09 Thread Bak @ kedai

hello all
i'm about to venture into building a ZClass that will make use of ZCatalog.  
is it 'safe' now?  i see that my zope2.2.2 now haven't encountered any random 
key error yet.  what about others?

also, will iterating through catalog index faster than iterating through 
..say.. objectItems('meta-type')?

looking for insight, advice, holes to avoid, etc

thanks

-- 

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

use Zope?  then you got HOPE!


___
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 multiple users access gadfly database simultaneously ?

2000-11-09 Thread jacintha menezes

Hi,
   I have developed a product using Gadfly database. In that team members
have to fill a form,and the data  should go to their leaders database. My
problem is more than one user can't enter simultaneously, also they can't
submit the form together.How can i solve the problem.Can't multiple users
access Gadfly database simultaneously ?.

please help me.

waiting for your quick reply
thanks,
  bye,
   jacintha


___
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] Sybase (again?)

2000-11-09 Thread Chris McDonough

SybaseDA AFAIK does not support stored procedures.

"Manuel Amador (Rudd-O)" wrote:
> 
> Well,
> 
> After no one else answered my last email about zope, I've decided to
> summarize what's going on with the ZSybaseDA so as to see if someone
> takes interest.
> 
> STORED PROCEDURES DO NOT WORK.  Anything else, however, does.  Once a
> stored procedure was called, the db object is blocked till zope
> restarts.
> 
> Any patches, solutions, suggestions?
> 
>Manuel
> 
> ___
> 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 )

-- 
Chris McDonough
Digital Creations, Publishers of Zope
http://www.zope.org

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




[Zope] Sybase (again?)

2000-11-09 Thread Manuel Amador (Rudd-O)

Well,

After no one else answered my last email about zope, I've decided to
summarize what's going on with the ZSybaseDA so as to see if someone
takes interest.

STORED PROCEDURES DO NOT WORK.  Anything else, however, does.  Once a
stored procedure was called, the db object is blocked till zope
restarts.

Any patches, solutions, suggestions?

   Manuel


___
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] Products, ZClasses and CatalogAware-ness

2000-11-09 Thread Andy McKay

> Thanks. If I a ZClass that is CatalogAware and contains n number of nested
> ZClasses, am I correct to assume that the children (and their
> children) inherit the original "awareness" ?

Yes you 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 )




Re: [Zope] Security and Acquisition

2000-11-09 Thread Charlie Wilkinson

> [Charlie Wilkinson]
> 
> | Greetings,
> 
> Hola!
> 
> | Now, referring to figure 1 (above :-), changes to security settings
> | for the acl_test folder are having no effect on access to index_html.
> | Only when I change the security settings on index_html itself, can I
> | control access to it.
> 
> Can it have something to do with acquirement of permission settings?
> (The leftmost column on the security tab).

Hi Morten,
Yes.  It's acting as if those little boxes were not checked! :)  As I was
replying to Jeff in a prior message, the mystery goes deeper.  I grabbed a
fresh copy of the latest CVS version, built it, set a superuser password
and ran it.  I then tried to visit the default index_html "Welcome to
Zope" page and was presented with a BASICAUTH type login box.  If I
explicitly set anonymous View permissions for the index_html (Welcome
to Zope) page, then I get in with no login as expected.  That isn't
normal is it?  Root folder objects would appear to be having the same
security setting acquisition problems as I was finding previously with
sub-folders and LoginManager.

I realize I'm on the bleeding edge of Zope running the CVS version,
but I heard the 2.2.3 version is due out RSN and figured maybe a little
"new version" pain now would be easier than upgrade pain later.  I'd sure
rather be saying "Here's a patch" than just "It's broke", but alas I
don't grok Python that well yet.  ("It's broke" still offers *some*
value, right?  :-)

To the Zope developers:  It seems pretty clear that Zope v2.2.cvs is
broken in regards to security settings acquisition.  Should I post to
zope-dev, or is there already a sufficient awareness/understanding of
the problem?

Thanks,
Charlie

-- 
~
Charlie Wilkinson - [EMAIL PROTECTED] - N3HAZ
Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer...
Visit the Radio For Peace International Website: http://www.rfpi.org/
~
CLOBBER INTERNET SPAM:  See!! 
   Join!! 
~
QOTD:
"Bush is a big corporation disguised as a human being running for president."
-- Ralph Nader on David Letterman (9/28/00)

___
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] calendar help (newbie)

2000-11-09 Thread James Sintz

Yes and I have read it (several times). What I am stuck on now is only
showing newsletters prior to or equal to today's date.

Here is what I have so far and it works (except for the not showing
newsletters past today part).






   
 
   

   

   


  





 


-Jamey

> -Original Message-
> From: Dieter Maurer [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, November 09, 2000 3:17 PM
> To:   James Sintz
> Subject:  Re: [Zope] calendar help (newbie)
> 
> You know about the CalenderTag HowTo?
> 
> 
> 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] Products, ZClasses and CatalogAware-ness

2000-11-09 Thread Aaron Straup Cope

Thanks. If I a ZClass that is CatalogAware and contains n number of nested
ZClasses, am I correct to assume that the children (and their
children) inherit the original "awareness" ?

On Thu, 9 Nov 2000, Andy McKay wrote:

> [..]
> 
> > Hi,
> >
> > Could someone clarify the following for me:
> >
> > I would like to create a Product that instantiates itself with a ZCatalog
> > and a search interface "built-in". I'd like make all the Product's
> > ZClasses update the catalog whenever they are changed.
> >
> > If I make all the classes catalog-aware and point them to the name of the
> > "root" ZCatalog, will they (re)index the root catalog or a catalog local
> > to the class itself?
> 
> They find the closest item called 'Catalog', which may be the root if there
> is no other item "closer".
> 
> > If the latter, can I force [it] to do the former?
> 
> Fiddle around with what Catalog is the closest.
> 
> --
>   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] tags, dtml-vars and css

2000-11-09 Thread Morten W. Petersen

[Troy Farrell]

| I must be ignoramus, but I can't figure out modify  tags as generated
| by a image object.  I have this:
| I use  to add an image object to a dtml
| document.
| How can I add a STYLE="color:silver;" or any other tag the HTML source?

Call it like so:



(See somewhere around line 560 of lib/python/OFS/Image.py for more info..

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 )




Re: [Zope] Disabling SiteAccess/SiteRoot ..

2000-11-09 Thread Karl Anderson

"Jason C. Leach" <[EMAIL PROTECTED]> writes:

> hi,
> 
> I did that. Set the / to some web site and could not get back to the
> console.  I think you can just remove the product and it will restore
> itself. You will then need to uninstall it from zope, and then reinstall
> the product.

SiteRoot doesn't mangle FTP paths, so you can get in there and remove
the base - no reinstallation headaches for the product, then, and you
don't have to restart the server.

-- 
Karl Anderson  [EMAIL PROTECTED]

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




Re: [Zope] Security and Acquistition Problem

2000-11-09 Thread Charlie Wilkinson

On Thu, Nov 09, 2000 at 12:03:27PM -0500, Jeff Hoffman waxed eloquent:
> On Thu, 9 Nov 2000, Charlie Wilkinson wrote:
[snip...]
> > So what this boils down to is that as of v2.2.whatever, an acl_users
> > folder apparently does not protect the folder it's in (parent folder),
> > but only it's sibling objects and below.  Meaning that instead of setting
> > permissions on the parent object and being done with it, one now has to
> > set permissions for each sibling.  In my case that's 50 or more objects
> > and I'm not done coding yet.  Ouch!  This *can't* be right, can it?
> > I know there's a lot that's happened with the security model, so I'm
> > really *really* hoping this is just a bug that's crept in.
> 
> This is the way Zope has always behaved, unless my memory is failing me.
> Here's a thought to consider: In your model, the root acl_users would have
> to appear _above_ the root folder (/) in the hierarchy for things to
> function correctly. As it stands, acl_users in the root folder affects all
> things in the root folder and below. As it stands, your acl_users (in
> acl_test) affects all things in your acl_test folder and below. This is
> consistent.

Thanks for your response Jeff.  It seems we are in agreement.  The scope
of an acl_users folder needs to include its siblings and parent folder.
The only logical alternative I can think of is if the functionality
of acl_users, LoginManager, or whatever, was provided by some modular
component of the parent folder itself, instead of being represented as
just another object _in_ that folder.

Anyway, I did a sanity check against v2.1.2 using these exact steps:

1. Create an access_test folder with user folder and user interface.
2. Navigate to security tab of access_test.
3. Create new role "User", and allow "User" to View Objects and Access
   Contents Info.  Bar access by "Anonymous" by turning off "Acquire
   Permission Settings" for View Objects and Access Contents Info.
3. Create user "joe", password "blow", with role "User"
4. Bring up new browser window, enter the URL for access_test.

In that scenario, joe can view anything within the acl_test folder,
while anonymous users cannot, due to the objects within that folder
acquiring their security settings from the acl_test folder itself.
*That's* what I want!  It's *not* what 2.2.cvs is doing.

In fact it's even worse than previously described.  After pulling down
a completely new CVS image of Zope, I just happened to try visiting
the root URL of the new site.  Result?  I was prompted for a password
to visit the root (Welcome to Zope) page of a pristine, new Zope site.
I think this must somehow all fit together.  Unless there is something
critical about the new security model that I have missed, it looks like
there's a bug here.

> If you have 50 or so objects, and setting permissions is the obstacle,
> simply write a Python Method (or DTML, if you prefer) to iterate over the
> 50 and tweak them. Then, you won't have to manually do the work through
> the management interface.

As I think you indicated above, the type of security/acquisition model
that seems to be in place for 2.2.cvs poses far more serious problems
(i.e., needing acl_users *above* the root folder) than just setting
permissions on a bunch of modules.

Thanks again Jeff.

-cw-

-- 
~
Charlie Wilkinson - [EMAIL PROTECTED] - N3HAZ
Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer...
Visit the Radio For Peace International Website: http://www.rfpi.org/
~
CLOBBER INTERNET SPAM:  See!! 
   Join!! 
~
QOTD:
"Bush is a big corporation disguised as a human being running for president."
-- Ralph Nader on David Letterman (9/28/00)

___
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] still problems w/ SiteAccess 2.0.0b3

2000-11-09 Thread The Doctor What

* The Doctor What ([EMAIL PROTECTED]) [001109 15:18]:
> I'm curious, you posted a message about SiteAccess.  I have the same
> problem, with Debian (Zope 2.2.2 and I've tried SiteAccess 2.0.0b3
> and b4).
> 
> It producing the same errors you have, but in addition, I have this
> info from the stupid log file:
> 2000-11-09T20:09:18 ERROR(200) Zope Couldn't install SiteAccess
> Traceback (innermost last):
>   File /usr/lib/zope/lib/python/OFS/Application.py, line 488, in install_products
> (Object: ApplicationDefaultPermissions)
> (Info: SiteAccess)
>   File /usr/lib/zope/lib/python/Products/SiteAccess/__init__.py, line 12, in 
>initialize
>   File /usr/lib/zope/lib/python/App/ProductContext.py, line 323, in registerHelp
> OSError: [Errno 2] No such file or directory
> 
> 
> I have no idea what's going on, and any help from you or the zope
> mailing list would be appreciated.

I figured it out.  With a little help from my friends.  This product
is missing a 'help' directory.  I'm not sure if this is a debian
feature or not, but attached is a patch to let zope load it whether
the directory exists or not.

I basically wrapped a try around the part of the code that looks for
the help directory and files within it.  This is the file
App/ProductContext.py, btw.

I'll see about fixing SiteAccess (and Plugin, which has the same
problem) for Debian.

Ciao!

-- 
Computers are useless.  They can only give you answers.
  -- Pablo Picasso

The Doctor What: "What, Doctor What" 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] Newbie help - method needs auth > anonymous. WHY?

2000-11-09 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
 >
 >  
 >
 > 
 > I've put it in the standard_html_header.
 > 
 > When I try looking at the root page (http://john:8080) I have to provide
 > authentication before the page will display.
 > 
 > How can I alter the permissions so that an anonymous user doesn't
 > have to log in?
Either one of the objects does not want to be accessed
or there is one that can be accessed but does not provide
access to "id".

In the first case, you could add the argument "skip_unauthorized"
to the "dtml-in" tag. This would simply skip the objects
you should not see (quite nice).

The second case is a bit more difficult.
You would either need to allow "id" access (i.e. 'View') for "Annonymous"
(for the refusing object) or give your method a proxy role
with appropriate privileges.


For your simple example, however, you can recode to avoid
these troubles:

  

  


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] access to DTML's quoting and formatting(was: [Zope] ID = "somebody@someserver.com"... ?) (was: [Zope] ID = "somebody@someserver.com"... ?)

2000-11-09 Thread Dieter Maurer

Thomas Søndergaard writes:
 > 
 > I know that I must use url_quote, but how do I do that...?
Zope *SHOULD* export all quoting and formating functions to
be used in expressions. Unfortunately, it does not.

You can emulate it with specialized DTML methods. As an example:
"url_quote":

Define the DTML method: url_quote as:
   
Ensure, there is no whitespace whatsoever before '<' or after '>'!

You call this function with: url_quote(text=)

   
 > 
 > 
Get rid of these by using the correct name in the first place!

 > 
   
 > ...

As someone else already pointed out, you can use
"_.string.replace(eadr,'@','_')" if only the '@' makes
problems. But email addresses may contain other funny
characters not allowed in id's. Therefore, "url_quote" is
safer (but not completely safe -> '/').


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] Can't get to work in a sub-folder.

2000-11-09 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
 > I'm trying to make use of the  gizmo and it only works in 
 > the root directory.
What does that mean?

In which respect does it not work in lower level folders?
Exceptions, does not unfold, seems to be empty, ...?

Are you sure, that the "dtml-tree" does *NOT* sit in a DTML document
(when it does not work)?

 > 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".
A Zope explorer as you see it in the left frame of the management
interface?



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

2000-11-09 Thread Dieter Maurer

Sven Hohage writes:
 > Once again thanks to you, but I can't figure out why cloning it's not
 > possible.
 > The object is a simple zclass with the baseclasses ->ZObject,
 > ZObjectManager<-
 > Nothing special.
 > 
 > That's the complete traceback:
 > 
 > 
 > -->
 > Traceback (innermost last):
 > 
 >   File C:\Zop\lib\python\OFS\CopySupport.py, line 321, in manage_clone
 > (Object: holle)
 >   File C:\Zop\lib\python\OFS\CopySupport.py, line 402, in
 > _verifyObjectPaste
 > (Object: holle)
 > Copy Error: (see above)
Your traceback indicates, that the object itself does not object
to be copied. It's the destination that does not want the
object.

  The problem occurs in "_verifyObjectPaste".
  Its source comment says:

# Verify whether the current user is allowed to paste the
# passed object into self. This is determined by checking
# to see if the user could create a new object of the same
# meta_type of the object passed in and checking that the
# user actually is allowed to access the passed in object
# in its existing context.

Thus, it is probably a security issue:

  Either you are not allowed to call the ZClass constructor
  at the destination,

  or you are not allowed to access the object to be cloned
  at the destination.


Dieter


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




Re: [Zope] newbie question

2000-11-09 Thread Dieter Maurer

Stephan Goeldi writes:
 > ...
 > 
 > 
 > 
 > ...
 > and the form_action method is this:
 > 
 > 
"money" will come in as a string value not as a list.
It would be a list, if you added a "multiple" to your
"select".
 >
This will always be true. It is constant (an expression without
variable, having always the same value independent of context).

What you mean is:

  

This will be true, if "money" has the value "'1000'" in the current
context.

Note the '...' around 1000! Without special Zope magic, request
variables come in as string values. The '...' indicates
a string literal.

You want to look at the upcoming Zope book to learn more
about the possible Zope magic.


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: can we give path of the file to be sent as an attachment

2000-11-09 Thread Dieter Maurer

jacintha menezes writes:
 > Hi,
 >Thanks for your mail. I have seen the tags of sendmail & mime.Kindly let
 > me know whether we can send a file stored in the hard disk as an attachment
 > by giving it's path.
No, you can't

 unless, you made it accessable from inside Zope.

You have various options:

  *  the excellent "LocalFS" product
  *  the "ExternalFile" product (which probably is excellent, too,
 but I do not know it personally)
  *  an external method returning the content of a file
 giving its filename (search the list archive to find
 one - with the associated *security* warning!)


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

2000-11-09 Thread Spicklemire, Jerry

Hello Linguistas,

Shorter is better. In this light, my recommendation was "mod", 
short for MODule, and / or  MethOD, but it didn't get into the 
Poll List.

> We've pretty much settled on restricted/unrestricted here.

Also, I suggested "strict" as a shortened form of "reSTRICTed". 
Perhaps to much overloading from compiler directives, but it 
is the root word, after all.

If it's not simple, it will get simplified in use, and then 
you've got some folks refering to things in "slang", which 
drives newbies bonkers. "Official slang" is preferable, at 
least then you have some chance of usage being consistent.

Later,
Jerry S.

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




[Zope] still problems w/ SiteAccess 2.0.0b3

2000-11-09 Thread The Doctor What

I'm curious, you posted a message about SiteAccess.  I have the same
problem, with Debian (Zope 2.2.2 and I've tried SiteAccess 2.0.0b3
and b4).

It producing the same errors you have, but in addition, I have this
info from the stupid log file:
2000-11-09T20:09:18 ERROR(200) Zope Couldn't install SiteAccess
Traceback (innermost last):
  File /usr/lib/zope/lib/python/OFS/Application.py, line 488, in install_products
(Object: ApplicationDefaultPermissions)
(Info: SiteAccess)
  File /usr/lib/zope/lib/python/Products/SiteAccess/__init__.py, line 12, in initialize
  File /usr/lib/zope/lib/python/App/ProductContext.py, line 323, in registerHelp
OSError: [Errno 2] No such file or directory


I have no idea what's going on, and any help from you or the zope
mailing list would be appreciated.

Ciao!

-- 
A child of five could understand this. fetch me a child of five.
-- Groucho Marx

The Doctor What: Guru to the Godshttp://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] Is data.fs corrupted?

2000-11-09 Thread Bill Welch

Eyeballing my problem Data.fs (I kept a copy), I see something different
than you describe.

What I take to be the root object (OID 0) refers to a record in what
appears to an instance of something to do with PTK (OID 57). A separate
record in the PTK related instance (PRI) refers to a record in what seems
to be the ZDiscussions *ZClass*, not an instance of ZDiscussions.
Interesting that the first (and problem) record of the PRI has the next
OID after that of the last OID of the ZClass. Could it have orginally been
part of the ZDiscussions install? I don't remember when I installed what.

See snippets of dump and tranlyzer at end of message. N.B., the Data.fs is
from an Intel machine (you have to swap bytes on the hex side to read it
correctly).

I tried the reinstall, delete instances method with no improvement. It
didn't seem to me that truncating would have helped me either, considering
that I would have had to truncate back to and including the root :-).

I recovered by exporting all my objects, starting a new ZODB, and
importing my objects. 

Bill.

On Thu, 9 Nov 2000, Chris McDonough wrote:

> But problems may happen when an application places instances into the ZODB
> of non-web-manageable, non-builtin objects as attributes of normal Zope
> objects.  If these instances aren't cleaned up in the process of the
> deletion of whatever bit of Python code created them, they're "orphaned".
> When they're orphaned, some application code may attempt to initialize the
> object's instance (for whatever reason) in order to make use of them, and
> because the ZODB can't find the class of the instance, it complains.  It
> complains by raising an exception.  Zope's supposed to catch this and do the
> right thing, but it evidently doesn't sometimes.
> 
> You can "fix it" by restoring whatever class the instance depends on and
> subsequently use the debugger to delete the instance from the ZODB.  But
> I've had it happen to me where it was just easier to truncate the
> FileStorage I was working on than figure out exactly what was going on.
> This is bad.

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

0069680 7d0b 0c71 2e75    e404 3103  >.}q.u..1<
0069696 1f40 b8f5 08b6    1a01 0070  >@.p.<
0069712  000d 4100 6464 6465 4720 6f6c 6162  >.Added Globa<
0069728 736c     3103 1f40 b8f5  >ls.1@...<
0069744 08b6       0100  ><
0069760 3e10     cc00 2828 0b55  >.>..((U.<
0069776 6550 7372 7369 6574 636e 7165 5501 5011  >Persistenceq.U.P<
0069792 7265 6973 7473 6e65 4d74 7061 6970 676e  >ersistentMapping<
0069808 0271 7174 4e03 2e74 717d 5504 5f0a 6f63  >q.tq.Nt.}q.U._co<
0069824 746e 6961 656e 7172 7d05 0671 5528 5f0a  >ntainerq.}q.(U._<
0069840 6170 6b63 745f 6d69 7165 4707 cb41 1497  >pack_timeq.GA...<
0069856 5662 9cc2 0b55 7041 6c70 6369 7461 6f69  >bV..U.Applicatio<
0069872 716e 2808 0855    0200 0971  >nq.(U.q.<
0069888 5528 4f0f 5346 412e 7070 696c 6163 6974  >(U.OFS.Applicati<




TID: 3374475482BCF4C @ 3769401 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



3769392 002e   a100 036a 4437 4875 cf2b  >j.7DuH+.<
3769408 004c   0200 7090  1c00   >Lp..<
3769424 6e49 7473 6c61 656c 2064 7270 646f 6375  >Installed produc<
3769440 2074 6544 6f6d 6f50 7472 6c61    >t DemoPortal<
3769456  7f13 3703 7544 2b48 4ccf    >.7DuH+.L<
3769472     3900 3984    >.9.9<
3769488   c801 2828 0555 5442 6572 7165  >..((U.BTreeq<
3769504 5501 4206 6375 656b 7174 7402 0371 744e  >.U.Bucketq.tq.Nt<
3769520 282e 5528 2a19 3337 6962 7071 4941 5132  >.((U.*73biqpAI2Q<
3769536 6144 6932 504b 7469 3576 6737 3d3d 0471  >Da2iKPitv57g==q.<
3769552 1955 432a 5677 2f42 6536 7550 6f33 656b  >U.*CwVB/6ePu3oke<
3769568 4f41 7973 4668 4342 3d51 713d 5505 2a19  >AOsyhFBCQ==q.U.*<
3769584 614d 6d73 636b 4c45 6977 5851 5833 7669  >MasmkcELwiQX3Xiv<
3769600 3353 556d 7751 3d3d 0671 1955 592a 502f  >S3mUQw==q.U.*Y/P<
3769616 694c 6f65 5854 6164 6e4a 3871 7672 6f4c  >LieoTXdaJnq8rvLo<
3769632 3358 3d67 713d 5507 2a19 6659 4932 6744  >X3g==q.U.*Yf2IDg<
3769648 5879 4c70 5346 6e2f 6270 316e 6c37 4135  >yXpLFS/npbn17l5A<
3769664 3d3d 0871 1955 632a 354a 7161 3463 6a36  >==q.U.*cJ5aqc46j<
3769680 3570 634c 494c 5a38 5a6a 5471 3d51 713d  >p5LcLI8ZjZqTQ==q<
3769696 5509 2a19 356a 5a36 6f41 444e 5354 6b2f  >.U.*j56ZAoNDTS/k<
3769712 4772 5330 4330 7363 415a 3d3d 0a71 1955  >rG0S0CcsZA==q.U.<
3769728 6a2a 3647 3263 7848 4251 734c 4a6b 3153  >*jG6c2HxQBLskJS1<
3769744 7730 6c61 6e4f 3d77 713d 550b 2a19 5773  >0walOnw==

Re: [Zope] Products, ZClasses and CatalogAware-ness

2000-11-09 Thread Andy McKay

[..]

> Hi,
>
> Could someone clarify the following for me:
>
> I would like to create a Product that instantiates itself with a ZCatalog
> and a search interface "built-in". I'd like make all the Product's
> ZClasses update the catalog whenever they are changed.
>
> If I make all the classes catalog-aware and point them to the name of the
> "root" ZCatalog, will they (re)index the root catalog or a catalog local
> to the class itself?

They find the closest item called 'Catalog', which may be the root if there
is no other item "closer".

> If the latter, can I force [it] to do the former?

Fiddle around with what Catalog is the closest.

--
  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] Newbie help - method needs auth > anonymous. WHY?

2000-11-09 Thread Casey Duncan

John Wrote:
[snip]
> I am trying to use this method called objectList:
>
> 
>   
> 
>   
> 
>
> I've put it in the standard_html_header.
[snip]
> When I try looking at the root page (http://john:8080) I have to provide
authentication before the page will display.

What your method is doing, is stepping through every object at the root of
your Zope server. Not every object there is accessible by anonymous. Even in
a fresh Zope installation, Control_Panel is restricted to managers, so that
is the likely culprit.

To get around this problem, there is an argument for dtml-in called
"skip_unauthorized" which will automatically skip over any objects that the
current user is not authorized to access.

Changing your dtml-in statement to:


Will prevent this error. However, you will get every little object in your
root directory. So, standard_html_header, index_html, standard_html_footer,
etc. will appear. If you want to exclude these, specify just the meta types
you want to objectValues. For instance, to show only folders try this:



To show folders and DTML documents, try this:


etc., etc.

hth,
Casey D.


___
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] tags, dtml-vars and css

2000-11-09 Thread Farrell, Troy

I must be ignoramus, but I can't figure out modify  tags as generated
by a image object.  I have this:
I use  to add an image object to a dtml
document.
How can I add a STYLE="color:silver;" or any other tag the HTML source?

Troy Farrell
Video Operations Technician III
Williams VYVX Services
918.573.3029
918.573.1441 fax
mailto:[EMAIL PROTECTED]
http://www.williams.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] AW: [Zope] Wampum Generator

2000-11-09 Thread Patrick Koetter

Hi Kathy,

open a command shell, change to the dir, where the wampum file resides.
Enter 'dir' and you'll probably find out that the file ends with the
extension '???.tar'.
copy the file from '???.tar' to '???.tar.gz'.
Then try to open the copied file with WinZip.

p@rick


> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von
> Kathy Hester
> Gesendet: Mittwoch, 8. November 2000 22:52
> An: [EMAIL PROTECTED]
> Betreff: [Zope] Wampum Generator
>
>
> 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 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] Products, ZClasses and CatalogAware-ness

2000-11-09 Thread Aaron Straup Cope

Hi,

Could someone clarify the following for me:

I would like to create a Product that instantiates itself with a ZCatalog
and a search interface "built-in". I'd like make all the Product's
ZClasses update the catalog whenever they are changed. 

If I make all the classes catalog-aware and point them to the name of the
"root" ZCatalog, will they (re)index the root catalog or a catalog local
to the class itself? If the latter, can I force [it] to do the former?

Thanks,

+ Product 
  + ZClass 
  + ZClass 
  + ZCatalog 
- search/index_html 
- results
  + ...


___
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] zlib.error : huh?

2000-11-09 Thread Aaron Straup Cope

Oh yeah, cookies. Okay.

Is there a workaround/Product that solves this problem? If it's just
a cookie thing, I don't know what it would be but I figure it doesn't hurt
to ask.

On Thu, 9 Nov 2000, Shane Hathaway wrote:

> Aaron Straup Cope wrote:
> > 
> > I am trying to understand what exactly is going on when Zope returns an
> > Error -5 page.
> > 
> > Normally, this only happens on the left hand navigational menu but today
> > it happened while I was expanding an xml document/tree object from the
> > Examples package for the XML Document product.
> > 
> > I've tried searching Google, the Zope site and the mailing list but to no
> > avail. Could someone please explain what's going on here? Is it me? Is it
> > Zope? How exactly do I prevent these errors from happening?
> 
> Here's my guess: you have a complex XML document.  As you explore the
> document, Zope is setting a cookie that reflects the list of branches
> you have opened.  After opening a large number of branches, you reach
> the limit on the size of a cookie (somewhere in the range of 1024 or
> 4096 bytes), making it so that the compressed data stored in the cookie
> gets truncated.  zlib then emits this cryptic error message.
> 
> Shane
> 
> > 
> > Thanks,
> > 
> > Error Type: zlib.error
> > Error Value: Error -5 while decompressing data: []
> > 
> > Traceback (innermost last):
> >   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in
> > publish_module
> >   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in
> > publish
> >   File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in
> > zpublisher_exception_hook
> > (Object: Traversable)
> >   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in
> > publish
> >   File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in
> > mapply
> > (Object: tree)
> >   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in
> > call_object
> > (Object: tree)
> >   File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in
> > __call__
> > (Object: tree)
> >   File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line
> > 528, in __call__
> > (Object: tree)
> >   File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 154, in
> > render
> > (Object: test[0])
> >   File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 229, in
> > tpRender
> > (Object: Manageable)
> >   File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 637, in
> > decode_seq
> > zlib.error: (see above)
> > 
> > ___
> > 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 Range Weirdness

2000-11-09 Thread Jeff Hoffman

Hello,

We have an interesting situation, here, and I can't seem to put my finger
on what's going on.

Let's say I have two different classes of objects being cataloged. The
first class, Class A, has a floating point attribute myFloat. The second
class, Class B, does not. 'myFloat' is an index in the Catalog.

Let's say the makeup of class instances in the catalog is 50/50 Class A
and Class B:

  Instance1 (Class A): myFloat = 0.5
  Instance2 (Class B)
  Instance3 (Class A): myFloat = 0.65
  Instance4 (Class B)
  Instance5 (Class A): myFloat = 0.55
  Instance6 (Class B)

I queried the catalog with:

  Catalog(myFloat=0.0, myFloat_usage='range:min')

Expecting to get record objects representing:

  Instance1 (Class A): myFloat = 0.5
  Instance3 (Class A): myFloat = 0.65
  Instance5 (Class A): myFloat = 0.55

Since objects of Class B do not have myFloat, and would not be included in
the myFloat index. Instead, I get:

  Instance1 (Class A): myFloat = 0.5
  Instance2 (Class B)
  Instance3 (Class A): myFloat = 0.65
  Instance4 (Class B)
  Instance5 (Class A): myFloat = 0.55
  Instance6 (Class B)

In other words, I get all objects back, whether they have a myFloat
attribute or not. Interestingly, if I change the query to:

  Catalog(myFloat=0.5, myFloat_usage='range:min')

I get the expected results. Using 0.1, 0.2, 0.3, or 0.4 does not work; 0.5
seems to be the magic number, which I find curious given that 0.5 is the
minimum value present in any of the instances of Class A.

Can anyone shed some light on what's going on, here? How do I ask the
Catalog to return all instances who have a value, any value, for myFloat,
but none others?

Thanks in advance,

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




Re: [Zope] zlib.error : huh?

2000-11-09 Thread Shane Hathaway

Aaron Straup Cope wrote:
> 
> I am trying to understand what exactly is going on when Zope returns an
> Error -5 page.
> 
> Normally, this only happens on the left hand navigational menu but today
> it happened while I was expanding an xml document/tree object from the
> Examples package for the XML Document product.
> 
> I've tried searching Google, the Zope site and the mailing list but to no
> avail. Could someone please explain what's going on here? Is it me? Is it
> Zope? How exactly do I prevent these errors from happening?

Here's my guess: you have a complex XML document.  As you explore the
document, Zope is setting a cookie that reflects the list of branches
you have opened.  After opening a large number of branches, you reach
the limit on the size of a cookie (somewhere in the range of 1024 or
4096 bytes), making it so that the compressed data stored in the cookie
gets truncated.  zlib then emits this cryptic error message.

Shane

> 
> Thanks,
> 
> Error Type: zlib.error
> Error Value: Error -5 while decompressing data: []
> 
> Traceback (innermost last):
>   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in
> publish_module
>   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in
> publish
>   File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in
> zpublisher_exception_hook
> (Object: Traversable)
>   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in
> publish
>   File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in
> mapply
> (Object: tree)
>   File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in
> call_object
> (Object: tree)
>   File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in
> __call__
> (Object: tree)
>   File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line
> 528, in __call__
> (Object: tree)
>   File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 154, in
> render
> (Object: test[0])
>   File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 229, in
> tpRender
> (Object: Manageable)
>   File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 637, in
> decode_seq
> zlib.error: (see above)
> 
> ___
> 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] FW: [Zope] adding properties to all existing docs

2000-11-09 Thread michael angelo ruberto


However, I would not make such changes asynchronously.
I would use "ZopeFind" to locate all objects that need to
be updated and then do it.
Maybe, its a matter of personal taste ...


Dieter

this is an interesting idea. another thing i might try is running the script
from Xron and ZopeFinding the objects. in this way the task is completely
automated and will free me from having to run it whenever new objects are
added.

--


___
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] zlib.error : huh?

2000-11-09 Thread Aaron Straup Cope

I am trying to understand what exactly is going on when Zope returns an
Error -5 page.

Normally, this only happens on the left hand navigational menu but today
it happened while I was expanding an xml document/tree object from the  
Examples package for the XML Document product.

I've tried searching Google, the Zope site and the mailing list but to no
avail. Could someone please explain what's going on here? Is it me? Is it
Zope? How exactly do I prevent these errors from happening?

Thanks,

Error Type: zlib.error
Error Value: Error -5 while decompressing data: []

Traceback (innermost last):
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: tree)
  File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: tree)
  File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in
__call__
(Object: tree)
  File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line
528, in __call__
(Object: tree)
  File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 154, in
render
(Object: test[0])
  File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 229, in
tpRender
(Object: Manageable)
  File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 637, in
decode_seq
zlib.error: (see above)



___
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] security dilemma?

2000-11-09 Thread Zhen Zhou

please bear with my ignorance, because this is the first couple of day
I ever try Zope. It is super cool, but I should say that the
documentation is far from satisfaction.
Here is my problem:
The only API I can find to alter the properties of some object is
"manage_changeProperties". However, in order to execute this method in
my script, I have to give the "Manage properties" permission to
everyone, which may lead to severe security problems because the
method "manage_changeProperties" is web accessible, so a malicious
user can bypass my script and execute this method to change the
properties to whatever he want.
My questions are:
1, is there any API that can change properties of some object but can
not be accessed from the web?
2, is there any way to store a small piece of persistent data beside
using properties?

Thanx.
Derek



___
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-09 Thread Jeff Hoffman

On Thu, 9 Nov 2000, Evan Simpson wrote:

> From: Ron Bickers <[EMAIL PROTECTED]>
>
> > Since you would normally *say* just ZMethod, I like the suggestion of using
> > "Python ZMethod" and "Python ZMethod (Unrestricted)", vs. spelling out the
> > (Restricted) in the first one.
> 
> Good point.  I'll shop this around and see what folks here think.

FWIW, I concur.

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




Re: [Zope] ZMethod (Safe)

2000-11-09 Thread Evan Simpson

From: Ron Bickers <[EMAIL PROTECTED]>
> Since you would normally *say* just ZMethod, I like the suggestion of using
> "Python ZMethod" and "Python ZMethod (Unrestricted)", vs. spelling out the
> (Restricted) in the first one.

Good point.  I'll shop this around and see what folks here think.

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 )




Re: [Zope] Yihaw product Catalog error

2000-11-09 Thread Anders Eriksson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello peter,

Wednesday, November 08, 2000, 8:46:49 PM, you wrote:

pb> I have installed the Yihaw product, because I am going to use the
Contact
pb> class.
pb> I can add a contact, but after having done that and I click the
newly
pb> created Contact I get a NameError.

pb> Error Type: NameError
pb> Error Value: Catalog

Just a guess! You didn't create a ZCatalog named Catalog in the root.

- --
Best regards,
 Andersmailto:[EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: PGP 6.5i

iQA/AwUBOgrT1aTtRA/JSm7JEQJmLQCgu64yfkb1Ouj3MWtDQouPuF9S17EAoKSc
gBPBWB0Z2mBp/kuVTzt3Z2SU
=CIsL
-END PGP SIGNATURE-



___
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] Security and Acquisition

2000-11-09 Thread Morten W. Petersen

[Charlie Wilkinson]

| Greetings,

Hola!

| Now, referring to figure 1 (above :-), changes to security settings
| for the acl_test folder are having no effect on access to index_html.
| Only when I change the security settings on index_html itself, can I
| control access to it.

Can it have something to do with acquirement of permission settings?
(The leftmost column on the security tab).

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 )




RE: [Zope] ZMethod (Safe)

2000-11-09 Thread Ron Bickers


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Evan
> Simpson
> Sent: Wednesday, November 08, 2000 6:14 PM
> To: [EMAIL PROTECTED]
> Cc: Jason Cunliffe; Oliver Bleutgen; Chris Withers;
> [EMAIL PROTECTED]
> Subject: Re: [Zope] ZMethod (Safe)

> > Moreover, this also fails the concise/'easy to say' test that was
> > used to kick out several other meritorius naming suggestions.
> > Unrestricted Python ZMethod (8 syllables, 26 letters) is a
> > mouthful!
>
> True (although some of the alternatives base names were worse).
> Considering that there aren't (yet)
> other language variants, and that I would usually use the
> restricted kind, I would normally just say
> "ZMethod".  Only if there were some potential confusion would I
> say "Unrestricted zmethod", or the
> full title.

Since you would normally *say* just ZMethod, I like the suggestion of using
"Python ZMethod" and "Python ZMethod (Unrestricted)", vs. spelling out the
(Restricted) in the first one.  After all, are we going to have a "DTML
ZMethod (Restricted)", or a "SQL ZMethod (Restricted)"?  It make sense to
keep the "normal" (restricted) methods, that will/should be used more often
than not, labeled as plainly as possible.  The unrestricted version could be
the exception and labeled as such.

For example, if we do decide to create an unrestricted DTML method, it would
seem unnecessary to rename DTML ZMethod to include the restricted label.

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


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




Re: [Zope] products e windows98

2000-11-09 Thread Andy McKay

Try renaming the file to end with .tar.gz
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Marco Gianfreda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 09, 2000 2:52 AM
Subject: [Zope] products e windows98


> Hi, i'm windows 98 SO and i'm must install the new products
(PythonMethod),
> my problem is that with winzip the file .zar, don't scompact... thisi is
> the big problem o no !!!???
>
> I'm install the tutorial products how are do install this products...
>
> 
> Marco Gianfreda
> http://www.collepasso.it
> ICQ: 30953752
>
>
> ___
> 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] Security and Acquistition Problem

2000-11-09 Thread Jeff Hoffman

On Thu, 9 Nov 2000, Charlie Wilkinson wrote:

> / (Root Folder)
>   / acl_test (ACL Test Folder)
>   acl_users (User Folder)
>   index_html (Test Document)
> 
> Now, referring to figure 1, changes to security settings for the acl_test
> folder are having no effect on access to index_html.  Only when I change
> the security settings on index_html itself, can I control access to it.
> 
> So what this boils down to is that as of v2.2.whatever, an acl_users
> folder apparently does not protect the folder it's in (parent folder),
> but only it's sibling objects and below.  Meaning that instead of setting
> permissions on the parent object and being done with it, one now has to
> set permissions for each sibling.  In my case that's 50 or more objects
> and I'm not done coding yet.  Ouch!  This *can't* be right, can it?
> I know there's a lot that's happened with the security model, so I'm
> really *really* hoping this is just a bug that's crept in.

This is the way Zope has always behaved, unless my memory is failing me.
Here's a thought to consider: In your model, the root acl_users would have
to appear _above_ the root folder (/) in the hierarchy for things to
function correctly. As it stands, acl_users in the root folder affects all
things in the root folder and below. As it stands, your acl_users (in
acl_test) affects all things in your acl_test folder and below. This is
consistent.

If you have 50 or so objects, and setting permissions is the obstacle,
simply write a Python Method (or DTML, if you prefer) to iterate over the
50 and tweak them. Then, you won't have to manually do the work through
the management interface.

> Thanks for any clues,

Hope this helps,

>   Charlie

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




Re: [Zope] Is data.fs corrupted?

2000-11-09 Thread seb bacon

* Stephan Goeldi <[EMAIL PROTECTED]> [001109 13:30]:
> I just asked the question lately, if it is safe to simply delete a Product 
> in the lib/python/Product folder, if it is not deletable via the 
> Control_Panel. Some told me that it is no problem. Now I am more unsure to 
> delete the stuff.

for products that are not ZClass-based, the correct way to remove them
is to delete their folder in lib/python/Products.

seb.

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




Re: [Zope] zope.org down from Thu Nov 9 12:00:00 GMT 2000 to present?searchable list archive not linked to from mailman page; console-based zope development. list archive not linked to from mailman page; console-based zope development.

2000-11-09 Thread Christian Scholz

Hi!

> * Colin Leath <[EMAIL PROTECTED]> [001109 14:00]:
> > I'm trying to figure out ways of managing/developing with Zope from a
> > unix console, using text editors, text browsers and so on.
> 
> I often work from emacs, accessing the ZODB through the Zope FTP Server
> on port 8021.  The syntax for ange-ftp is
>   /user@localhost 8021:/your/zope/object
> (you can get the space with C-q )

There is also ZopeShell:

http://www.zope.org/Members/sf/zopeshell

and e.g. Cadaver if you want to use filetransfer via webdav (but lost
the url unfortunately, but from webdav.org you should be able to find it).

My problem though with all these things is that the file you edit is not 
automatically uploaded when you save it. Usually you always have to quit
the editor and do an ftp upload yourself as the ftp (or ZopeShell) always
work on a local copy of the file and do not notice if you save it (well, how
should they do it anyway ;-))
So some sort of ftp filesystem would be nice to have :)

cheers
  Christian


___
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] Security and Acquisition

2000-11-09 Thread Charlie Wilkinson

Greetings,
I know this a very busy list, but I'm hoping someone can take a moment to
address this.  I had posted about this on Zope-dev because I'm running the
CVS version, but no response.  Also more research has yielded more info.
I first discovered this issue with LoginManager, but the same problem
occurs with standard acl_users too.

First, 'Figure 1:'

/ (Root Folder)
/ acl_test (ACL Test Folder)
acl_users (User Folder)
index_html (Test Document)

Now, referring to figure 1 (above :-), changes to security settings
for the acl_test folder are having no effect on access to index_html.
Only when I change the security settings on index_html itself, can I
control access to it.

So what this seemingly boils down to is that as of v2.2.whatever,
an acl_users folder does not protect its siblings and their kids by
acquisition of security settings from the parent folder.  Instead,
sibling objects must have their security explicitly set.  Meaning that
instead of setting permissions on the parent object and being done
with it, one now has to set permissions for each and every sibling.
In my case that's over 50 objects and I'm not done coding yet.  Ouch!
This *can't* be right, can it?

Thanks for any clues,
Charlie

-- 
~
Charlie Wilkinson - [EMAIL PROTECTED] - N3HAZ
Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer...
Visit the Radio For Peace International Website: http://www.rfpi.org/
~
CLOBBER INTERNET SPAM:  See!! 
   Join!! 
~
QOTD:
"Bush is a big corporation disguised as a human being running for president."
-- Ralph Nader on David Letterman (9/28/00)
-- 
~
Charlie Wilkinson - [EMAIL PROTECTED] - N3HAZ
Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer...
Visit the Radio For Peace International Website: http://www.rfpi.org/
~
CLOBBER INTERNET SPAM:  See!! 
   Join!! 
~
QOTD:
"Bush is a big corporation disguised as a human being running for president."
-- Ralph Nader on David Letterman (9/28/00)

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




Re: [Zope] newbie question

2000-11-09 Thread seb bacon

* Stephan Goeldi <[EMAIL PROTECTED]> [001109 16:49]:
> 
>
>   This is not much!
>
>
>   This is ok!
>
>
>   This is very much!
>
> 
> 
> I am sure that there is an error in my thinking of these tags.

yup :)

try

  
This is not much
  
This is OK
  
This is very much
  
   This is not 1000, 5000, or 1
  

the  tag iterates over a list, which isn't appropriate here.

seb

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




Re: [Zope] newbie question

2000-11-09 Thread Christian Scholz

HI!

> I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After 
> this, the form action method should reply:
> 
> - "this is not much" if 1000 was selected,
> - "this is ok" if 5000 was selected,
> - "this is very much" if 1 was selected
> 
> Now my form method looks like this:
> 
> 
> How many money?
> 
> 1000
> 5000
> 1
> 
> 
> 
> 
> and the form_action method is this:
> 
> 
>
>   This is not much!
>
>
>   This is ok!
>
>
>   This is very much!
>
> 
> 
> I am sure that there is an error in my thinking of these tags.

The  is not right. Use dtml-in if you want to iterate over
lists. So in your case you should try:



This is not much!


This is ok!


This is very much!


(or use  in this case)

This now makes a string compare as usually form parameters will be passed
as strings if you don't tell Zope to do it different. In order to e.g. let
it pass integers, you might try in the form:


...

Then you can say , etc.

More information about this "type casting" feature can be found at

http://classic.zope.org:8080/Documentation/Reference/ORB

cheers,
  Christian

-- 
COM.lounge  http://comlounge.net/
communication & design   [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] logging for virtual hosts

2000-11-09 Thread zope

We are using SiteAccess to have multiple virtual hosts on one Zope
Server. We would like to provide our customers with stats reports
based on the zope log. But entries in the log don't contain any
distinguishing information about the virtual host to which the entry
applies. Short of hacking zope, is there a way to modify our zope
environment to to have the requested hostname included in the log
entry?

We know that we can use PCGI thru apache and have apache do the
logging. But I'm hoping to avoid that.

___
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: Wampum Generator (tar in WinZip)

2000-11-09 Thread Harris Peter

Hi
Just want to mention one pitfall in WinZip - by default it CR/LFs
all files
extracted from a tar archive (unless you turn that option off).
Note that
the option is NOT on the "extract files" dialog. 

It hosed 150Mb of .deb files today - and I didn't realise until I
had
burned them onto a CD.  I couldn't believe that was what it was
doing at
first. "Nah", I thought, "how would it know which files were
binaries?"
Turns out it doesn't know. It doesn't care either.

In case you want to avoid this happening to you, note that
PowerArchiver
is more or less like WinZip but it can handle bzip2 as well, and
it's FREE.

Peter





This message and any files transmitted with it are confidential.  
The contents may not be disclosed or used by anyone other 
than the addressee. 
If you have received this communication in error, please delete 
the message and notify JBB (Greater Europe) Plc immediately 
on 0141-249-6285.

The views expressed in this email are not necessarily the views 
of JBB (Greater Europe) PLC.  
 As it has been transmitted over a public network, 
JBB (Greater Europe) PLC makes no representation nor accepts 
any liability for the email's accuracy or completeness unless 
expressly stated to the contrary.

Should you, as the intended recipient, suspect that the message 
has been intercepted or amended, please notify 
JBB (Greater Europe) Plc immediately on 0141-249-6285.



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




Re: [Zope] Re: [Image-SIG] Properly integrating PIL, reportlab, and zope

2000-11-09 Thread ed colmar


Ahha!

To force zope (and reportlab) to use a different working directory, use:

import os
os.chdir('/usr/local/zope/differentdir/')

still this is a pretty big workaround, but hey...  It works!

-e-


> Hello ed,
>
> If you figure this out let me know. We tried several times and were
> unsuccessful. we only have two files (logos) so it wasn't worth fighting
> with.
>
> thanks,
>
> Dan
>
>
> ed colmar wrote:
> >
> > Thanks for the help everyone!
> >
> > I'm a few steps closer to solving this one.  What I'm doing is pretty
much a
> > workaround, since I can't figure out how to pass a image file directly
from
> > within the zodb.  I have created a seperate field that gets passed to a
> > localFS directory.
> >
> > Right now, I just need to refrence a file that is somewhere other than
the
> > /usr/local/zope directory.
> >
> > I've been trying:
> > c.drawInlineImage(str('/home/zope/uploadedimages/' + filename), .5*inch,
> > 10.*inch,4*inch)
> >
> > for some reason it can't find a file anywhere other than the base
directory
> > in zope.  I cannot use this directory because it will serve as a
collection
> > of image files.
> >
> > Any ideas how to force it to look somewhere else for this file?
> >
> > Thanks again!
> >
> > -e-
> >
> > - Original Message -
> > From: "Daniel Rusch" <[EMAIL PROTECTED]>
> > > I have no idea if this will help you. We use PIL, reportlabs and zope
to
> > > create P.O.'s, to place a logo on the page we use the following line
of
> > > code:
> > >
> > > c.drawInlineImage("gclogo_color.gif", .5*inch, 10.*inch,4*inch)
> > >
> >
> > ___
> > 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] newbie question

2000-11-09 Thread Paul Zwarts

Another thing you can do, not sure if Im using it right, but the effect is
good...

   
  
You must specify a First Name.


  
  
  
   

I have a support call form that is filed and submitted, and after the button
is pressed, a seperate validate method is called (can be in any document)
which will stop the processing if something isnt there and will show a red
error text at the top of the form that still contains the information.]

Its nice becuase the info stays there and doesnt take you off to a blank
screen with a few words.



--
Paz
Oratrix Development BV
http://www.oratrix.com
GRiNS SMIL Editor
-


Stephan Goeldi wrote:

> I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After
> this, the form action method should reply:
>
> - "this is not much" if 1000 was selected,
> - "this is ok" if 5000 was selected,
> - "this is very much" if 1 was selected
>
> Now my form method looks like this:
>
> 
> How many money?
> 
> 1000
> 5000
> 1
> 
> 
> 
>
> and the form_action method is this:
>
> 
>
>   This is not much!
>
>
>   This is ok!
>
>
>   This is very much!
>
> 
>
> I am sure that there is an error in my thinking of these tags.
>
> 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 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] Security and Acquistition Problem

2000-11-09 Thread Charlie Wilkinson

Greetings,
I had posted about this on Zope-dev because I'm running the CVS version,
but no response there.  Also more research has yielded more info.
I first discovered this issue with LoginManager, but the same problem
occurs with standard acl_users too.

First, 'Figure 1:'

/ (Root Folder)
/ acl_test (ACL Test Folder)
acl_users (User Folder)
index_html (Test Document)

Now, referring to figure 1, changes to security settings for the acl_test
folder are having no effect on access to index_html.  Only when I change
the security settings on index_html itself, can I control access to it.

So what this boils down to is that as of v2.2.whatever, an acl_users
folder apparently does not protect the folder it's in (parent folder),
but only it's sibling objects and below.  Meaning that instead of setting
permissions on the parent object and being done with it, one now has to
set permissions for each sibling.  In my case that's 50 or more objects
and I'm not done coding yet.  Ouch!  This *can't* be right, can it?
I know there's a lot that's happened with the security model, so I'm
really *really* hoping this is just a bug that's crept in.

Thanks for any clues,
Charlie

-- 
~
Charlie Wilkinson - [EMAIL PROTECTED] - N3HAZ
Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer...
Visit the Radio For Peace International Website: http://www.rfpi.org/
~
CLOBBER INTERNET SPAM:  See!! 
   Join!! 
~
QOTD:
"Bush is a big corporation disguised as a human being running for president."
-- Ralph Nader on David Letterman (9/28/00)

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




RE: [Zope] newbie question

2000-11-09 Thread hohage

Hallo Stephan
you can't iterate over a string!
That's working:

 This is not much!
 
 This is ok!
 
 This is very much!
 





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




Re: [Zope] newbie question

2000-11-09 Thread Geir Bækholt


possibly not the cleanest way of doing it, but this ought to do what
you want..


1000
5000
.. etc..

and


 This is not much!

 This is ok!



--
Geir Bækholt
web-developer/designer
[EMAIL PROTECTED]
http://www.funcom.com


on Thursday, November 09, 2000 Stephan Goeldi wrote :
SG> I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After 
SG> this, the form action method should reply:

SG> - "this is not much" if 1000 was selected,
SG> - "this is ok" if 5000 was selected,
SG> - "this is very much" if 1 was selected

SG> Now my form method looks like this:

SG> 
SG> How many money?
SG> 
SG> 1000
SG> 5000
SG> 1
SG> 
SG> 
SG> 

SG> and the form_action method is this:

SG> 
SG>
SG>   This is not much!
SG>
SG>
SG>   This is ok!
SG>
SG>
SG>   This is very much!
SG>
SG> 

SG> I am sure that there is an error in my thinking of these tags.

SG> TIA
SG> -goe-

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

SG> Share information about yourself, create your own public profile at 
SG> http://profiles.msn.com.


SG> ___
SG> Zope maillist  -  [EMAIL PROTECTED]
SG> http://lists.zope.org/mailman/listinfo/zope
SG> **   No cross posts or HTML encoding!  **
SG> (Related lists - 
SG>  http://lists.zope.org/mailman/listinfo/zope-announce
SG>  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] Uploading textfiles into Zope using LoadSite

2000-11-09 Thread Jean Jordaan

Hi Vimmers

I'd like to do a show-and-tell about how I

- uploaded a bunch of textfiles into Zope (by making use of
  'load_site.py')

- and turned them into ZClasses (using a DTML method).

This is not a flashy "here's how to do it" piece -- it's really a
request for advice on how to do things better, and a step-by-step from a
relative beginner, for other relative beginners.

OK, to business. I used 'loadsite-1.4.0-test.tgz'. From the README::

LoadSite version 1.3
Based on load_site.py from Digital Creations

Modified by Oleg Broytmann <[EMAIL PROTECTED]>
Modified by Itamar Shtull-Trauring <[EMAIL PROTECTED]>
wxLoadSite uses code written by Amos Latteier, and uses Fredrik
Lundh's xmlrpclib.

(Is there a newer version available?).

I started from a flattext database, with a structure like:


ID|penname|pensurname|notes|title|vol|nr|year|printed|text|name|surname|date
|nick|email

That is: 15 fields, pipe-delimited, containing different kinds of data
(strings, multiline text, dates, email, ...). Here is a shortened sample
record:

66|Zandra|Bezuidenhout||A room of my ownNee|A room of my own~nl~-
garden view,~nl~computer -,|||1998/7/23|zandra|[EMAIL PROTECTED]

I wanted to get the individual fields into Zope: for example, as
properties of the DTML Documents that LoadSite creates. To do this, I
had to hack on LoadSite slightly. I noticed that it found the body
attributes and aggregated all of them into one property (in
'htmlutils.py'). I guessed that I could import these attributes as
properties. To do so, I made the following changes to 'htmlutils.py'.
Originally::

*** 95,98 
if not self.seen_startbody:
self.seen_startbody = 1
self.accumulator = ""
self.bodyattribs = join_attrs(attrs)

I changed this as follows::

--- 95,99 
if not self.seen_startbody:
self.seen_startbody = 1
self.accumulator = ""
# njj: self.bodyattribs = join_attrs(attrs)
self.bodyattribs = attrs

This way, bodyattribs is not changed into a string like 'name="value"
[...]', but remains a dictionary { penname:Zandra,
pensurname:Bezuidenhout }. Then I had to change how they were fed
into Zope. To do this, I changed 'Uploader.py' from::

*** 113,115 
  if bodyattribs:
self.call(object.manage_addProperty,
 id="loadsite_bodyattribs", type="string",
value=bodyattribs)

To::

--- 113,128 
  if bodyattribs:
  # njj: start
  for attrname, attrvalue in bodyattribs:
  if attrname == 'text' or attrname == 'notes':
  self.call(object.manage_addProperty,
  id=attrname, type="text", value=attrvalue)
  elif attrname == 'date':
  self.call(object.manage_addProperty,
  id=attrname, type="date", value=attrvalue)
  else:
  self.call(object.manage_addProperty,
  id=attrname, type="string", value=attrvalue)
  # njj: end

# njj: self.call(object.manage_addProperty,
# njj: id="loadsite_bodyattribs", type="string",
value=bodyattribs)

This works :)  Unfortunately, it's a hardcoded hack that will only work
for this particular database. To be useful, you should be able to tell
LoadSite to snarf the attributes of  tags as properties, paying
attention to the ':type' convention of indicating the format of data.
But I don't understand sgmllib well enough to do that ..

I ran the flattext database through a pre-processor
('http://www.htmlpp.org', for the curious) to get files (named '1.html'
and so on) that look like this::


A room of my own -- Zandra Bezuidenhout




When uploaded by LoadSite, this creates DTML Documents with 15
properties each. Now to get them into ZClasses. Here is the DTML Method
that does this::


  
  
















  
  


  

  

  
  


  

  

  

  


It iterates over all the DTML Documents in the 'DTML_texts' folder,
and creates a 'ZClass_texts' folder inside it. If no folder 'nick'
exists, it creates one; and inside the 'nick' folder, it creates
'Text' ZClasses named '1', '2' and so on (discarding the '.html' bit).
In this way, each author's texts are collected in their own folder as
ZClasses. Nice!

The author folders will probably become ZClasses subclassing 'ZClasses:
ObjectManager'.

TODO: for each author, a user with default password should be created.
An 

Re: [Zope] PHP/Zope Guru

2000-11-09 Thread andres

Another alternative is to create an unholy marriage of the two! See my HOWTO
on Serving PHP from Zope at:

http://www.zope.org/Members/Mamey/PHP

On Wed, Nov 08, 2000 at 09:25:22PM +0100, Vincent - D. Ertner wrote:

> 
> 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.
> 

--
Andres Corrada-Emmanuel   Email: [EMAIL PROTECTED]
Mamey - Internet Programming  www.mamey.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] Is data.fs corrupted?

2000-11-09 Thread Chris McDonough



> Could I just butt in here and try and clarify what I've understood from
> this thread so far?  I'm feeling a bit dumb about it but I'd really like
> to sort it out.
>
> 1) This problem is definitely a programming error

I believe that, yes.

> 2) It arises when a product has a component which isn't 'registered' as
> a zope object, so it's not cleaned up when the product is deleted
>
> Is that right?  What would 'registered as a zope object' mean in this
> situation?  Are there any other circumstances under which you end up
> with orphaned instances?  *how can it be fixed?*

Zope objects basically need to inherit from OFS.SimpleItem (or an analogue)
for them to be "web manageable".  If a non-builtin Python object inherits
only from the "Persistent" class, it can be saved into the ZODB, but it will
not show up in the web interface unless you define certain methods on it to
make it act like a "SimpleItem", and unless you add it to some internal Zope
data structures that populate its ZODB container (such as the
ObjectManager's "_objects" list).  This is generally done for you by Zope
and you need not think about it.

But problems may happen when an application places instances into the ZODB
of non-web-manageable, non-builtin objects as attributes of normal Zope
objects.  If these instances aren't cleaned up in the process of the
deletion of whatever bit of Python code created them, they're "orphaned".
When they're orphaned, some application code may attempt to initialize the
object's instance (for whatever reason) in order to make use of them, and
because the ZODB can't find the class of the instance, it complains.  It
complains by raising an exception.  Zope's supposed to catch this and do the
right thing, but it evidently doesn't sometimes.

You can "fix it" by restoring whatever class the instance depends on and
subsequently use the debugger to delete the instance from the ZODB.  But
I've had it happen to me where it was just easier to truncate the
FileStorage I was working on than figure out exactly what was going on.
This is bad.

> What I really don't understand is why seemingly unrelated products fail
> as a result of the orphan instances.

Neither do I completely.  This may be bad exception handling in Zope itself.
When a Product is initialized, sometimes you'll see the failure of one
Product initialization break others.  Usually, it's the case that these
Products *are* related in some way.  It'd be interesting to investigate some
of these failures where the failure to load an object seems to break other
"unrelated" objects.  I'd imagine we'd find an unobvious relation between
the two objects.

> Is is because new products are
> trying to get an oid which happens to be used by the orphan?

No... the ZODB manages the distribution of oids, Products never need worry
about them.

> If so, I don't think it's really so wrong to call this ZODB corruption,
> although I take your point about the ZODB being stable.  In your perl
> analogy, it's as if you are using two tables to create a parent / child
> , one to many relationship.  You then deleted a parent row but forgot to
> delete the corresponding child rows.  You data is now corrupted.
> True to your analogy, this arises in sloppy programming,
> not in Oracle or whatever.  However, when you create the tables in
> Oracle, you can place constraints on the tables so enforce the integrity
> of your data, to protect against this kind of programming.  In a similar
> way, I think it's too easy to end up with corrupted data in the ZODB.
> Or perhaps I'm just particularly unlucky in the products I choose to
> use?

I think it's safe to say that you probably need to pay more attention when
writing ZODB-based apps because you don't have things like constraints to
prevent you from shooting yourself in the feet with both barrels.  :-)  That
said, it'd probably be more accurate to call the result of this family of
errors "Zope corruption" than "ZODB corruption".  Again, I don't disagree
that this distinction is really superpedantic on some level.  It would
appear that we need to work on Zope exception handling as well as tools to
detect and delete orphaned instances.  But we probably do not need to work
on "making ZODB more stable" (don't kill the messenger! :-)

> cheers,
>
> seb
>
> >
> > 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

[Zope] newbie question

2000-11-09 Thread Stephan Goeldi

I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After 
this, the form action method should reply:

- "this is not much" if 1000 was selected,
- "this is ok" if 5000 was selected,
- "this is very much" if 1 was selected

Now my form method looks like this:


How many money?

1000
5000
1




and the form_action method is this:


   
  This is not much!
   
   
  This is ok!
   
   
  This is very much!
   


I am sure that there is an error in my thinking of these tags.

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 )




Re: [Zope] zope.org down from Thu Nov 9 12:00:00 GMT 2000 to present?searchable list archive not linked to from mailman page; console-based zope development. list archive not linked to from mailman page; console-based zope development.

2000-11-09 Thread seb bacon

* Colin Leath <[EMAIL PROTECTED]> [001109 14:00]:
> I'm trying to figure out ways of managing/developing with Zope from a
> unix console, using text editors, text browsers and so on.

I often work from emacs, accessing the ZODB through the Zope FTP Server
on port 8021.  The syntax for ange-ftp is
  /user@localhost 8021:/your/zope/object
(you can get the space with C-q )

seb

___
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: [Support] Problems using the Sybase da with zope

2000-11-09 Thread Chris McDonough

Did you compile the sy_occ module?  Can you import that module and do things
with it from Python as noted in the docs?

(BTW, I moved this to the Zope mail list...)

- Original Message -
From: "Hans-Christian Prytz" <[EMAIL PROTECTED]>
To: "DC Support List" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, November 09, 2000 4:18 AM
Subject: [Support] Problems using the Sybase da with zope


> Hi, I'm trying to use the SybaseDA module for zope, but I'm having
> some problems I cant seem to figure out from the documentation.
> It compiles file, but I can't seem to get it to import into zop (or
> python for that matter) The logs from zope only says: Zope[7257]:
> Couldn't import Products.SybaseDAv2.
>
> Any suggestions?
>
>
> --
> Hans-Christian Prytz
> [EMAIL PROTECTED]
> "Harmless is something/a little knowlege is not"
>   Rainmakers
>


___
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-09 Thread Stephan Goeldi

I just asked the question lately, if it is safe to simply delete a Product 
in the lib/python/Product folder, if it is not deletable via the 
Control_Panel. Some told me that it is no problem. Now I am more unsure to 
delete the stuff.

_
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] zope.org down from Thu Nov 9 12:00:00 GMT 2000 to present?searchablelist archive not linked to from mailman page; console-based zope development.list archive not linked to from mailman page; console-based zope development.

2000-11-09 Thread Colin Leath

For the past hour and a half I have only once been able to get through to
zope.org. 
lists.zope.org/mailman/listinfo is accessible, however.
A zope.org-status mailing list might be helpful, like the egroups-status
list, since Zope work is so dependent on the site.

I've been trying to read product descriptions. Is that information
available anywhere else?

Second, I thought there was a searchable archive of the zope mailing
lists. I just found it in my
bookmarks: http://zope.nipltd.com/public/lists.html
but I was not able to find this link on the lists.zope.org url referenced
in the mailing list digests... the list manager might want to change that.

Third,
I'm trying to figure out ways of managing/developing with Zope from a
unix console, using text editors, text browsers and so on.
I have no doubt that others would rather not have to use a mouse and GUI
to work with Zope.
I have already found http://www.zope.org/Members/sf/zopeshell
But it says it does not work for 2.2

Could someone please point me to documentation about console-based zope
management? If it's easy to find on the zope site, I will find it when I
can get through again.

thanks,
Colin


___
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] ID = "somebody@someserver.com"... ?

2000-11-09 Thread Erik Enge

On Thu, 9 Nov 2000, Thomas Søndergaard wrote:

> I am sorry about me being a newbie but can somebody help me with an 
> Email@dress as an ID?

I'm not sure I understand your problem, but couldn't you either use
string.replace() or ?  


___
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 offering - England

2000-11-09 Thread Erik Enge


Zopistas, wanna get paid?  :)

Zope/Python programmer wanted to work with one of our clients in
England.  

A team from Thingamy (http://www.thingamy.com>) have for some
months now been developing a Zope application for a client in
England.  The client's main work is resourcing (ie. matching candidates
and clients and typing up contracts). 

Our client has, of course, got access to the source code - and thus they
want to continue developing the application after they recieve it from
us. We need a person that can travel to their offices once a week, and
spend approximately 2 days a week continuing development of the
application (the amount of work depends highly on what our client wants
done).

The application is written in Python, the interface is in XHTML 1.0
STRICT.  You should be an experienced Python programmer, and should have
spent your time in the Zope source code :-).

I will take you through the source code, and will also be your contact
person when questions about the source code, class structure or anything
of that sort arrises.  It would be desirable if you could overlap with us
(ie. start coding one month before we stop, so there would be some feeling
of consitency - and it would also give you a great opporunity to ask
(nearly) all questions).

* Start date: within 2 months (room for discussion).
* Salary: up for discussion.

If this sounds interesting (or if you want to ask questions) please email
me.  (Please note that this is not a fulltime job, so it would be
benefitial if you lived near their offices and had access to other work
aswell.  Their offices are 40 minutes by train from Waterloo station.)

Thanks :)


___
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-09 Thread Stefan H. Holek

On Wed, 8 Nov 2000, Evan Simpson wrote:

> 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


Enough! 
Imagine you actually and really do change the name of Python Method or
much worse the names of all XY Methods. Would that automatically change
all the Guides, How-Tos, Tips, Books, Emails, Articles, Sourcecode and
whatever it is we call Documentation? No it would not!

I herewith predict that changing the method names will add a layer of
confusion Zope just does not need.

My 0.02,
Stefan


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




Re: [Zope] RE: Wampum Generator

2000-11-09 Thread Oliver Bleutgen

> It's a Winzip thing. I'll bet wampum generator is a .tar file, just rename
> it to a .tgz file and  it should open just fine.

Just some thoughts/guesses:

I'll bet Kathy uses Internet Explorer. Don't know about Netscape, but
it becomes more and more difficult to get IE _not_ to try to be "smart"
about any file you download. In this case I think there's some kind of 
transparent mechanism which kicks in and tries to transparently decompress
files of type  application/x-tar. 
Guess it's a helper for compressed vrml .wrl.gz (or similar) files.
In this case renaming to .tgz works, but I think I saw the same mess the 
other way around when IE didn't remove the .gz suffix but nonetheless
transparently decompressed the file.

These things are extremely annoying when dealing with relativly 
unexperienced clients who, say, just want to _download_ an .avi
file with a left-klick. MS has implemented a lot of magic there, 
AFAIK IE even tries to guess the filetype by its content in some 
cases and then ignores each and every http-header which might 
suggest otherwise.

Adding "Content-Disposition: attachment" as a http-header seems to help
(for the .avi case).

cheers,
oliver








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




[Zope] products e windows98

2000-11-09 Thread Marco Gianfreda

Hi, i'm windows 98 SO and i'm must install the new products (PythonMethod), 
my problem is that with winzip the file .zar, don't scompact... thisi is 
the big problem o no !!!???

I'm install the tutorial products how are do install this products...


Marco Gianfreda
http://www.collepasso.it
ICQ: 30953752


___
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] ID = "somebody@someserver.com"... ?

2000-11-09 Thread Thomas Søndergaard

I am sorry about me being a newbie but can somebody help me with an 
Email@dress as an ID?

I Have tried all kinds of things but none of them worked.

I know that I must use url_quote, but how do I do that...?

This kind of explains it:
**
The add form looks like this
**

Add Job Board Entry


FirstName(s)


SurName


Email Adress











**
And the Processor looks like this
**









Thank you for your entry


**
You see, I need to make "[EMAIL PROTECTED]" into 
"somebody_somewher.com" or somethiong like that But how

Hope to get a quick answer Stoons = )
_
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] Cloning a ZClass-Instance

2000-11-09 Thread Chris Withers

Dieter Maurer wrote:
> 
> 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.

What product is being used to create these news items?

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] Re: Yihaw product Catalog error [Errata]

2000-11-09 Thread peter bengtson

I was a fool not to see that. Tired I guess.

The link to the README was though somewhat hidden under "Release
Information".

Sorry for the spamming Zopistas.

- Original Message -
From: "Søren Roug" <[EMAIL PROTECTED]>
To: "'peter bengtson'" <[EMAIL PROTECTED]>
Sent: Thursday, November 09, 2000 9:59 AM
Subject: RE: Yihaw product Catalog error


> You must have a Z Catalog object in the top folder with the name
"Catalog".
> It's clearly spelled out in the README.
>
> || -Original Message-
> || From: peter bengtson [mailto:[EMAIL PROTECTED]]
> || Sent: Wednesday, November 08, 2000 20:47
> || To: [EMAIL PROTECTED]
> || Cc: [EMAIL PROTECTED]
> || Subject: Yihaw product Catalog error
> ||
> ||
> || I have installed the Yihaw product, because I am going to
> || use the Contact
> || class.
> || The changes I have made to the ZClass are minor. I have only
> || changed the
> || Property Sheet of Contact and the appropriate changes to
> || index_html and
> || Contact_addForm.
> ||
> || I can add a contact, but after having done that and I click the newly
> || created Contact I get a NameError.
> ||
> || Error Type: NameError
> || Error Value: Catalog
> ||
> || How to solve this?
> ||
> ||
> ||
> || Regards, Peter
> ||
> || I have NT4, Zope 2.2.2
> ||
> || Traceback (innermost last):
> ||   File
> || C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 222, in
> || publish_module
> ||   File
> || C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 187, in
> || publish
> ||   File C:\PROGRA~1\Zopesite\lib\python\Zope\__init__.py, line 221, in
> || zpublisher_exception_hook
> || (Object: CatalogAware)
> ||   File
> || C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 171, in
> || publish
> ||   File C:\PROGRA~1\Zopesite\lib\python\ZPublisher\mapply.py,
> || line 160, in
> || mapply
> || (Object: manage_baseproperties)
> ||   File
> || C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 112, in
> || call_object
> || (Object: manage_baseproperties)
> ||   File C:\PROGRA~1\Zopesite\lib\python\OFS\DTMLMethod.py,
> || line 172, in
> || __call__
> || (Object: manage_baseproperties)
> ||   File
> || C:\PROGRA~1\Zopesite\lib\python\DocumentTemplate\DT_String.py, line
> || 528, in __call__
> || (Object: manage_baseproperties)
> ||   File
> || C:\PROGRA~1\Zopesite\lib\python\DocumentTemplate\DT_In.py, line 633,
> || in renderwob
> || (Object: Catalog(meta_type='Yihaw Pointer'))
> ||   File
> || C:\PROGRA~1\Zopesite\lib\python\DocumentTemplate\DT_Util.py, line
> || 337, in eval
> || (Object: Catalog(meta_type='Yihaw Pointer'))
> || (Info: Catalog)
> ||   File , line 0, in ?
> || NameError: (see above)
> ||


___
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] Yihaw product Catalog error

2000-11-09 Thread peter bengtson

I have installed the Yihaw product, because I am going to use the Contact
class.
The changes I have made to the ZClass are minor. I have only changed the
Property Sheet of Contact and the appropriate changes to index_html and
Contact_addForm.

I can add a contact, but after having done that and I click the newly
created Contact I get a NameError.

Error Type: NameError
Error Value: Catalog

How to solve this?



Regards, Peter

I have NT4, Zope 2.2.2

Traceback (innermost last):
  File C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File C:\PROGRA~1\Zopesite\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: CatalogAware)
  File C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File C:\PROGRA~1\Zopesite\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: manage_baseproperties)
  File C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: manage_baseproperties)
  File C:\PROGRA~1\Zopesite\lib\python\OFS\DTMLMethod.py, line 172, in
__call__
(Object: manage_baseproperties)
  File C:\PROGRA~1\Zopesite\lib\python\DocumentTemplate\DT_String.py, line
528, in __call__
(Object: manage_baseproperties)
  File C:\PROGRA~1\Zopesite\lib\python\DocumentTemplate\DT_In.py, line 633,
in renderwob
(Object: Catalog(meta_type='Yihaw Pointer'))
  File C:\PROGRA~1\Zopesite\lib\python\DocumentTemplate\DT_Util.py, line
337, in eval
(Object: Catalog(meta_type='Yihaw Pointer'))
(Info: Catalog)
  File , line 0, in ?
NameError: (see above)


___
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] Zope Job in France !

2000-11-09 Thread Olivier Deckmyn

Jeune Start-up dans le monde de l'internet recherche développeurs/chefs de
projet Internet / Zope.

Diplômé BAC+2/5 (ingénieur ou universitaire), vous avez une première
expérience (éventuellement un stage significatif) en développement
d'applications avec Zope.

Connaissant bien HTML et HTTP, vous maîtrisez parfaitement au
moins un langage de programmation objet (Python, Delphi, Java, C++, ...).
Vous avez une connaissance de UML et de l'objet en général.
Une connaissance de XML et LDAP serait un GROS plus.
Vous êtes rigoureux et organisé.
De plus, vous avez une bonne connaissance des SGBDR et êtes capable
de lire et rédiger des documents en anglais.

Votre mission :
Vous participez à la conception, au développement et à la gestion du site.
Selon votre potentiel, vous évoluerez au sein de la société vers de plus
amples responsabilités notamment en prenant une part de plus en plus
importante dans le déroulement des projets.

Expérience :
N'hésitez pas à joindre à votre candidature tout document pouvant démontrer
vos compétences (ex : URLs de vos réalisations)

Profil :
Vous êtes rigoureux et organisé, dynamique et passionné et prêt à travailler
dans une équipe jeune et très ambitieuse.

Ce poste, basé à Paris-La Défense, est à pourvoir immédiatement dans le
cadre d'un CDI.
Rémunération proposée : 210KF à 280KF selon profil et expérience.

Contact :
Merci d'adresser CV et une lettre de motivation à :
[EMAIL PROTECTED]

Olivier Deckmyn, CTO
eXperts-MD.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] Going Virtual InterBase Database Adapter --gvibDA-- Problems

2000-11-09 Thread Claudio Biasiolo

Hi

I'he tried to use gvibDA, all right until I tested with Python
Python returned me the message:

/\
Python 1.6 (#2, Nov  8 2000, 15:56:49)  [GCC egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release)] on linux2
Copyright (c) 1995-2000 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved.
>>> import gvib
Traceback (most recent call last):
  File "", line 1, in ?
  File "gvib.py", line 46, in ?
import gvibBase
ImportError: ./gvibBase.so: undefined symbol: Py_Realloc
>>>
# pwd
/usr/local/lib/python1.6/gvib
#

\/

I use a linux box with Zope2.2.2 Python1.6 on rh6.2
I don't know Python so anyone who can help me?

Thank you in advance

Claudio Biasiolo
Web Developer
www.veniceplaza.net
Padova, Italy


___
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-09 Thread seb bacon

Could I just butt in here and try and clarify what I've understood from
this thread so far?  I'm feeling a bit dumb about it but I'd really like
to sort it out.

1) This problem is definitely a programming error
2) It arises when a product has a component which isn't 'registered' as
a zope object, so it's not cleaned up when the product is deleted

Is that right?  What would 'registered as a zope object' mean in this
situation?  Are there any other circumstances under which you end up
with orphaned instances?  *how can it be fixed?*

What I really don't understand is why seemingly unrelated products fail
as a result of the orphan instances.  Is is because new products are
trying to get an oid which happens to be used by the orphan?

If so, I don't think it's really so wrong to call this ZODB corruption,
although I take your point about the ZODB being stable.  In your perl
analogy, it's as if you are using two tables to create a parent / child
, one to many relationship.  You then deleted a parent row but forgot to
delete the corresponding child rows.  You data is now corrupted. 
True to your analogy, this arises in sloppy programming,
not in Oracle or whatever.  However, when you create the tables in
Oracle, you can place constraints on the tables so enforce the integrity
of your data, to protect against this kind of programming.  In a similar
way, I think it's too easy to end up with corrupted data in the ZODB.
Or perhaps I'm just particularly unlucky in the products I choose to
use?   

cheers,

seb
 
> 
> 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 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-09 Thread Sven Hohage

Once again thanks to you, but I can't figure out why cloning it's not
possible.
The object is a simple zclass with the baseclasses ->ZObject,
ZObjectManager<-
Nothing special.
I know that cloning a catalogaware zclass it's not working but
object-manager??
That's the complete traceback:


-->
Traceback (innermost last):
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\Zop\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\Zop\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: NewsPruefer)
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: NewsPruefer)
  File C:\Zop\lib\python\OFS\DTMLMethod.py, line 167, in __call__
(Object: NewsPruefer)
  File C:\Zop\lib\python\DocumentTemplate\DT_String.py, line 502, in
__call__
(Object: NewsPruefer)
  File C:\Zop\lib\python\DocumentTemplate\DT_In.py, line 607, in
renderwob
(Object: objectValues(['news']))
  File C:\Zop\lib\python\DocumentTemplate\DT_Let.py, line 147, in render
(Object: x="_.getitem('sequence-item')")
  File C:\Zop\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval
(Object: manage_clone(x,'versuch',REQUEST))
(Info: REQUEST)
  File , line 0, in ?
  File C:\Zop\lib\python\OFS\CopySupport.py, line 321, in manage_clone
(Object: holle)
  File C:\Zop\lib\python\OFS\CopySupport.py, line 402, in
_verifyObjectPaste
(Object: holle)
Copy Error: (see above)

Thanks again!

___
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] ZMethod and language variants

2000-11-09 Thread Hamish Lawson

> Considering that there aren't (yet) other language variants, and that

> I would usually use the restricted kind, I would normally just 
> say "ZMethod".   Only if there were some potential confusion would I 
> say "Unrestricted zmethod", or the full title.

My proposal that ZMethod be used generally for anything that Zope
regards as a method would mean that there already are other language
variants, such as DTML ZMethod and SQL ZMethod.

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 )