[Zope-dev] LoginManger: multiple LoginMethods

2001-01-07 Thread John Eikenberry


Just got a basic loginmanager setup working with an SQL backend based off
the howto. Very simple once I figured out a couple things (thanks dlpierson
whoever you are).

Anyways... I want to be able to support both cookie based auth and basic
auth. With cookie based auth being the default unless they don't have
cookies (either because they have them turned off, behind a proxy filter,
etc), in which case they should use basic auth. The problem is I'm not sure
how to get it to use something other than cookie based auth. The default
setup tries to use cookie auth whether or not cookies are in use.

Any tips on how to get this working? I know there is no great way of
detecting cookies, besides setting one and testing for it. But even if I
did this, how do I say I want basic auth if the test cookie isn't found.

Thanks in advance for any tips/advice.

-- 

John Eikenberry
[[EMAIL PROTECTED] - http://zhar.net]
__
"A society that will trade a little liberty for a little order
 will deserve neither and lose both."
  --B. Franklin

___
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] __bobo_traverse__, new ZCatalog and ZClasses

2001-01-07 Thread Steve Alexander

Steve Alexander wrote:

> Zope 2.3, from cvs on 2000-12-24, patched with Chris P's latest ZCatalog 
> stuff.
> 
> I'm getting a bad interaction between ZClasses, ZCatalog and 
> __bobo_traverse__.
> 
> I have some ZClasses that are accessed via a container that implements 
> __bobo_traverse__. The problem is that, although I can get to the ZClass 
> instances by typing a URL into by browser, I get a security error when I 
> try to get to them using restrictedTraverse.
> 
> This causes a problem, as it means these instances cannot be catalogued 
> in a ZCatalog, because ZCatalog now uses restrictedTraverse to get an 
> object for indexing.
> 
> The zope security validation gets stuck between not knowing for sure 
> what the object's container is (according to comments from 
> Traversable.py), and ZClasses not returning anything for __roles__.
> 
> ZPatterns jargon paragraph:
> All this causes a problem if you want to use the ZPatterns idiom of 
> ZClass DataSkins in a Specialist, catalogued using a ZCatalog. You can 
> get around it by providing a __roles__ attribute using SkinScript.

In the latest ZCatalog product from CVS, this workaround is no longer 
needed.

When a ZCatalog tries to catalog an object, it first tries to get to it 
using restrictedTraverse, and if that fails, it uses REQUEST.resolve_url 
as a fallback.

REQUEST.resolve_url gets to the DataSkin in the Specialist without 
raising a security error.


> Is there some bug in the ZClasses __roles__ machinery?
> 
> When does __roles__ get set on objects or classes anyway? I've found the 
> description of what __roles__ are used for in the old Trinkets tutorial 
> document. I think things have moved on a bit since then, though.

I'd still like to know the answer to these two questions.

-- 
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net


___
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] Zope from CVS for Windows

2001-01-07 Thread Steve Alexander

Is anyone regularly building Zope from CVS for Windows?

I want to try something out on a Zope 2.3 build on windows, but I don't 
have easy access to windows development tools.

If you can help, please get in touch.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net


___
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] (no subject)

2001-01-07 Thread sfcsdckjkj

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