RE: [Zope] GUF Idle Timeout?

2000-08-31 Thread Mabe, Brad

The first word that came to my mind after reading your response was "Duh!".

This was something I should have figured out on my own.  Thanks for the
help!

  -=Brad=-

-Original Message-
From: Stuart Bishop
To: Mabe, Brad
Cc: '[EMAIL PROTECTED] '
Sent: 8/31/00 3:42 AM
Subject: Re: [Zope] GUF Idle Timeout?

On Wed, 30 Aug 2000, Mabe, Brad wrote:

 Hello all,
 Does GUF have an idle timeout setting?  I'm seeing the behavior where
if my
 GUF authenticated user is idle for more than 10-15 minutes they lose
their
 authentication and are asked to log in again.
 
 If there is such a setting, how can I increase the amount of idle
time?  

Go to the properties page of your GUF instance and change the
'Inactive Cookie Expires' property.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play:
[EMAIL PROTECTED]
Computer Science, RMIT University


___
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] GUF Idle Timeout?

2000-08-30 Thread Mabe, Brad

Hello all,
Does GUF have an idle timeout setting?  I'm seeing the behavior where if my
GUF authenticated user is idle for more than 10-15 minutes they lose their
authentication and are asked to log in again.

If there is such a setting, how can I increase the amount of idle time?  

Thanks

-=Brad=-


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




RE: [Zope] How to execute multiple SQL statements in one SQL-Method ?

2000-08-18 Thread Mabe, Brad

SQLSTATEMENT 1

dtml-var sql_delimiter

SQLSTATMENT 2


-Original Message-
From: Stuart Foster [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 18, 2000 1:14 PM
To: Zope List
Subject: [Zope] How to execute multiple SQL statements in one SQL-Method
?


I know it can be done but forgot how. 

Stuart

___
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] No file in INPUT TYPE='file' field

2000-08-11 Thread Mabe, Brad

I love this list!  I am designing a file upload form and just started
thinking about how I am going to handle invalid filenames, no filename, etc.
Of course, rather than doing "real work" I decided to take some time and
catch up with my e-mail and viola! Here is this thread.

Thanks Peter!

-=Brad=-

-Original Message-
From: Peter Arvidsson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 10, 2000 4:07 AM
To: Alexander Chelnokov
Cc: zope
Subject: Re: [Zope] No file in INPUT TYPE='file' field


Hi

I use this code to check if the input is empty:
dtml-if "name_of_file_input.filename"
Exists...

To check if the input is a valid file you can store it as a temporary
variable and then make a check if the size of the object is more than 0
bytes like this:
dtml-if "_.getitem(temp_object_id,0).getSize()  0"
Valid file...

I hope this helps you :)

Peter


Alexander Chelnokov skrev:
 
 Hello All,
 
 How to define in DTML that user put nothing into the
 field INPUT TYPE="file"...?
 Give pls an example of code.
 
 Best regards,
  Alexander N. Chelnokov
 Ural Scientific Institute of Traumatology and Orthopaedics
 str.Bankovsky, 7. Ekaterinburg 620014 Russia
 ICQ: 25640913
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

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



___
Zope 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] FindOneOf?

2000-07-27 Thread Mabe, Brad

ColdFusion (I know, a dirty word ;-) ) has a nifty string function called
"FindOneOf" which returns the index of the occurrence of any character in a
string.

Example:
 FindOneOf("ghd", "abcdefghij", 1) 

Will return a "4" because "d" is the fourth letter in the string
"abcdefghij".  If no match is made, a 0 is returned.  This is especially
useful when building a change password form, because I can easily check to
see that the new password contains at least one special character, upper
case character, number, etc.  Is there anything similar to FindOneOf in
ZOPE?  If not, does anyone have any hints on how I can go about doing this
kind of thing through dtml or python?

-=Brad=-


___
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] GUF KeyError problem

2000-07-14 Thread Mabe, Brad

I am attempting to get GUF (using sql methods for authentication) working on
an HPUX box and am running into a bit of a snag.  Running ZOPE in debug mode
yields the following:

ERROR(200) GUF http://sidr:8080/test/acl_users/userRoles raised an exception
((class exceptions.KeyError at 40051d58 exceptions.KeyError instance at
40576958, traceback object at 40574628))

INFO(0) GUF Successful authentication for user test
(http://sidr:8080/test/acl_users)

ERROR(200) GUF http://sidr:8080/test/acl_users/userRoles raised an exception
((class exceptions.KeyError at 40051d58 exceptions.KeyError instance at
40575700, traceback object at 403c9900))

INFO(0) GUF Failed authorization for user test
(http://sidr:8080/test/acl_users)

As usual I'm at a loss to what the problem is.  I have been successful in
getting GUF  sql methods  working on an NT box running zope, but never ran
into this problem.  Any help will be greatly appreciated.

-=Brad=-


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




RE: [Zope] RE: [Zope-dev] Problem with Zope

2000-07-12 Thread Mabe, Brad

Check IE's security settings for the zone you are downloading the PDF from. 

The following is taken from Adobe's support site:

-- If you're using Internet Explorer 5.0, make sure that its security
options recognize the Acrobat Control:


Note: This procedure changes Internet Explorer's security options for all
ActiveX Controls. If you prefer to use stricter security, do not complete
these steps.


1. Exit from Internet Explorer 5.0 and your Acrobat viewer.
2. Start Internet Explorer 5.0.
3. Choose Tools  Internet Options and click the Security tab.
4. Choose the appropriate Web content zone for the type of PDF file you're
trying to open (e.g. Internet or Local Intranet).
5. Click Custom Level to specify the security setting for this zone.
6. Select Enable for the options labeled "Download unsigned ActiveX
controls" and "Initialize and script ActiveX Controls not marked as safe."
7. Click OK and then click OK again.


-=Brad=-

-Original Message-
From: R. David Murray
To: Tina Goyne (TT)
Cc: [EMAIL PROTECTED]
Sent: 7/12/00 12:10 PM
Subject: [Zope] RE: [Zope-dev] Problem with Zope

On Wed, 12 Jul 2000, Tina Goyne (TT) wrote:
 we have actually narrowed the problem down a little more.  If we use
 Netscape--there are no problems.  The problem seems to be with
IE--have you
 heard of a resolution?
 
 BTW - I can view the file on the network server.

No, I hadn't heard about problems viewing PDF files from IE.  Anyone
else seen this?

I suppose we should know what version of Zope you are running.

--RDM


___
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] Getting a specific user role

2000-06-09 Thread Mabe, Brad

That did the trick.  Someday I'm going to get the hang of this stuff.

Thanks, Jason.

   -=Brad=-

-Original Message-
From: Jason Spisak
To: Mabe, Brad
Cc: '[EMAIL PROTECTED]'
Sent: 6/8/00 7:48 PM
Subject: Re: [Zope] Getting a specific user role

Mabe, Brad writes:

 Forgive me if this has been covered before.

There's no real great documentation on using the security API, and it's
changing a bit anyway.

 
 I am implementing a login/security scheme through the use of GUF and
SQL
 methods.  My user and role information is kept in a SQL database and a
user
 can have more than one role assigned to him/her.
 
 What I would like to do is check if a specific role has been assigned
to the
 current user, and then display some additional menu items if that role
has
 been assigned.  I haven't been able to figure out how to get and check
the
 roles that have been assigned to the current user.
 
 As usual, any help will be greatly appreciated.
 
  -=Brad=-

try:

dtml-if "AUTHENTICATED_USER.has_role('MyRole')"
My stuff
/dtml-if

Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
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] Getting a specific user role

2000-06-08 Thread Mabe, Brad

Forgive me if this has been covered before.

I am implementing a login/security scheme through the use of GUF and SQL
methods.  My user and role information is kept in a SQL database and a user
can have more than one role assigned to him/her.

What I would like to do is check if a specific role has been assigned to the
current user, and then display some additional menu items if that role has
been assigned.  I haven't been able to figure out how to get and check the
roles that have been assigned to the current user.

As usual, any help will be greatly appreciated.

 -=Brad=-


___
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] Executing an external program

2000-05-22 Thread Mabe, Brad

Is there a way for zope to call an external program (exe, batch file, etc.)
and have it execute on the server?  I have several home grown utilities on
my server that I would like to access/execute via the browser.

-=Brad=-


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

2000-05-18 Thread Mabe, Brad

Does this work in IE5?  I'm using similar META tags which work for IE4 and
Netscape but don't work in IE5.

  -=Brad=-

-Original Message-
From: Dr. Peer Griebel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 18, 2000 10:32 AM
To: [EMAIL PROTECTED]
Subject: Re: [Zope] Cache


Jonothan Farr wrote:
 
  How can I disable the browser cache in my zope documents ?
 
 One thing you can do is set the 'Expires' header like so:
 
 dtml-call "RESPONSE.setHeader('Expires', _.DateTime().rfc822())"

This works using Netscape. But for IE I had to use:

dtml-call "RESPONSE.setHeader('Expires', '-1')"
dtml-call "RESPONSE.setHeader('Cache-Control', 'no-cache')"
dtml-call "RESPONSE.setHeader('Pragma', 'no-cache')"

I think the last Pragma can be left out. But the Cache-Control header
ist neccessary. I got the information out of rfc2616.


-- 
connection reset by
  Peer

___
Dr. Peer Griebel  Tel. +49 7581 4831 23
Geschäftsführer   Fax. +49 7581 4831 11
Knoll Informationssysteme GmbH   http://www.knoll-is.de
Dreiköniggasse 17   mailto:[EMAIL PROTECTED]
88348 Saulgauprivat: mailto:[EMAIL PROTECTED]

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




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