[Zope-dev] RE: [Zope] ZDESIGN IDEAS = How to improve 'manage' ?

2001-01-09 Thread Mohan Baro

My view is that as a sysadmin, I rather give ZOPE superuser/manager the
ability install products through ZOPE, rather than giving them access to the
OS.

Another view I have is that I do not want my developers to think about which
platform they are working on.

ZOPE runs on a variety of OSes and each one of then have their own way of
providing file/directory security (or no security win9x). Zope should rely
on its own security for its products.

..IMHO

Mohan



-Original Message-
From: Martijn Pieters [mailto:[EMAIL PROTECTED]]On Behalf Of Martijn
Pieters
Sent: Tuesday, January 09, 2001 9:42 AM
To: Mohan Baro
Cc: Jason Cunliffe; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Zope] ZDESIGN IDEAS = How to improve 'manage' ?


On Mon, Jan 08, 2001 at 12:18:37PM -0500, Mohan Baro wrote:
 Are you planning a manage_install for products?
 The ability for superusers to install complelte products directly through
 the management interface, no need for ftp.
 similar to import/export feature

I hope not!

Anyone gaining management access to your Zope server will be
able to install arbitrary products on your server and gain access to the
file system.

There is a strict dividing line between the file system and the ZMI,
allowing installation through the web interface will cross that line with
one giant step.

--
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators 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-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] ZDESIGN IDEAS = How to improve 'manage' ?

2001-01-08 Thread Mohan Baro

Are you planning a manage_install for products?
The ability for superusers to install complelte products directly through
the management interface, no need for ftp.
similar to import/export feature



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason
Cunliffe
Sent: Monday, January 08, 2001 11:20 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Zope] ZDESIGN IDEAS = How to improve 'manage' ?


Hello

I am cross poisting this becaese I beleie it merits responee fom both
lists..

The need to improve the manage interface has grown urgently clear to me
while using Zope myself, designing for all sorts of community and
collaborative Zope-based projects, demos for a number of innocent
bystanders, interested parties and potential clients.
Zope 'manage' is plain primitive at present.

Considering the power of Zope, and the real workflow needs of people working
with it, imho this present lack of thoughtful user interface makes no sense.
By ignoring these basics, Zope is neglecting a #1 self-promotion
opportunity - how it runs out of the box, and how quickly one can use it as
site-planning/design tool.It is quite unproductive now compared to what it
could/should be.

I am looking for real help here on how best to improve this...

Here is a list of features I believe should be default manage screen
behavior now.
Please submit your comments and improvements to these improvements:

KISS
For those who do not want any added features, there should be an option in
z2.py or as a manage_config DTML method in "/" or anywhere else in the tree
to enable or disable 'advanced manage' features.

---
1. SORT TABLE
'manage' needs to presented with basic column listings so one can display
sort by headings.

I am not sure if this turns into a CatalogAware Inferno or whether all this
info is  already hidden in the ZODB and could be extracted adn cached
sensibly and quickly. What do you think?

For example some headings I see a real need for:

NAME [default now], DATE[created, last modified] SIZE, TYPE[meta-type],
USER[default=owner], DEPTH, COUNT, CHANGES, PROPERTY, DISPLAY



NAME should be like now, but one needs to be able to group things more
sensibly, so that upper and lower-case can be ignored.
For example: MYFOLDER, myFolder_config, MyFOLDER_Display could all be
grouped together where the probably belong.

DATE
Fact of the matter is that, during development and very often during normal
life, we need to work on things according to the most recent ordering. This
is also an invaluable way for people on a development team to see what has
been 'happening'. Since Zope is a tool for 'customers who have customers who
have customers...' it means that even after the original site DTML/Python
developers may have gone home, a Zopesite is under development as long as it
is being used and growing. All of those users, especially deserve better
means to see and understand how the site is working and to allow them to
work better together.

SIZE
How big is this thing?
When I look at a graphic is it a thumbnail icon or a hires scan?
What about PDF
What about folders - how to calculate the size of folder?

TYPE
Display objects sorted by TYPE.

USER
Default sorts by Owner, but could also be designed to sort by last user who
accessed the object.

DEPTH
How many levels below this thing? This would only work for Zope folders.
An essential indicator of hidden complexity/importance etc.


COUNT
How many things are contained here? Targeted mainly for Zope Folders to
allow one get a good quick overview of site structure without needing to
click though a lot of trees of nested manage screens.
CONT could be nicely integrated with DEPTH feature above to make for a more
compact interface.
If the object is not Folder-like, then  COUNT could perhaps be used to
display references or some such. In other words, how many times is this
object referred to explicitly? I realize that dynamic Zopesite references *
acquisition could make this a painful/impossible question. But counting
static references could be very useful.
How should COUNT work with say 'standard_html_header? hmmm not sure.. My
idea is that at a minimum it could estimate how many references existed
below this part of the ZODB tree.

CHANGES
The idea here is to give a useful indication of objects which have changed.
But when and how?
I really don;t have an answer to this...
- perhaps a limited search using UNDO mechanism
- perhaps a simple user ID and date which showed the last person to change
it.

PROPERTY
This one should be easy.. sort adn display all objects in 'manage' based on
common property names and values.
For example, have a property called 'status' - values might be 'OK',
'buggy', 'draft', 'approved' etc.
Too many properties and to many values would detract from usefulness
probably, some some pragmatic workflow-oriented values could be very
valuable for ordering and developing Zope 

RE: [Zope] ZDESIGN IDEAS = How to improve 'manage' ?

2001-01-08 Thread Mohan Baro

Are you planning a manage_install for products?
The ability for superusers to install complelte products directly through
the management interface, no need for ftp.
similar to import/export feature



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason
Cunliffe
Sent: Monday, January 08, 2001 11:20 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Zope] ZDESIGN IDEAS = How to improve 'manage' ?


Hello

I am cross poisting this becaese I beleie it merits responee fom both
lists..

The need to improve the manage interface has grown urgently clear to me
while using Zope myself, designing for all sorts of community and
collaborative Zope-based projects, demos for a number of innocent
bystanders, interested parties and potential clients.
Zope 'manage' is plain primitive at present.

Considering the power of Zope, and the real workflow needs of people working
with it, imho this present lack of thoughtful user interface makes no sense.
By ignoring these basics, Zope is neglecting a #1 self-promotion
opportunity - how it runs out of the box, and how quickly one can use it as
site-planning/design tool.It is quite unproductive now compared to what it
could/should be.

I am looking for real help here on how best to improve this...

Here is a list of features I believe should be default manage screen
behavior now.
Please submit your comments and improvements to these improvements:

KISS
For those who do not want any added features, there should be an option in
z2.py or as a manage_config DTML method in "/" or anywhere else in the tree
to enable or disable 'advanced manage' features.

---
1. SORT TABLE
'manage' needs to presented with basic column listings so one can display
sort by headings.

I am not sure if this turns into a CatalogAware Inferno or whether all this
info is  already hidden in the ZODB and could be extracted adn cached
sensibly and quickly. What do you think?

For example some headings I see a real need for:

NAME [default now], DATE[created, last modified] SIZE, TYPE[meta-type],
USER[default=owner], DEPTH, COUNT, CHANGES, PROPERTY, DISPLAY



NAME should be like now, but one needs to be able to group things more
sensibly, so that upper and lower-case can be ignored.
For example: MYFOLDER, myFolder_config, MyFOLDER_Display could all be
grouped together where the probably belong.

DATE
Fact of the matter is that, during development and very often during normal
life, we need to work on things according to the most recent ordering. This
is also an invaluable way for people on a development team to see what has
been 'happening'. Since Zope is a tool for 'customers who have customers who
have customers...' it means that even after the original site DTML/Python
developers may have gone home, a Zopesite is under development as long as it
is being used and growing. All of those users, especially deserve better
means to see and understand how the site is working and to allow them to
work better together.

SIZE
How big is this thing?
When I look at a graphic is it a thumbnail icon or a hires scan?
What about PDF
What about folders - how to calculate the size of folder?

TYPE
Display objects sorted by TYPE.

USER
Default sorts by Owner, but could also be designed to sort by last user who
accessed the object.

DEPTH
How many levels below this thing? This would only work for Zope folders.
An essential indicator of hidden complexity/importance etc.


COUNT
How many things are contained here? Targeted mainly for Zope Folders to
allow one get a good quick overview of site structure without needing to
click though a lot of trees of nested manage screens.
CONT could be nicely integrated with DEPTH feature above to make for a more
compact interface.
If the object is not Folder-like, then  COUNT could perhaps be used to
display references or some such. In other words, how many times is this
object referred to explicitly? I realize that dynamic Zopesite references *
acquisition could make this a painful/impossible question. But counting
static references could be very useful.
How should COUNT work with say 'standard_html_header? hmmm not sure.. My
idea is that at a minimum it could estimate how many references existed
below this part of the ZODB tree.

CHANGES
The idea here is to give a useful indication of objects which have changed.
But when and how?
I really don;t have an answer to this...
- perhaps a limited search using UNDO mechanism
- perhaps a simple user ID and date which showed the last person to change
it.

PROPERTY
This one should be easy.. sort adn display all objects in 'manage' based on
common property names and values.
For example, have a property called 'status' - values might be 'OK',
'buggy', 'draft', 'approved' etc.
Too many properties and to many values would detract from usefulness
probably, some some pragmatic workflow-oriented values could be very
valuable for ordering and developing Zope 

RE: [Zope] SQL editing

2001-01-05 Thread Mohan Baro

You can use the ZNolk SQL wizard also available from zope.org

Mohan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
Burton
Sent: Friday, January 05, 2001 12:47 PM
To: [EMAIL PROTECTED]
Subject: [Zope] SQL "editing"



  Hello All,

  I'm quite happy, got MySQL + the necessary adapters running in no 
time. Imported tab-delimited text and enjoying Zsearches... Zope 
kicks ass!

  Now, i'm wondering if there's anyone who've done some work as to 
permit easy editing of records in SQL tables? What i have in kind is 
something like:

  - do a search - a list of matches come up;
  - select a match - a form comes up filled with the data, and a 
"submit" button
  - press submit - SQL gets altered

  A bit like the "edit this page" philosophy, but for SQL records...

  Thanks!

Alex.
 

___
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] Login dialog - another newbie question

2001-01-04 Thread Mohan Baro

Hi there,

I have been trying to do the same. i.e. create a logon form,
what I have been told so far is that:
1) I have to use the method user.authenticate(,)
2) however I have found no documentation for user.authenticate() anywhere
3) others have suggested that I read the source:
ZOPE_DIR/lib/python/AccessControl/User.py


I think its has to be something like.
dtml-call "REQUEST.set('name', 'k.laird.1')"
dtml-call "REQUEST.set('password', '5678')"
dtml-call "acl_users.authenticate('Login', REQUEST, RESPONSE)"



Let me know if you manage to create a login form.




Mohan.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Michal Krejza
Sent: Thursday, January 04, 2001 3:38 AM
To: [EMAIL PROTECTED]
Subject: [Zope] Login dialog - another newbie question


Hi Zopitas,
I have problem with authentication in Zope. I made small site in our
company, and some informations are visible for anonymous user and some for
managers. So I need to authorize users before they connect to restricted
area. It's late for me, becose access to restricted methods is able through
links, which are visible only for managers. Is there any way to make some
form for login to Zope. But without another application like LoginManager or
MySQL User Folder and etc. My Zope server is running on WinNT and I have
problem with these application.

Michal Krejza

When users connect to a restricted area a dialog box pops up that
 looks more or less like 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] (no subject)

2001-01-03 Thread Mohan Baro

If its not ZOPE hosting ... don't send it here!!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, January 03, 2001 2:00 AM
To: [EMAIL PROTECTED]
Subject: [Zope] (no subject)


GET YOUR OWN 100 MEG WEBSITE FOR ONLY $11.95 PER MONTH TODAY!

STOP PAYING $19.95 or more TODAY for your web site, WHEN YOU CAN 
GET ONE FOR ONLY $11.95 PER MONTH!

DO YOU ALREADY HAVE A WEBSITE? ALL YOU HAVE TO DO IS TRANSFER THE 
DOMAIN TO OUR SERVERS AND UPLOAD YOUR DATA AND YOU ARE READY TO 
GO! YOUR NEW WEB SPACE CAN BE CREATED INSTANTLY WITH JUST A 
SIMPLE PHONE CALL TO  OUR OFFICE.

YOU CAN CHANGE THE DESIGN OF YOUR SITE AS MUCH AS YOU WANT with 
no extra charge!  UNLIMITED TRAFFIC -- no extra charge!

FRONT PAGE EXTENSIONS are FULLY SUPPORTED.

A SET UP FEE OF $40.00 APPLIES for FIRST TIME CUSTOMERS.

ALL FEES PREPAID IN ADVANCE FOR THE YEAR PLUS A $40.00 SET UP 
CHARGE.

FOR DETAILS CALL 1 888 248 0765  if you are outside the USA,
please fax 240 337 8325

Webhosting International

 
 
 
 
 
 
 
 
 
 
 
 
 

___
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] manage_users( ) method

2001-01-02 Thread Mohan Baro

Happy new year everyone, all the best.

Question:
Where can I get the specifications for acl_users.manage_users()?

Mohan.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kyler
B. Laird
Sent: Monday, January 01, 2001 4:29 PM
To: [EMAIL PROTECTED]
Subject: [Zope] terrible kludge to set password



I was unsuccessful at finding any examples of
changing a user's password from DTML, but I
did see a few requests for such functionality.
I bumped around quite awhile today trying to
figure out how to do it.  I didn't come up
with a good way, but I did find something that
works.

So, although it's terribly ugly, I thought I'd
throw my example out.  Perhaps it'll save
someone else some time.
dtml-call "REQUEST.set('name', 'k.laird.1')"
dtml-call "REQUEST.set('password', '5678')"
dtml-call "REQUEST.set('confirm', '5678')"
dtml-call "REQUEST.set('roles', ['CRUP_admin'])"
dtml-call "acl_users.manage_users('Change', REQUEST, RESPONSE)"

--kyler

___
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] ZOPE PTK

2000-12-27 Thread Mohan Baro

Hey everyone
I am tring to istall the Portal Toolkit

The following is the known bug in the PTK's documentation
==
Known Bugs

  There is something screwy going on with some of the DemoPortal's
  ZClasses.  The PortalWizard will sometimes appear 'Broken'
  immediately after installing PortalWizard.  Sometimes simply
  clicking on the 'Contents' view of the 'DemoPortal' product two or
  three times will solve this, though usually an additional restart is
  required.
==

The solution does not seem to be working for me.

I have a older version running at home.  But I can't get this version
install here at work.

the error I get is
===
Zope has encountered an error while publishing this resource.

Error Type: AttributeError
Error Value: __call__
===



Any suggestions?

Mohan.


___
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] LoginManager - logging out

2000-12-21 Thread Mohan Baro

Thank you

Mohan.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill
Anderson
Sent: Thursday, December 21, 2000 1:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [Zope] LoginManager - logging out


Mohan Baro wrote:
 
 Its just not working for me.
 
 I am going to try  LoginManager + ZPatterns (hope it has a handy logout
 feature)


Well, you could look at the Membership product to see how we do it
there. :)
IIRC, it works fine with the latest LM and Zope.

Zpatterns won't provide a logout feature, since that is not it's
responsibility.

Bill


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

2000-12-20 Thread Mohan Baro


Where do I get a copy of cPersistance.h? I need it to compile DynPersist.c


Mohan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Oliver Bleutgen
Sent: Wednesday, December 20, 2000 7:20 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] LoginManager



 Impo  rtError: No module named DynPersist

 does the LoginManager dependent from other product of zope?
 Do you know which product of zope contians "DynPersist"?

Reread the instructions for installing ZPatterns, they tell you 
how to compile Dynpersist.c.


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 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] LoginManager - logging out

2000-12-20 Thread Mohan Baro

Its just not working for me.

I am going to try  LoginManager + ZPatterns (hope it has a handy logout
feature)

Mohan.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill
Welch
Sent: Wednesday, December 20, 2000 9:45 AM
To: [EMAIL PROTECTED]
Subject: Re: [Zope] LoginManager - logging out


Inspired by Jim Washington's recent post re 'Anonymous user', I was
reminded of a previous post in which someone suggested
http://garbage:x@yourSite would also clear the browser's credential.
Much faster and works in IE and Konqueror, but not Navigator or lynx. Very
easy to test, too.

first,
http://yourSite/manage
and login
then
http://garbage:x/yourSite/debug
and check other/AUTHENTICATED_USER

On Tue, 19 Dec 2000, Bill Welch wrote:

 Not true, depends on the browser. My tests indicate that Navigator and IE
 both trash the existing good credential with the garbage one and you're
 really logged out. Konqueror and lynx seem to hang on to the last
 successful authentication and this method doesn't log you out.


___
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] LoginManager - logging out

2000-12-20 Thread Mohan Baro

Thanks for the tips:
1)the logout method work with shift+reload in IE (how would clear cached
pages from zope?)
2)the dtml-raise type="Unauthorized" method does not allow me to log back
in even when I try a redirect to a different page.

I am wondering if something is set incorrectly on my browser. If (2) works
for you it must work for me to??

Any way thanks for all the help  I get it to work I will post the
solution.

BTW
Do you know how the achieve [login/logout] at ZOPE.ORG ie Zope Portal
Toolkit ??



Mohan.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Oliver Bleutgen
Sent: Wednesday, December 20, 2000 1:01 PM
To: [EMAIL PROTECTED]
Subject: RE: [Zope] LoginManager - logging out


 reminded of a previous post in which someone suggested
 http://garbage:x@yourSite would also clear the browser's credential.
 Much faster and works in IE and Konqueror, but not Navigator or lynx.
Very
 easy to test, too.


Its just not working for me.

I am going to try  LoginManager + ZPatterns (hope it has a handy logout
feature)


Remember to press shift+reload in IE, this nasty thing just takes
the cached pages otherwise.
About LoginManager and ZPatterns, they won't help you for the
Basic http-authentication. This is really a client-side problem.

And finally, I reread a previous mail of  yours:

Thanks,

I have tried it.

dtml-raise type="Unauthorized"
Logout!!
/dtml-raise

I guess it logs me out. But it also gives me a login dialog box  it
does
not accept any of the account. So I cannot log back in! Why?


Just a quick guess, is it possible that you reenter your credentials and
just reload the page which contains the above code which again causes
an "Unauthorized" to be raised (and therefore causes the browser to
show the login-dialog again)?
Have you tried pointing your browser to another URI on that server?

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 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] LoginManager - logging out

2000-12-19 Thread Mohan Baro

Thanks,

I have tried it.

dtml-raise type="Unauthorized"
Logout!!
/dtml-raise

I guess it logs me out. But it also gives me a login dialog box  it does
not accept any of the account. So I cannot log back in! Why?

What is going on here?

Mohan.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill
Welch
Sent: Monday, December 18, 2000 11:06 AM
To: Mohan Baro
Cc: [EMAIL PROTECTED]
Subject: RE: [Zope] LoginManager - logging out


this is my logout DTML method

dtml-raise type="Unauthorized"
Logout!!
/dtml-raise

On Mon, 18 Dec 2000, Mohan Baro wrote:

 Can you please give an example of this code or method?

 Mohan.


___
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] LoginManager - logging out

2000-12-18 Thread Mohan Baro

Can you please give an example of this code or method?

Mohan.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill
Welch
Sent: Monday, December 18, 2000 10:14 AM
To: [EMAIL PROTECTED]
Subject: RE: [Zope] LoginManager - logging out


 authentication and that the browser caches the credential. This means
 unless you shut down your browser, whatever you do, you are back to
 square one.

Besides shutting down your browser, you trash its credential. Create a
simple DTML method that raises the 'Unauthorized' exception. Direct your
brower to that method. The browser will, in some form or manner, request
that you authenticate again. Now the important part, don't cancel the
reauthentication! Type in some garbage user name and password and send it.
Your brower will give you another chance to authenticate, but this one you
cancel and you're back to being anonymous as far as Zope is concerned.

Bill.


___
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] LoginManager - logging out

2000-12-18 Thread Mohan Baro

Where can I get more information on the following methods ( i.e which zope
documentation)

1) authenticate() as in dtml-call "AUTHENTICATED_USER.authenticate()"
2) logout()

Mohan


___
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] Copying a Zope Site

2000-12-17 Thread Mohan Baro

Hi everyone

Currently I am using the RPM version of ZOPE(2.2.2) from Jeff Rush.

I have installed the current verion 2.2.4 non RPM version.
I want to transfer my files from websites  products from the current site
to the new install.
Which files and directories do I copy?.

The RPM versions create a lot of directories and a startup file.

How can I use this startup file on the new server?


Thanks in advance.


Mohan.


___
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] HELP! - DTML Variables

2000-12-08 Thread Mohan Baro



In the 
code segment :

dtml-in 
expr="find_employee(employee_id='XXX')" size=50 
start=query_start dtml-if 
sequence-start

How do 
I declare a variable such as

intEmployee='123456'


so 
that I can use it as:

dtml-in expr="find_employee(employee_id=dtml-var 
intEmployee)" size=50 start=query_start dtml-if 
sequence-start


What I 
am really tring to do is:

dtml-in expr="find_employee(employee_id='dtml-var 
"AUTHETICATED_USER.getUserName()"')" size=50 
start=query_start dtml-if 
sequence-start
But I 
keep on getting syntax errors.



Mohan.


  


RE: [Zope] dtml-var date fmt=Date does not work!

2000-12-08 Thread Mohan Baro


this is what I use to get the current time.

dtml-var "_.DateTime()" fmt=Date


Mohan.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Thomas Volkmar Worm
Sent: Friday, December 08, 2000 4:42 AM
To: [EMAIL PROTECTED]
Subject: [Zope] dtml-var date fmt=Date does not work!


Hi,

trying the example

dtml-var date fmt=Date

from the DTML-Documentation, page 3, leads to the following result
when viewing the page. Why? I am using Zope 2.2.4. I get the same
 results on W98/WNT and Linux. Without this tag, the page works.

Regards
Thomas

{PRIVATE}{PRIVATE "TYPE=PICT;ALT=Zope"} Zope
Error
Zope has encountered an error while publishing this resource.
Error Type: KeyError
 Error Value: date

Troubleshooting Suggestions
Thisresource may be trying to reference a nonexistent  object
or variable date.

The URL may be incorrect.

The parameters passed to this resource may be incorrect.

A   resource that this resource relies on may be encountering  an
error.

For more detailed information about the error, please refer to
the HTML source for this page.
If the error persists please contact the site maintainer. Thank
you for your patience.

 {HYPERLINK "http://www.zope.org/Credits"}{PRIVATE
"TYPE=PICT;ALT=Powered by Zope"}{HYPERLINK
"http://www.zope.org/Credits"}
Traceback (innermost last):
  File
D:\Programme\Zope\lib\python\ZPublisher\Publish.py
 , line 222, in publish_module
  File
D:\Programme\Zope\lib\python\ZPublisher\Publish.py
 , line 187, in publish
  File
D:\Programme\Zope\lib\python\Zope\__init__.py,
line 221, in zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File
D:\Programme\Zope\lib\python\ZPublisher\Publish.py
 , line 171, in publish
  File
D:\Programme\Zope\lib\python\ZPublisher\mapply.py,
  line 160, in mapply
(Object: test)
  File
D:\Programme\Zope\lib\python\ZPublisher\Publish.py
 , line 112, in call_object
(Object: test)
  File
D:\Programme\Zope\lib\python\OFS\DTMLDocument.py,
 line 177, in __call__
(Object: test)
  File
D:\Programme\Zope\lib\python\DocumentTemplate\DT_S
 tring.py, line 528, in __call__
(Object: test)
  File
D:\Programme\Zope\lib\python\DocumentTemplate\DT_V
 ar.py, line 276, in render
(Object: date)
KeyError: (see above)


Thomas Volkmar Worm
Diagonalstr. 25
D-20537 Hamburg
Tel.: +49 40 2198 2741
Fax.: +49 40 2198 2742

___
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] DTML-LET problems

2000-12-08 Thread Mohan Baro

Thanks Ivan  Peter,

It work!.


Mohan.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Ivan Cornell
Sent: Friday, December 08, 2000 10:25 AM
To: Mohan Baro
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] DTML-LET problems


Mohan Baro wrote:

 Why doesn't the following code work?
 How do I achieve the desired functionality?

 dtml-let the_current_user="dtml-var
"AUTHENTICATED_USER.getUserName()""
 dtml-var the_current_user
 /dtml-let

 Mohan.

You can't embed dtml within dtml. Try:
dtml-let the_current_user="AUTHENTICATED_USER.getUserName()"
dtml-var the_current_user
/dtml-let

Ivan

PS, I would have replied to your previous post if it hadn't been in HTML!


___
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] DTML-LET problems

2000-12-08 Thread Mohan Baro

Why doesn't the following code work?
How do I achieve the desired functionality?


dtml-let the_current_user="dtml-var "AUTHENTICATED_USER.getUserName()""
dtml-var the_current_user
/dtml-let

Mohan.

___
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] Help! publishing Images from a Database

2000-12-07 Thread Mohan Baro

Can anyone help me to

I want to know how I can publish images stored in a SQL database.

I am trying to create an online photo album that stores images in a
database.
The features I want to implement are:

RetrieveImage, UpdateImage, InsertImage



I am running zope on linux mandrake and use ZSever
The database I am currently using is MySQL on MySQLDA (MySQLdb non-binary
dist.)

Mo.



___
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] Image from a Database

2000-12-06 Thread Mohan Baro


Hey Guys and Gals,

Can anyone help me to

Retrieve, Update, Insert image files into a Database in Zope.



I am running zope on linux mandrake and use ZSever
The database I am currently using is MySQL on MySQLDA (MySQLdb non-binary
dist.)

Mo.



___
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] Database Image Publishing

2000-12-05 Thread Mohan Baro

Hey Guys and Gals,

Can anyone help me to

Retrieve, Update, Insert image files into a Database in Zope.



I am running zope on linux mandrake and use ZSever
The database I am currently using is MySQL on MySQLDA (MySQLdb non-binary
dist.)

Mo.




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