[Zope-dev] HowTo: trying to acces only the form elements in the REQUEST ...

2001-03-13 Thread Holger Lehmann

Hello everyone,

I need a quick hint.

How do I check wether there are any "form" elements in the request.
And how can I only acces those ?
I want to pass those, and only thos on to a ZClient call to another website. 

I do have a request like this:
http://server/foo/bar?name=barparam=fooparam2=baz

Now I want to isolate name, param and param2.
I need to construct a request like this:
dtml-if any parameters at all
  dtml-in all form parameters in REQUEST
. do something
  /dtml-in
/dtml-if

TIA Holger

-- 
---
catWorkX GmbH
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 (0700) catWorkX
Tel: +49 (40) 890 646-0
Fax: +49 (40) 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de



___
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] HowTo: trying to acces only the form elements in the REQUEST ...

2001-03-13 Thread Siggy Brentrup

Holger Lehmann [EMAIL PROTECTED] writes:

 Hello everyone,
 
 I need a quick hint.
 
 How do I check wether there are any "form" elements in the request.
 And how can I only acces those ?
 I want to pass those, and only thos on to a ZClient call to another website. 
 
 I do have a request like this:
 http://server/foo/bar?name=barparam=fooparam2=baz
 
 Now I want to isolate name, param and param2.
 I need to construct a request like this:
 dtml-if any parameters at all
   dtml-in all form parameters in REQUEST
 . do something
   /dtml-in
 /dtml-if

Some hints to play with (tested on 2.3.0):

dtml-if "REQUEST.form"
  dtml-var "REQUEST.form"br
  dtml-var "REQUEST.form.keys()"br
  dtml-var "REQUEST.form.values()"br
  dtml-var "REQUEST.form.items()"br
  dtml-in "REQUEST.form.items()"
brdtml-var sequence-index: dtml-var sequence-key=dtml-var sequence-item
  /dtml-in
dtml-else
  No parameters given!
/dtml-if

Regards
  Siggy

-- 
Siggy Brentrup - [EMAIL PROTECTED] - http://www.winnegan.de/
** ceterum censeo javascriptum esse restrictam ***


___
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] Alumni in zope ?

2001-03-13 Thread Muhammad Jahanzeb

Can we implement an alumni in zope or through zope ?


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



Re: [Zope-dev] Alumni in zope ?

2001-03-13 Thread Phil Harris

Yes

- Original Message - 
From: "Muhammad Jahanzeb" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 13, 2001 9:27 AM
Subject: [Zope-dev] Alumni in zope ?


 Can we implement an alumni in zope or through zope ?
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
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] HowTo: trying to acces only the form elements in the REQUEST ...

2001-03-13 Thread Chris McDonough

dtml-if "REQUEST.form"
   dtml-if "REQUEST.form.has_key('bar') and REQUEST.form.has_key('baz')"
 ... do something...
   /dtml-if
/dtml-if

- Original Message -
From: "Holger Lehmann" [EMAIL PROTECTED]
To: "Zope devel list" [EMAIL PROTECTED]
Sent: Tuesday, March 13, 2001 3:33 AM
Subject: [Zope-dev] HowTo: trying to acces only the form elements in the
REQUEST ...


Hello everyone,

I need a quick hint.

How do I check wether there are any "form" elements in the request.
And how can I only acces those ?
I want to pass those, and only thos on to a ZClient call to another website.

I do have a request like this:
http://server/foo/bar?name=barparam=fooparam2=baz

Now I want to isolate name, param and param2.
I need to construct a request like this:
dtml-if any parameters at all
  dtml-in all form parameters in REQUEST
. do something
  /dtml-in
/dtml-if

TIA Holger

--
---
catWorkX GmbH
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 (0700) catWorkX
Tel: +49 (40) 890 646-0
Fax: +49 (40) 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de



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



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



[Zope-dev] Re: [Zope] Is ZFormulator alive?

2001-03-13 Thread Arno Gross

Sorry, but that doesn't seem to solve the problem.
If I take away line 312 I can create new fields. But
I assume that there is then a security hole.
Any hints?

  Arno

On Mon, 12 Mar 2001, Spicklemire, Jerry wrote:
 Arno said:
 
  I am currently checking ZFormulator and could import the demo,
  but was unable to add new input fields.  
 
 
 From a post by Steve Spicklemire to the Zope list, October, 27th, 2000:
 
 "
  line 312: Form.py should be:
 
 __roles__ = ('Manager',)
 "
 
 This was quickly retrieved by searching at NIP Ltd. 
 
  http://zope.nipltd.com/public/lists/zope-archive.nsf/
 
 Thanks again Steve, and NIP folks!
 Jerry S.

___
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] QuickTime VR Movies

2001-03-13 Thread Casey Duncan

Andre Schubert wrote:
 
 Hi,
 
 the content-type of the files is video/quicktime. If i get such a file with
 wget i got the correct content-type, but the binaries of the file are
 different to a file got from apache.
 
 mfg
 

My question then is, what is the "correct" type that apache returns?
-- 
| Casey Duncan
| Kaivo, Inc.
| [EMAIL PROTECTED]
`--

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



RE: [Zope-dev] FTP interface being worked on?

2001-03-13 Thread Bijan Fathi

* Fred Wilson Horch ([EMAIL PROTECTED]) [010312 10:27]:
 Another serialized format that all Zope objects support is the XML
 interface, which exposes all the objects' guts.  With XML-RPC I
 envisioned being able to improve on the FTP interface by adding things
 like md5 checksums to determine if the local and remote objects are in
 synch.  I haven't looked too deeply, but presumably via XML you could
 support all of the management functionality that is currently provided
 by the HTML management interface.  So you could build a client with a
 rich feature set for managing Zope objects.

An idea might be to just impliment the rsync protocol, which does a
lot of this already.

Thats a really good idea, to add rsync support, but the much better way to
have verson control would be having release and versions (and maybe later
branches).

Thats a problem with the current fs, a cvs like version expanding would be
great, like
dtml-meta
  version3/revision2/release4/
  changelog Bugfix refererred to Bugreport #4711. /changelog
/dtml-meta
The user would be the user who had logged in, of course.
The only problem of ftp is that it is not able to manage versions, I would
suggest (a toggleable mode) to have a folder for each document where the
versions would lie into as files (representation) for ftp.

yours sincerely,
Bijan Fathi



___
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] Permission problems

2001-03-13 Thread morten

Hi guys,

I've been struggling with some permission problems, and I'd appreciate
some help...

Being that I don't know too much about permissions (yet!), solving
this issue is hard (and security _is_ hard); so I'll just point
you to the problem: 


http://www.zope.org/Members/morphex/AddressBook/address_book-1.0.0-permission_problems.tar.gz

Just read about the SecurityClass stuff in AccessControl, but can't
quite gripe that either.  Anyone care to enlighten a security newbie? :-)

Thanks,

Morten



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