[Zope-dev] test

2001-02-04 Thread Robin Becker

are we here in mail.zope.org
-- 
Robin Becker

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



Re: [Zope-dev] Poor programming practice?

2001-02-02 Thread Robin Becker

In article 004f01c08c01$c984bf70$6401a8c0@home, Darrell Gallion
[EMAIL PROTECTED] writes
Doesn't this undo the damage?

from medusa.ftp_server import recv_channel
handle_close=recv_channel.handle_close
import Zserver.FTPServer
recv_channel=handle_close

--Darrell

There's only one method in the class, changing it, changes for all so
far as I can tell. If I compete to set my handle_close with another it
depends on the order of import.
-- 
Robin Becker

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



[Zope-dev] Poor programming practice?

2001-01-31 Thread Robin Becker

I have been trying to make use of the builtin medusa ftp_server classes
and after struggling a while came across the strange practice some
internal zope developer has of dynamically changing classes at runtime.

ie in ZServer.FTPServer I came across 

from medusa.ftp_server import ftp_channel, ftp_server, recv_channel
...
...
# Override ftp server receive channel reponse mechanism 
# XXX hack alert, this should probably be redone in a more OO way.

def handle_close (self):
..
self.readable=lambda :0 # don't call close again

recv_channel.handle_close=handle_close


which makes it virtually impossible to re-use medusa's ftp_server in a
reasonable way. The comment says it all.

The real problem is that ftp_channel uses a method make_recv_channel
which uses a global class recv_channel and the recv_channel class has a
particular method which zope wants to override. How ought this kind of
situation to be handled more cleanly?
-- 
Robin Becker

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




Re: [Zope-dev] New UI for 2.3

2001-01-12 Thread Robin Becker

In article [EMAIL PROTECTED], Shane Hathaway
[EMAIL PROTECTED] writes
Andy McKay wrote:
 
 Come on, can someone post some sample screenshots?

http://www.zope.org/Members/hathawsh/new_ui.png

I hate the brand at the top. Put it at the bottom where it can disappear
and not take up space.

Can we have ownership information as well?

How about switching to a more sensible permissions scheme; then we could
have rwxr--r-- etc. I also would have to worry about the correct
settings of 'Add Mydongle', 'View MyDongle' etc. How can the
administrator keep up with the multiplicity of such things. I have more
than a page full of such permissions most of which I don't understand.

And will we get any better information on what causes all those
permissioning failures.

Telling us what causes our slightly modified product/Zclass to go down
the pan and take the data with it would also be nice.
-- 
Robin Becker

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




[Zope-dev] WIN2K batch problem

2001-01-04 Thread Robin Becker

I'm trying to run Zope 2.2.2 under win2000 in a batch file. I'm just
watching error messages and prints. I find that when zope has written a
page to the cmd.exe window it locks further prints from python until I
hit a key in the window and then it releases another page full. Is there
a Win NT/2K guru who knows about such things and how to prevent this? 
-- 
Robin Becker

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




[Zope-dev] confused about folder methods

2000-12-11 Thread Robin Becker

Why is it that I can use http:/F/objectIds, but not http:/F/objectItems?
F is a folder.

I have a ZClass derived from ZObject, ZFolder and find that I can use
objectIds, objectItems etc in dtml methods of the class.

Now with a class derived from ZObject, ZDTMLDocument, ZFolder I find
that I cannot. I can use other manage methods to add images, but I can't
call objectIds on the instances etc.

Is there a way to get at the base classes somehow?
-- 
Robin Becker

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




Re: [Zope-dev] Significance of the ZODB split?

2000-12-08 Thread Robin Becker

In article [EMAIL PROTECTED], Jeremy
Hylton [EMAIL PROTECTED] writes
 "RB" == Robin Becker [EMAIL PROTECTED] writes:

  RB Anyone know why AM Kuchling needs to split off a Sourceforge
  RB project based on ZODB? I really liked the ZEO examples, but
  RB where's this going?

It is the most expedient way to start opening ZODB development,
including ZEO, up to a larger audience of developers.  Andrew's
project will focus primarily on packaging, testing, and
documentation.  In the short term, the easiest way to accommodate his
needs are to have his own SF project.

The plan is to have the two different CVS repositories integrated at
the level of working directories.  Developers will probably end up
with checkouts of both CVS trees, knit together so that Andrew's setup
scripts and the like encapsulates the source code from the DC tree.
(This setup makes the initial checkout a little complicated, but cvs
update should work normally.)

Andrew, Jim, and I and the rest of the PythonLabs team chatted about
these plans over Chinese food on Wednesday.  PythonLabs plans to get
much more involved in ZODB development.  One goal of that involvement
is to promote ZODB's use within the Python community, and Andrew's
work is an important part of that promotion.

Jeremy
...
Thanks! 
-- 
Robin Becker

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




[Zope-dev] CVS emergency_user bug

2000-12-07 Thread Robin Becker

z2.py makes references to AccessControl.User.emergency_user which causes
an exception. Is it ok to use SpecialUsers.super instead?
-- 
Robin Becker

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




Re: [Zope-dev] CVS emergency_user bug

2000-12-07 Thread Robin Becker

In article [EMAIL PROTECTED], Shane Hathaway
[EMAIL PROTECTED] writes
Robin Becker wrote:
 
 z2.py makes references to AccessControl.User.emergency_user which causes
 an exception. Is it ok to use SpecialUsers.super instead?

No, it is not ok. :-)  Have you updated AccessControl/User.py as well? 
If you have, this exception should not occur.

Are you using special user folders?  What's your setup?

Shane

I have a global update process; it should be updating from the standard
CVS Zope2, but I've been copying Extensions around so maybe that's
bombing it.
-- 
Robin Becker

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




Re: [Zope-dev] Turning acquisition off selectively.

2000-12-06 Thread Robin Becker

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

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




[Zope-dev] Allowed Product Changes

2000-12-01 Thread Robin Becker

I'm building some Products in python and find it very difficult as I
never know when a source change is going to render the data for existing
instances invalid. Sometimes when this happens it takes down the
containing folder as well.

Are there any obvious do's and don'ts and how-tos when modifying an
existing product? What makes instances break for example?
-- 
Robin Becker

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




[Zope-dev] fixing security problems HOW?

2000-11-28 Thread Robin Becker

How can I find out exactly what is causing my security permissioning to
fail.

I have put extra stuff into ZPublisher\BaseRequest.py at line 463 so I
know that I'm failing on

UnauthorizedYou are not authorized to access this resource.
URL='http://192.168.0.4:7080/live/index_html' No Authorization header
found.

I am an anonymous user. Even when I make /live have the same permissions
as the manager I can't make it work. index_html is a dtml method of the
class of which live is an instance.

How can I figure out what is blocking the anonymous access.
-- 
Robin Becker

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




[Zope-dev] CVS down?

2000-11-28 Thread Robin Becker

C:\Python\devel\Zopecvs -z9 upd -A -P -d
CVS.EXE [update aborted]: connect to zope.org:2401 failed: Connection
refused


Am I pointing at the wrong server or something?
-- 
Robin Becker

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




Re: [Zope-dev] CVS down?

2000-11-28 Thread Robin Becker

In article [EMAIL PROTECTED]
m, Ken Manheimer [EMAIL PROTECTED] writes
On Tue, 28 Nov 2000, Robin Becker wrote:

 C:\Python\devel\Zopecvs -z9 upd -A -P -d
 CVS.EXE [update aborted]: connect to zope.org:2401 failed: Connection
 refused
 
 
 Am I pointing at the wrong server or something?

OK that works for me. I had to use cvs_chroot.py, but that seemed to go
OK.
-- 
Robin Becker

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




Re: [Zope-dev] fixing security problems HOW?

2000-11-28 Thread Robin Becker

In article [EMAIL PROTECTED], Robin Becker
[EMAIL PROTECTED] writes

Apparently, your "live" is a Z instance.
It is quite easy to forget the ZClass permission mapping
(or get it wrong). This may lead to strange permission
problems.
Which ZClass permission mapping? Anonymous seems to be able to 'view'.

The 'Manager' role can log in and do stuff, but even when I change the
permissions of Anonymous to be completely the same as for Manager I
don't get the same behaviour; ie anonymous is being asked to log in?

The problem I suppose is that /live/index_html is really a permission of
/live and I guess the permissions determining access etc are really in /
the object which cannot be traversed to :) 
well I upgraded my CVS version and everything started working again.
Mumble. If only I hadn't tried to get the new Python methods to work etc
etc dribble dribble.
-- 
Robin Becker

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




[Zope-dev] redirect and POST

2000-11-17 Thread Robin Becker

I seem to get different behaviour when I use method=POST in my forms and
then attempt to use RESPONSE.redirect later on in the handling method.

It seems as though the method that was used to call the form handler is
passed on. Then my index_html hangs waiting for the POST data. Is there
a way to change the http request back to GET.
-- 
Robin Becker

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




Re: [Zope-dev] CVS and Zope methods

2000-11-16 Thread Robin Becker

In article [EMAIL PROTECTED], Steve Spicklemire
[EMAIL PROTECTED] writes

Hi Robin,

   You can FTP to the 'methods' tab of your ZClass using:

ftp://name@server:xx21/Control_Panel/Products/YourProductFolder/YourZClass/prope
rtysheets/methods

-steve

...
yes I found that out although one of my dtml-methods was named
filtered_meta_types and was causing all sorts of problems including
crashing the server until I simply renamed it.
-- 
Robin Becker

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




Re: [Zope-dev] strange FTP bug

2000-11-16 Thread Robin Becker

In article [EMAIL PROTECTED], Ender
[EMAIL PROTECTED] writes
Robin Becker wrote:
 
 I'm using python's ftplib to automate transfer of my dtml methods back
 and forth into my ZClasses
 
 I seem to be unable to GET a method called 'filtered_meta_types'
 from
 
 /Control_Panel/Procucts/myProduct/myZClass/propertysheets/methods
 
 I get instead a permissions error 550. I get the same transferring using
 another FTP client. I checked the ownership etc and it should be OK. I
 can only think it's some horrible acquistion problem relating to the
 default filtered_meta_types thing. Indeed when I rename to FMT it all
 works quite happily. Is this kind of 'feature' known/expected?

filtered_meta_types is used by zope to keep a list of the object
types/meta types that a user can create (and interact? with) in the
current context.

so yes this behavior is known and expected, else it would be possible to
bypass the security system.

kapil

yes, but the thing I edit and use quite happily is designed specifically
to override the standard behaviour in the class of the ZClass. I own the
method and FTP is not exactly trying to call it or anything. I'm trying
to get it. I can get all the other methods in the methods sheet why not
this particular one. What 'context' am I supposed to be using with FTP?
Seems to me if I can edit delete replace my filtered_meta_types in my
ZClass through the management interface I ought to be able to do the
same through FTP. Of course I'm barmy enough to demand some kind of
consistency which I ought not to in the 'Zope' context.

What other kinds of idiotic naming problems can one expect?
-- 
Robin Becker

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




Re: [Zope-dev] CVS and Zope methods

2000-11-16 Thread Robin Becker

In article xrldNBAyh$[EMAIL PROTECTED], Robin Becker
[EMAIL PROTECTED] writes
In article [EMAIL PROTECTED], Steve Spicklemire
[EMAIL PROTECTED] writes

Hi Robin,

   You can FTP to the 'methods' tab of your ZClass using:

ftp://name@server:xx21/Control_Panel/Products/YourProductFolder/YourZClass/prop
e
rtysheets/methods

-steve

...
yes I found that out although one of my dtml-methods was named
filtered_meta_types and was causing all sorts of problems including
crashing the server until I simply renamed it.
I also seem only able to GET the methods not STOR them.
-- 
Robin Becker

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




[Zope-dev] dreamWeaver encoding

2000-11-07 Thread Robin Becker

A colleague and I find that the request encoding of dreamWeaver is
causing us problems and we can coorect by passing the DW encoded request
through urllib.unquote and quote.
-- 
Robin Becker

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




[Zope-dev] BASEPATH

2000-11-03 Thread Robin Becker

Can someone explain to me why the CVS version of Zope2 contains
references to BASEPATH and the recently released 2.2.2 doesn't? Is this
a new feature?
-- 
Robin Becker

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




[Zope-dev] cPickle.c

2000-11-03 Thread Robin Becker

I see a reference to mymath.h in in cPickle.c is that intentional?
-- 
Robin Becker

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




Re: [Zope-dev] cPickle.c

2000-11-03 Thread Robin Becker

In article [EMAIL PROTECTED], Toby Dickenson
[EMAIL PROTECTED] writes
On Fri, 3 Nov 2000 13:03:50 +, Robin Becker
[EMAIL PROTECTED] wrote:

I see a reference to mymath.h in in cPickle.c is that intentional?

With python 2.0 you dont need (and shouldnt use) the cPickle or
cStringIO that comes with Zope

Toby Dickenson
[EMAIL PROTECTED]

I just got bitten by using the pyexpat that comes with Python 2.0 and
causes strangenesses when trying to import the xml you just exported :(
The error is a UnicodeError Ascii character out of range(128)
-- 
Robin Becker

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




[Zope-dev] xmit_channel

2000-10-27 Thread Robin Becker

Does ZServer/medusa/ftp_server.py need a handle_connect method in
xmit_channel. Unless I add

   def handle_connect(self):
   pass

to xmit_channel I keep getting connect event errors using FTP.
-- 
Robin Becker

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




Re: [Zope-dev] Re: [Zope] Container Class questions

2000-10-09 Thread Robin Becker

In article [EMAIL PROTECTED], Kapil Thangavelu
[EMAIL PROTECTED] writes
...
One of the things I wanted to do was to add a multiple selection
property to the default properties in the Thing_add method. In order to
do this in multiple zclasses I wanted to have a product wide
variable/property/method to use as the allowed list. I could find no way
to do that. As always with Zope there seem to be different
inheritances/scopes at different times. Statically I can add a property
to the product say projectList and it is visible when I add properties
to a property sheet. So product wide things are visible statically,
however projectList doesn't seem to be visible to my Thing_add method
when I use

manage_addProperty('projects','projectList','multiple selection') ie

I get an error saying projectList isn't known. Clearly product wide
methods are intended to be known at create time so why not properties?
-- 
Robin Becker

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




Re: [Zope-dev] basci properties

2000-10-09 Thread Robin Becker

In message [EMAIL PROTECTED], Paul Erickson [EMAIL PROTECTED] writes

Well I was trying to get a self contained class initialisation using a bit of python

I had defined a propertsheet called ClassConstants containing a tokens property with
"A B C" in my extern method initialiser I was doing 

self = self.this()
obj = self.ZC.createInObjectManager(id, REQUEST)
obj.manage_addProperty('t','tokenList','multiple selection')

in the add form I could not seem to get access to the property tokenList
 ie
 I wasn't getting nice things from either
 dtml-with "_.namespace(S=tokenList)"

not seeing the property.

or 

 dtml-with "_.namespace(S=Control_Panel.Products.myProduct.ZC.propertysheets.common
.ClassConstants.getProperty('tokenList')

failing with a permissions problem

in the end I had to define a product external method called getTokenList
which did
def getQProjectList(self):
obj = self.unrestrictedTraverse("Control_Panel/Products/myProduct/ZC/propert
ysheets/common/ClassConstants")
return obj.getProperty('tokenList')

How does one define properties which are visible at construction time?


Just create a ZClass that inherits from ObjectManager, then you will
have to use the Subobjects tab to tell it what kind of objects it can
contain.

For properties, click on the Property Sheets tab and add one (be sure
you're in the class, not the product). Put whatever properties on it
that you like. Remember that properties won't get set in the constructor
unless you uncomment the 

dtml-call "propertysheets.Basic.manage_editProperties(
  REQUEST)"
line in the constructor.  (change "Basic" if that's not what you called
your property sheet.

Robin Becker wrote:
 
 I want to create a ZClass that is essentially a folder with some added
 properties. I can see no way to add to the Basic properties of my
 ZClass.
 
 Is there a way to do that?
 --
 Robin Becker
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )
-- 
Robin Becker

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




[Zope-dev] basci properties

2000-10-07 Thread Robin Becker

I want to create a ZClass that is essentially a folder with some added
properties. I can see no way to add to the Basic properties of my
ZClass.

Is there a way to do that?
-- 
Robin Becker

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




[Zope-dev] trapping undo

2000-09-25 Thread Robin Becker

Is there any way in python to trap the undo event on a document?
-- 
Robin Becker

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




[Zope-dev] FTP behaviours

2000-09-22 Thread Robin Becker

Has anyone done any work in the area of ftp controlled behaviours? I
want to do something like check if an object is of a specific sort
before overwriting/creating and then take some additional actions.
-- 
Robin Becker

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




[Zope-dev] Previous versions of persistent objects

2000-09-22 Thread Robin Becker

Are there any methods to get access to previous versions of persistent
objects without actually carrying out the undo?
-- 
Robin Becker

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




[Zope-dev] LoginManager NT plugins?

2000-09-05 Thread Robin Becker

anyone doing user authentification with NT + Loginmanager?
-- 
Robin Becker

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




Re: [Zope-dev] strange permission errors again

2000-06-20 Thread Robin Becker

In article [EMAIL PROTECTED]
, Brian Lloyd [EMAIL PROTECTED] writes
 After the latest round of CVS updates I am again getting 
 strange requests for authorisation in
 unusual places. No matter that I use my admin to try and 
 validate they still occur.
 
 Typical piece of code is
 
  dtml-with "_.namespace(SUB=include.ZGA_Eval(sub))"

Robin - 

The problem was with "_.namespace". If you update cDocumentTemplate 
to the latest CVS and recompile it, this should go away...

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



I'll certainly try that out.
-- 
Robin Becker

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




Re: [Zope-dev] strange permission errors again

2000-06-19 Thread Robin Becker

In article [EMAIL PROTECTED], Robin Becker
[EMAIL PROTECTED] writes
In article N67oNIALy3S5Ew$[EMAIL PROTECTED], Robin Becker 
[EMAIL PROTECTED]
writes
After the latest round of CVS updates I am again getting strange requests for 
authorisation in
unusual places. No matter that I use my admin to try and validate they still 
occur.

Typical piece of code is

A simpler example, the error is raised in the _.len(SUB) expresssion.

well it went away again now :) thanks
-- 
Robin Becker

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




[Zope-dev] strange permission errors again

2000-06-17 Thread Robin Becker

After the latest round of CVS updates I am again getting strange requests for 
authorisation in
unusual places. No matter that I use my admin to try and validate they still occur.

Typical piece of code is

 dtml-with "_.namespace(SUB=include.ZGA_Eval(sub))"
  dtml-if "_.len(SUB)0"
   NAVDATA[dtml-var sequence-index].flag=dtml-var sequence-index;
   NAVSTATE=new Array();
   dtml-in SUB
NAVSTATE[dtml-var sequence-index]=new Object();
NAVSTATE[dtml-var sequence-index].ref = 'dtml-var "_['sequence-item'][0]"';
NAVSTATE[dtml-var sequence-index].label = 'dtml-var "_['sequence-item'][1]"';
   /dtml-in
   NAVDATA[dtml-var sequence-index].sub=NAVSTATE;
  dtml-else
   NAVDATA[dtml-var sequence-index].flag=-1;
  /dtml-if
 /dtml-with

Brian fixed this up before and it has crept back in somehow.

Zope Error

Zope has encountered an error while publishing this resource. 

Unauthorized

Sorry, a Zope error occurred.

Traceback (innermost last):
  File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 222, in 
publish_module
  File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\Python\devel\Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: index_html)
  File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: index_html)
  File C:\Python\devel\Zope\lib\python\OFS\DTMLMethod.py, line 167, in __call__
(Object: index_html)
  File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_String.py, line 502, in 
__call__
(Object: index_html)
  File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_In.py, line 691, in 
renderwob
(Object: NavData)
  File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_With.py, line 146, in render
(Object: _.namespace(SUB=include.ZGA_Eval(sub)))
  File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_Util.py, line 327, in eval
(Object: _.len(SUB)0)
(Info: SUB)
  File C:\Python\devel\Zope\lib\python\OFS\DTMLMethod.py, line 189, in validate
(Object: index_html)
  File C:\Python\devel\Zope\lib\python\AccessControl\SecurityManager.py, line 139, in 
validate
  File C:\Python\devel\Zope\lib\python\AccessControl\ZopeSecurityPolicy.py, line 158, 
in
validate
Unauthorized: SUB
-- 
Robin Becker

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




Re: [Zope-dev] passing variables

2000-06-17 Thread Robin Becker

In article 000b01bfd866$1d2cc3c0$0fc550c2@joshon, josh on
[EMAIL PROTECTED] writes
Is there a way to pass variables from one page to another using an a href
but not including them in the url after a ??

sorry, I know this is an html question, but I figured it was pretty zope
related.

josh on


...
you can do anything with javascript of course
-- 
Robin Becker

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




[Zope-dev] CVS empty Extensions directory

2000-06-13 Thread Robin Becker

I keep getting complaints about a missing CVS directory inside
Extensions (a directory recently added). Can we either add the null CVS
dir or remove Extensions from the CVS tree?
-- 
Robin Becker

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




Re: [Zope-dev] CVS empty Extensions directory

2000-06-13 Thread Robin Becker

In article [EMAIL PROTECTED]
, Brian Lloyd [EMAIL PROTECTED] writes
 I keep getting complaints about a missing CVS directory inside
 Extensions (a directory recently added). Can we either add 
 the null CVS
 dir or remove Extensions from the CVS tree?
 -- 
 Robin Becker

It was added on purpose - did you do a cvs update -d ?


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 

...
yes I do cvs -z7 upd -P -A -d
It complains about README.txt being in the way. I fixed this now by
moving Extensions out of the way and then copying my stuff therein after
the update.
-- 
Robin Becker

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




Re: [Zope-dev] another validation problem

2000-05-25 Thread Robin Becker

In article [EMAIL PROTECTED], Michel Pelletier
[EMAIL PROTECTED] writes
...

Does it work if you:

dtml-with "_(SUB=[1,2])"
 ...
/dtml-with

and call the namespace directly?  The two are supposed to be synonymous
but your method is depricated so perhaps it works the other way, if not,
I'd suggest putting this in the collector for us to fix before the next
release.
...
nope this fails as well.
-- 
Robin Becker

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