Re: [Zope-dev] Idea: Awaking Zope to Life

2002-10-15 Thread Bill Anderson

On Sun, 2002-10-13 at 09:44, Ulrich Eck wrote:
> Hi there,
> 
> I just had an Idea and want to hear your comments on the following:
> 
> Zope is a Request-Based System. It has no internal scheduling functions
> except one installs Xron.
> 
> I have written a MicroThread Scheduler using python2.2 generators
> that supply cooperative Multithreading.
> 
> Now the point:
> 
> I want to integrate this Scheduler as one Thread (like Xron)
> to Zope as "Service" where clients could register a callback
> with parameters which are called regularly with a certain priority.
> 
> Zope's Persistent Object Database would morph to an completely
> persistent Program that handles requests too.
> 
> One could use it to implement better Workflow capabilities,
> or an Event Sytem (a client would register a Thread that
> checks for incoming messages and handles them). Many more things
> could be done ..
> 
> What are the pitfalls i can run into, when trying to implement this ??
> I could think of concurrency issues, problem with threads, context,
> security .. any concrete hints ??
> 
> What do you think about that ??

Here is my two cents ...

I'd like to see Zope ship with ZEO, and by defaalt use it. To put the
value in this, it could ship with a separate process pre-configured to
connect to the same ZEO server (which would all be in one start up
script to keep it simple), and provide a means to do scheduling outside
of Zope, but inside do to the ZEO connection.

Then, you could use the ZMI/custom interface for managing the thing,
whilst a fully separate process runs the actual machinery of doing
things in a "time"ly fashion.

Fully internal, no, but combined with what you propose might well make
it very well integrated.

-- 
Bill Anderson
Linux in Boise Club  http://www.libc.org
Amateurs built the Ark, professionals built the Titanic.
Amateurs build Linux, professionals build Windows(tm).


___
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] Tyring to FTP to Zope running behind firewall, getlogin box but no directory listing

2002-04-23 Thread Bill Anderson

On Tue, 2002-04-23 at 18:52, Jason Spisak wrote:
> It would appear that their FTP implementation is not working
> correctly, when connecting to a Zope FTP system behind a 
> firewall.  
> 
> Zope is running on port 8880 and ftp service works fine from 
> inside the firewall on port 8821.  From outside the firewall, I 
> get a login prompt, enter my password, but then the directory 
> listing never materializes.  Since I get the login prompt, it's 
> not a firewall packet issue.

Do not be so quick to conclude that. FTP *has* firewall problems. since
I know nothing of the firewall, I can not help in too much detail.

-- 
Bill Anderson
Linux in Boise Club  http://www.libc.org
Amateurs built the Ark, professionals built the Titanic.
Amateurs build Linux, professionals build Windows(tm).



___
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: [Zope3-dev] Re: [Zope-dev] Cool stuff!

2001-12-04 Thread Bill Anderson

On Tue, 2001-12-04 at 11:38, Chris Withers wrote:
> Martijn Faassen wrote:
> > 
> > If people agree, I will go through the Zope 3 CVS and change all references
> > from Feature to Adaptor. :)

+1



___
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] Open Letter to zope-dev

2001-12-01 Thread Bill Anderson

On Sat, 2001-12-01 at 06:02, Joachim Werner wrote:
> Hi!
> 
> > > This is a totally different business model than the one Zope Corp. is
> using
> > > right now, but it might help refinancing the overhead a good community
> needs
> > > to have ...
> >
> >
> > Would it have to be done by ZC?
> 
> No, of course not.
> 
> And there could be more than one of course (though we'd need a Zope
> Standards Base like the LSB then ;-))


See, that is where I'd see ZC's role in a Zope Distribution world.
Theirs could be the standard base, with input from the community of
course. Naturally, it would not prevent ZC from offering
more-than-standard distributions.

Bill



___
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] Open Letter to zope-dev

2001-11-30 Thread Bill Anderson

...
> This is a totally different business model than the one Zope Corp. is using
> right now, but it might help refinancing the overhead a good community needs
> to have ...


Would it have to be done by ZC?




___
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] Python 2.2a1

2001-10-19 Thread Bill Anderson

On Fri, 2001-10-19 at 15:30, Andy McKay wrote:
> Is out and:
> 
> "Large file support is now enabled on Win32 and Win64 platforms, and
> automatically configured (at least on Linux and Solaris)."
> 
> Cool, that will mean there will be less worries about Zope users hitting the
> 2 gig limit.

As soon as Zope supports Python 2.2 :^)=
It will be nice, though.

Bill




___
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] A modest proposal: Replace medusa with Twisted

2001-10-10 Thread Bill Anderson

On Wed, 2001-10-10 at 06:17, seb bacon wrote:
> * Phil Harris <[EMAIL PROTECTED]> [011010 15:25]:
> > Thing is that from what I see win32 is the most popular platform for Zope
> > (I'm including experimenters here though, not just production sites).
> 
> Last time I looked at the zope.org download stats, it was about 2/3
> windows downloads...


bear in mind that a lot of people download on one machine for a separate
machine. Such as downloading at work over a faster connection, for
use/experimentation at home.

Bill



___
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: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Bill Anderson

On 28 Jun 2001 13:09:56 -0500, Stephan Richter wrote:
> 
> >I just realised something.  How do you need this to work?  With regards to
> >the wizard.  Should mk-zprod produce the files and add them to a folder in
> >itself?  Or should it return everything for the wizard to handle?
> 
> All what the wizard will do is provide the user with a nice interface/GUI 
> to enter the information. I will then pass the information to the above 
> mentioned management methods and the MakeZProduct Product will then 
> generate the code and save it to the file system.
> 
> BTW, we will assume that the user that runs the Zope engine has write 
> access to /ZOPE/lib/python/Products.
>

Don't forget about those of us that use $INSTANCE_HOME/Products



___
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] ZPL and GPL licensing issues

2001-06-21 Thread Bill Anderson

On 21 Jun 2001 21:18:16 +0200, Federico Di Gregorio wrote:
> On 21 Jun 2001 12:07:36 -0600, Bill Anderson wrote:
> [snip]
> > > err, no. if you write an external module using only python code, as long
> > > as you use a gpl-compatible python to run zope, you can call your
> > 
> > No, No, no, NO!
> > 
> > The License of PYTHON only applies to modifications, derivations, etc.
> > of _PYTHON_, NOT anything _written_ in it.
> 
> 
> you stand right here. i was thinking about psycopg that actually is C
> code that gets linked to python. but the border is not that clear. the
> question, as always, is: what if i subclass python core classes
> (released under the python license)? but that's a purely academical
> question, i think...
> 

At that point, it is rather academic. To carry it to the full, we would
then need to look at the license on C, and determine if that had an
effect, and I am sure we could carry it down even further, but as you
said, it is academic. Almost philosophical.




___
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] ZPL and GPL licensing issues

2001-06-21 Thread Bill Anderson

On 21 Jun 2001 17:18:40 +0200, Federico Di Gregorio wrote:
> On 21 Jun 2001 11:08:30 -0400, Jim Penny wrote:
> [snip]
> > OK, consider this from another point of view.  If I have an operating
> > system may I install a piece of GPL software on the operating system?
> > May I redistribute the operating system?  With the GPL software?
> > May I invoke/run the GPL software?
> > 
> > My understanding is that the answer to every one of these is yes.
> 
> yes. only if it is free. only if it is free. yes, but only because gpl
> allows for gpl code linking with the major components of the os even if
> they are proprietary.
> 
> > May I modify the GPL software and distribute it without giving
> > downstream the same opportunity.  Clearly no.
> > 
> > Now, s/operating system/zope/g
> > 
> > Do the answers to the questions change?  And, if so, why?
> > 
> > >From my perspective, and I think from fog's the answer is that
> > it should not change the answers.
> 
> err, no. if you write an external module using only python code, as long
> as you use a gpl-compatible python to run zope, you can call your

No, No, no, NO!

The License of PYTHON only applies to modifications, derivations, etc.
of _PYTHON_, NOT anything _written_ in it.


(BTW, according to the gnu site, Python 2.0.1 and 2.1.1 (and later) ARE
GPL-compatible :)

Bill



___
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] html_quote in CVS

2001-06-17 Thread Bill Anderson

On 17 Jun 2001 08:45:50 -0700, kent sin wrote:
> Formulator is broken by the Zope cvs version. 
> 
> It can not import html_quote from
> DocumentTemplate.DT_Util
> 
> I found html_quote being moved to DT_Var.py, but after
> change the Widget.py 
> 
> from DocumentTemplate.DT_Var import html_quote
> 
> it still report can not import.
> 
> What should I make this?
> 
> Does the new 2.4 break many products similarly?
> 
I would hope that anytime something that is able to be, or intended to
be,  imported is moved or deleted, that it be listed in the
Changes/Release Notes, along with notes on how to import it after the
change.


IMO, changing the location of importable-by-products things is similar
to changing the API. hence, should be documented.



___
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] getItem() changed in 2.3.2?

2001-06-14 Thread Bill Anderson

OK, the code below worked fine in 2.3.1 ..
===
user_ids=context.getUserNames()
users=[]
for i in user_ids:
  activity=context.UserSource.getItem(i).Active
  if activity==1:
state='Active'
  else:
state='Inactive'
users.append([context.getItem(i).id,state,context.getItem(i).getFullName()])
return users
===

But now, in 2.3.2, it returns an AttributeError for __call__. I've been
able to determine that  context,UserSource.getItem(i) is returning i for
some reason.

IOW, if i is a username, call to getItem returns the username.

now, of course, trying to get attributes from string is futile, but why
is it now returning a string, as opposed to the object? Did I miss
something?


Bill

--
Bill Anderson   Linux Specialist
Modular Network Storage R&D   
Random Redmond Quote:
Portable: survives system reboot.


___
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] CoreSessionTracking 0.8

2001-05-23 Thread Bill Anderson

On 23 May 2001 19:00:41 +0800, Howard Zhang wrote:
> Hi 
> The problem about CoreSessionTracking we describe before we can
> repeat again now. 
> The step is:
>( 1 )  User adds Burger to shopping cart
>( 2 )  User adds coke to shopping cart and click link to add coke
> again before request finished  
>( 3 )  The Burger is disappear in shopping cart and just one coke
> ( not two )
>( 4 )  Repeat the step 2,Burger is back




Your server is starving, let it get it's fill and feed it regularly.
Quit taking the food away from it. ;)

.



___
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] getPersistentItemIDs not cooperating?

2001-05-23 Thread Bill Anderson

On 23 May 2001 12:22:59 -0400, Phillip J. Eby wrote:

> I should probably do this in ZPatterns too.  I'm working on upgrading it 
> for 2.3.2 right now anyway.

A cheer sweeps across the crowd.



___
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] ZEO on SMP

2001-05-23 Thread Bill Anderson

On 24 May 2001 05:07:30 +1000, Dyon Balding wrote:
> Tino,
> 
> Thanks for your reply.
> 
> When you say it works fine on a dual processor machine, are you saying
> that a single ZEO client fully utilises both processors? or that you
> are running two ZEO clients successfully?

I am running dozens of them on a single machine, works damned well.
Pretty snappy too. Of course, this is under Linux, so YMMV.

Each domain/server cluster runs approximately 3 ZCs apiece.

> Unfortunately I'm currently stuck with Windows due to both political
> reasons, and because we are interfacing to a large SQLServer database.

Well, AIUI, the latter is easily solved. :)





___
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] Professional Sites Using Zope??

2001-05-16 Thread Bill Anderson

On 16 May 2001 12:15:54 -0700, Jawad wrote:
> 
> Hi,
> 
> I am a newbie in zope and want to use it to develop a e-commerce order 
> processing system using Zope. I have experience in languages like Smalltalk 
> and Java, so learning Zope is fun too.
> Please let me know What Database will be useful and please don't recommend 
> MY SQL. It does not even support Foreign Key relationship. Does Zope 
> support DB2 , SQL Anywhere, or Oracle.?
> 
> I am also interested to know Is there any professionally developed sites in 
> Zope/Python. Please let me know the URL.

Rule Number One:
 NO HTML ON THE LIST!


The, go to www.zope.org. There you will find mant links to sites/companies using zope, 
in addition
to documentation (such as the zope book, linked from the front page).

Bill



___
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] manage_workspace => index_html

2001-05-15 Thread Bill Anderson

On 14 May 2001 15:34:08 -0500, The Doctor What wrote:
> My workspace keeps being redirected to index_html
> 
> Example:
> http://host/manage_workspace redirects me to http://host/
> 
> Likewise, http://host/pi/manage_workspace redirects me to
> http://host/pi/
> 
> I don't understand it, but I see that netscape navigator doesn't
> seem to have this problem.  But Mozilla and Lynx does!

With mozilla, please state the version/buildnumber/daily-build-date.

I am using the latest 'release' and it works fine here, always has.

Bill



___
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] WebDAV etc permissions (Re: zope nautilus cabal)

2001-04-18 Thread Bill Anderson

On 18 Apr 2001 15:39:20 -0300, Lalo Martins wrote:
> On Fri, Apr 13, 2001 at 11:48:39PM +0100, Chris Withers wrote:
> > > The WebDAV (and XMLRPC) stuff either needs to be decomposed to run on its
> > > own port (and only that port) or more explicit permissions need to be
> > > associated with WebDAV/XMLRPC operations if we take for granted that being
> > > able to browse the root folder structure is a bad thing.
> (...)
> > Basically, 'access contents information' isn't a great permission. If you
> > turn if off, life gets horrible, if you leave it on, bits hang out. I'd
> > prefer to see something like:
> > - Access Contents Information via HTTP
> > - Access Contents Information via FTP
> > ..etc...
> 
> When I crawled out of bed today it ocurred to me that there is
> a very reasonable sollution already.
> 
> We've had a "FTP access" permission for ages. So, either:
> 
> - make WebDAV, XMLRPC etc protected by "View Management Screens"
> 
> - make WebDAV, XMLRPC etc protected by "FTP access"
> 
> - make WebDAV, XMLRPC etc protected by "DAV/RPC access"
>   (a new permission)
> 
> yes? 


Perhaps for webdav and ftp it would work fine. XML-RPC is a bit of a
different animal, as it runs through  http, thus on the same port as
zope's http side.  Going out on a limb here, I would guess that to move
XML-RPC to a seperate port would be very, very time consuming and
difficult; not to mention questionable with respects to the standard?

Bill

> 
> []s,
>|alo
>+
> --
>I say a prayer now our love's departed
> That you'll come back to stay
>   Bring back the perfect day
> 
> http://www.laranja.org/mailto:[EMAIL PROTECTED]
>  pgp key: http://www.laranja.org/pessoal/pgp
> 
> Brazil of Darkness (RPG)  ---   http://www.BroDar.org/
> 
> ___
> 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] Trouble with ZODB when switching betweenZope-releases with Python 1.5 and Python2.0

2001-04-05 Thread Bill Anderson

On 05 Apr 2001 12:28:34 +0200, Ulrich Eck wrote:
> hi out there,
> 
> I recently tried Zope-2.3.1b3 with Python 2.0 and it worked so far ...
> except some of the known issues at compile time ..
> 
> I had trouble with a few products including ParsedXML so I switched back
> to Python 1.5.2 and updated to Zope-2.3.1
> 
> I did not replace my Data.fs.
> 
> Everything works fine .. except when i want to browse one of my
> test-directories
> where I have many Instances of different Products I get this Error:



When you switched python versions, did you use a cleanzope tree?

if not (or just to clean it out) try deleting all the .pyc files in your
zope tree. I've seen this error when distributing .pyc files from 2.0
machines to 1.52 machines.

cd $ZOPEHOME
find * |grep .pyc$ |xargs rm

i use thiswhenever I seem to be having an issue, just to clear out
potential problems there (have had that before).

Bill



___
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] ZEO question.

2001-03-23 Thread Bill Anderson

On 23 Mar 2001 13:37:44 +, Duncan Booth wrote:
...
> BTW, I have managed to get ZEO running as an NT service 
> complete with Core Session in a mounted BerkeleyDB 3.2 storage.



I'd be interested in the BerkelyDB part, mind posting how you got the
last part?



___
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] How to build indexes in the MemberCatalog ofMembership Component?

2001-02-26 Thread Bill Anderson

On 23 Feb 2001 18:13:37 -0800, Dirksen wrote:
> Hi Bill,
> 
> When I open the 'find objects' tab in MemberCatalog, I can't see 'PortalMember' in 
>'find
> object in type' selection field. How to build indexes then? Thanks in advance!


Sorry for the delay, that's what i get for living on the bleeding edge
of Evolution*.

Note: Creating an index is not done via the 'find; page, but rather the
indexes page. What you are describing is cataloging currently existing
objects. As to why Portal member doesn't show up, I don't know.

I use, and recommend the use of a ZPattern trigger. You can get it by
downloading the DataSkins product. This way, whenever a member is
modified, it automatially updates/creates it's entry in the catalog.
Just be sure to specify MemberCatalog :)

Bill


* Evolution decided it didn't want to compose messages anymore ...



___
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] Bugs in Zope Membership Component 0.8.0b1

2001-02-23 Thread Bill Anderson

Dirksen wrote:

> Hi Bill,
> 
> All PythonScripts in ZMC 0.8.0b1 look like a direct port from Python Methods, so I 
>found
> some bugs due to the incompatibility between these two version of scripts.
> 
> 1. In 'passwordForm', 'import string' should be added.\

for those watching, it is actually genPasswordForm  :)

> 2. In 'passwordPolicy', 'self' should be ommited in the parameters list.
yup

> 3. 'register', I think, should be proxy to 'Manager', like the original version.

done

 
> There's another bug: anonymous user can access account's manageMe method! Say if 
>there's
> an account 'dummy', anyone can open 'www.dumy.com/test/acl_users/dummy/manageMe'. I 
>think
> the permission to view 'manageMe' should be hooked up to that of viewing management
> screen. I see that you have made some special arrangements in the 'Define 
>Permission' tab
> of 'Portal Member' ZClass definition, but that doesn't seem to protect its instance,
> which is a puzzle to me: what's the use to define permissions in ZClass definition or
> products?

Even better, changing the permissions on the method in the ZClass don't seem to 
propogate to existing entries, 
but do to new ones ...ohh, wait, damned browser caching ... 
 Ugh, must get some sleep.

Bill



___
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] 2gb ZODB size limit

2001-02-15 Thread Bill Anderson

On 15 Feb 2001 23:28:18 +0100, Morten W. Petersen wrote:
> [Tim McLaughlin]
> 
> | Is this true on windows too?  I saw some mention of this limit be lifted,
> | but if so, in what version?
> 
> It's not a problem on Windows, AFAIK.  It's a problem with Linux, if
> you want to be able to use databases > 2GB in size on Linux, a
> kernel >= 2.4.0 is required.



... or , on Redhat, an 'enterprise' kernel, as it has LFS built into it.
For otehrs, you can get the patch, and use it on 2.2 kernels 9check the
version number of the patch to teh kernel, of course, standard kernel
disclaimer applies).

Bill



___
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] Looks like 2.3.0 final didn't fix bug with copying ZCatalogs ...

2001-01-26 Thread Bill Anderson

...but the error message looks better ;^)=

Installed fresh 2.3.0, and Membership, so I could finish the testing,
and preop a 2.3.0 compatible release (mmm Python Scripts yummy), but
upon the install trying to copy the MemberCatalog I get the following
traceback. Perhaps it is an issue with PythonMethods, but it looks like
it is ZCatalog to me. 

The object MemberCatalog does not support this operation 

Traceback (innermost last):
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 222, in publish_module
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File /local/ZopeSites/anderson-2.3/lib/python/Zope/__init__.py, line
221, in zpublisher_exception_hook
(Object: RoleManager)
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 171, in publish
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: doInstall)
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: doInstall)
  File
/local/ZopeSites/anderson-2.3/lib/python/Products/PythonMethod/PythonMethod.py,
line 168, in __call__
(Object: doInstall)
(Info: ((, 'on', None, None, 0,
'webadmin', 
 (snip raw html data from form)
  File , line 47, in doInstall
(Object: RoleManager)
  File
/local/ZopeSites/anderson-2.3/lib/python/Products/PythonMethod/PythonMethod.py,
line 168, in __call__
(Object: copyInterface)
(Info: ((, , []), {}, (None,)))
  File , line 5, in copyInterface
(Object: RoleManager)
  File /local/ZopeSites/anderson-2.3/lib/python/OFS/CopySupport.py, line
333, in manage_clone
(Object: ProviderContainer)
  File /local/ZopeSites/anderson-2.3/lib/python/OFS/CopySupport.py, line
421, in _verifyObjectPaste
(Object: ProviderContainer)
Copy Error: (see above)

==
 yup, just tried to copy the MemberCatalog, same result:
Traceback (innermost last):
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 222, in publish_module
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File /local/ZopeSites/anderson-2.3/lib/python/Zope/__init__.py, line
221, in zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 171, in publish
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: manage_pasteObjects)
  File /local/ZopeSites/anderson-2.3/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: manage_pasteObjects)
  File /local/ZopeSites/anderson-2.3/lib/python/OFS/CopySupport.py, line
215, in manage_pasteObjects
(Object: ApplicationDefaultPermissions)
  File /local/ZopeSites/anderson-2.3/lib/python/OFS/CopySupport.py, line
421, in _verifyObjectPaste
(Object: ApplicationDefaultPermissions)
Copy Error: (see above)

-- 
Bill Anderson   Linux Specialist
Modular Network Storage R&D   
Random Quote:
Portable: survives system reboot.

___
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] Membership and the 2.3 beta2 ... bug in the latter!

2001-01-22 Thread Bill Anderson

Broke.
broke badly.

Not sur ecompletely why yet, but in 2.3b2, I can't move or copy a 
ZCatalog. There is one in the Membership interface, so as a result, no 
workie there.

After deleteing int from teh membership interface folder, I get a 
traceback complaining about too many arguments in checkRoles (3 instead of 
2). I haven't had time to dig into it yet, so I thought I would toss it up 
here so anyone with visibility to this issue can look at it.


Bill Anderson


___
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] Zope-2.3a2 and Loginmanager

2001-01-12 Thread Bill Anderson

Chris McDonough wrote:

> "super" still exists.  It's aliased to the emergency user.  There's a 
> comment in User to the effect that the use of super is deprecated, and 
> that emergency_user should be used instead.


Hmmm, I changed super to UnrestrictedUser ... see any problems with that 
do you?


> I don't believe the reading of the access file is a bug (it's there to 
> provide backwards-compatibility).

Backwards compat for reading it is fine, bailing because there is no 
access file would not be though. I experienced the latter.

 
> What is the actual problem with LoginManager you're experiencing?  How 
> does it fail?

Well, what _I_ saw was that it would not import if access file was not 
found, nor if the Super import referenced above was still there.

Bill



___
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] zopectl 0.0.1

2001-01-08 Thread Bill Anderson

Zope mailing lists wrote:

> I recently released 'zopectl', a python script that acts as a configurable
> front end to the z2.py script, implementing the defacto standard unix process

There exists in CVS (and perhaps 2.3.whateveralphaversionitis?) a 
zctl.py that also includes zeo controls, you may want to have a look at 
it as well. I was working on a similiar project. I am thinking about 
extending this one.

Bill Anderson



___
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] Preliminary test of Membership on CVS

2000-12-19 Thread Bill Anderson

Michael Bernstein wrote:
> 
> Bill Anderson wrote:
> >
> > On a related note, I am considering changing the python methods to
> > Python Scripts, this way when 2.3 comes out, it drops the number of
> > additional installs required by one, leaving Loginmanager and ZPatterns
> > the only (current) requirements. Python Scripts eem much better to use
> > than Python Methods anyway ;)
> >
> > Any thoughts on that from the community?
> 
> Bill,
> 
> The move to Python Scripts sounds like a good one.

Thanks, I think it is  agood one. I wonder if Python Scripts will be
officially 'supported', or at least an install documented for 2.2.x?
Relying on Python Scripts makes it 2.3 dependant, otherwise.

> BTW, Can you fold in my local roles changes, and create an

Could you resend that to me?

> additional Type of User Source for use with SMB? I'll
> contribute the code that I've got.

Probably won't do another Usersource for the nearing-release 1.0
version, but if you have one, I may put it in 1.x, and can provide it as
a file to DL from the site.

I'm working right now on policy objects, zopehelp Documantation, and
code cleanup. I was going to do PTK Integration, but don't have the time
to recreate the work others didn't share. ;)


___
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] Preliminary test of Membership on CVS

2000-12-14 Thread Bill Anderson

Just thought I'd give a quick notice regarding Membership.

I am trying it out on 2.3 (getting in early :). So far, the only problem
lies in LoginManager.

With LoginManager, the problem is that it tries to import "Super". in
2.3, Super is gone. It seems to be replaced by UnrestrictedUser. By
doing a search and replace on these (there are two instances of it,
IIRC), it works fine, almost.

It seems that Loginmanager looks for an access file. With the new user
system in 2.3, there may not be an access file. I just ran the
zpasswd.py file to create the Emergency user, and all went fine.


On a related note, I am considering changing the python methods to
Python Scripts, this way when 2.3 comes out, it drops the number of
additional installs required by one, leaving Loginmanager and ZPatterns
the only (current) requirements. Python Scripts eem much better to use
than Python Methods anyway ;)

Any thoughts on that from the community?


___
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] Help System Menu patch

2000-11-25 Thread Bill Anderson


After working with the Zope help System a bit, I got very annoyed that
there was no consistent ordering to the tree. For example, you could
repeatedly click the contents tab link, and watch it reorganize itsself.
Attached is a patch that sorts everything by id. 

Why id? Because then I can make my help menu item id's a numeric
sequence, and put the topics in a specific order.
Example:
  Membership
Overview
Membership Conventions

Rather than the order being random.

Attached is the patch. patch from the Zope root directory.
Once applied, you *don't* need to restart zope to see the change.


Bill Anderson


--
E PLURIBUS LINUX

--- lib/python/HelpSys/menu.dtmlSat Nov 25 13:22:45 2000
+++ lib/python/HelpSys/menu.dtml-newSat Nov 25 13:19:51 2000
@@ -2,7 +2,7 @@
 
 
 
-
+
 
   
 




[Zope-dev] CVS bug

2000-11-25 Thread Bill Anderson


I recently checked out a CVS version of Zope, and upon firing it up, it
gives an unauthorized error on the default index_html. You know, the one
that is included by default, that welcomes you to zope. After changing
it, and checking to verify that view is selected, etc. it still does so.
Has there been any progress on this?

Just as a manner of some form of completeness, I copied the data.fs to a
2.2.2 installation, and it works fine.

Bill Anderson

--
E PLURIBUS LINUX


___
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] Specialists, Racks, and Objects, oh my!

2000-11-13 Thread Bill Anderson


I want a specialist to have two (or more hypotheticaly) racks, and each
rack is to contain one type of object. I then want to be able to add
objects. 

I have the two racks set up, but I am unclear as to how to specify that
I want to add an item of a certain type, or to a certain rack.

Ideas appreciated ...

-- 
Bill Anderson Linux Specialist
HPSO  Thursday, November 02, 2000
Random Quote:
Portable: survives system reboot.

___
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] ZPatterns, Racks, Customizers, etc.

2000-11-02 Thread Bill Anderson

Looking for some docs, however incomplete, on programmatically (DTML OR
Python) add a Specialist (or Specialist Derived ZClass) and set up teh
defaultRack, and add a Skinscript/Trigger.

I would also like to be able to set the ZClass storage too ...

That's not asking much, is i ? :)


--
E PLURIBUS LINUX


___
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] ZPatterns Folder W/Customizer Support not aquiring title property

2000-11-01 Thread Bill Anderson

I have a Folder w/cs in my root folder, call it spamcan. Root folder has
a title defined, lets say it is "Spam Central"

A DTML Method in spamcan should display "Spam Central" when doing a
, should it not?


--
Bill Anderson
E PLURIBUS LINUX


___
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] ACL users and Packing the DB

2000-10-30 Thread Bill Anderson

Casey Duncan wrote:
> 
> Keith Larsen Wrote:
> > I have found a way to kill the user via a link or straight html url
> >
> >
> http://username:[EMAIL PROTECTED]:8080/testfolder?ids:list=acl_users&;
> manage_delObjects:method=Delete
> > now if I can get my lynx to run it ok I will be set. ( lynx does not like
> > it so far but works fine from a browser url )
> 
> If Lynx isn't working, try the -force_html switch. I think Lynx gets
> confused by the fact that the URL does not point to a .htm or .html file.

I doubt it is the lack of .htm/.html. Ihave a cronjob set up via lynx
that accesses a zope URL that doesn't have a .anything, and it works
flawlessly.

Add the --source switch to lynx, it should work then. In my case, I call
a URL that creates an instance of a ZClass. I suspect the
username:password _may_ be a factor, but it is likely you just need to
add the --source.


--
E PLURIBUS LINUX


___
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] Latest ZPatterns stability

2000-10-30 Thread Bill Anderson

Itamar Shtull-Trauring wrote:
> 
> How stable is the latest ZPatterns beta?  I'd like to put up a site using
> it, but I'm still kinda wary of doing it.  Admittedly, I ahven't had any
> TransactionErrors since upgrading. Has anyone had them?  Or are the
> transaction problems solved?  That's what worries me most, since it takes
> down all of Zope with it.

Ib elieve the TransactionErrors occur primarily when used in combination
with ZCatalog using subtransactions, and packing the db, and that
disabling subtransactions in the latter solves it. At teast, it did for
me.

Dunno about other transactionerrors, haven't had any.



--
E PLURIBUS LINUX


___
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] Membership and PTK

2000-09-30 Thread Bill Anderson


I am getting married Monday, and may be off lists for a week, so for
anyone who has done _any_ Membership/PTK Integration, PLEASE, send it to
me now, so I can work on it over the weekend, and next week.

I don't want to duplicate work already done.

Bill

--
E PLURIBUS LINUX

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

2000-09-20 Thread Bill Anderson

"Phillip J. Eby" wrote:
> 
> At 07:55 PM 9/20/00 -0600, Bill Anderson wrote:
> >
> >Potentially silly question:
> >
> >Any reason why a 'user folder' object has to be named 'acl_users'.
> >
> 
> Interesting.  A quick search of the Zope source turns up only 9 references
> to 'acl_users', found in only 4 source files.



> Personally, I think it's an intriguing idea, as I have had more than one
> application where I would rather have called a LoginManager by some name
> other than 'acl_users'.  But I'm not sure it would be worth the work.

One of the ideas I am kicking around is that of
CommunityMembershipSystem.
In Membership-CMS, a user folder owuld need to be made, to house the
user's objects. Now, there are a few ways of doing this...here are two:

1) Have the install method add a folder to do this with
2) Have the objects stored in the user object.

Both have their ups and downs.

For example, (2) would not deperate UID from URL's too cleanly; though
it would be easier to implement in short order. Meanwhile, (1) requires
the install method be given more information (where to put the folder?),
and could be trickier to debug.

In (2), the url to the member's folder would be "/Members/username"
instead of /acl_users/username", provided the userfolder could be named
something else. I don't see a reason off hand for a UserFolder to be
renamable.

Another reason I have considered it, is that it lends a _weak_ amount of
security-through-obscurity. For example, if you see the following in a
URL ".../acl_users/loginForm", you know that the site is running Zope,
and where the authorization takes place. I dunno if I like it being
_that_ obvious.

--
E PLURIBUS LINUX

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

2000-09-20 Thread Bill Anderson


Potentially silly question:

Any reason why a 'user folder' object has to be named 'acl_users'.

--
E PLURIBUS LINUX

___
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] Membership and Local Roles

2000-09-18 Thread Bill Anderson

Michael Bernstein wrote:
> 
> Steve Alexander wrote:
> >
> > Michael Bernstein wrote:
> >
> > > I posted this to the PTK list on Friday, but didn't get any responses
> > > over the weekend, so I'm reposting here.
> > >
> > > I feel that a barrier to Loginmanager and Membership becoming more
> > > generally usable for site builders is it's current lack of support for
> > > local roles. Specifically, members do not show up in the local roles
> > > screen (manage_listLocalRoles) user list.
> > >
> > > Through the magic of grep and find, I think I've identified the relevant
> > > sections of code in Zope that need to be duplicated in Membership (or
> > > maybe in LoginManager).
> >
> > I think you've found out why local roles don't work. Congratulations on
> > a successful code hunting mission :-)
> 
> I *think* I've created a getUserNames python method that returns the
> appropriate results:
> 
> Parameter list:
> self
> 
> Body:
> 
>  user_ids=self.UserSource.getPersistentItemIDs()
> 
>  names=[]
>  for i in user_ids:
>  names.append(self.getItem(i))
>  return names

Returns a list of objects.

> I basically copied the Membership getMembers python method for this.
> 
> Guess what? It still doesn't work.
> 
> I don't understand the differences between the code I pasted above and
> the code on the original getUserNames method (from :
> 
> def getUserNames(self):
> """Return a list of usernames"""
> names=self.data.keys()
> names.sort()
> return names

Returns a list of usernames.
 
> Can anyone tell me what I need to fix?

Unfortunately, I cannot yet.

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] SkinScript, and family

2000-09-08 Thread Bill Anderson

Steve Spicklemire wrote:
> 
> Hi Bill,
> 
>I doubt that skinscript is going to help with 'potentially
> complicated calculations'.

After looking, I don't think it wil either.

I am building statistics of of a call Tracking System. For example, each
ticket has a response time property, and one of the graphs needs average
response time.

Looks like PythonMehtods is the winner



-- 
Bill Anderson (ARC)Unix/Linux System Administrator
HPSO Engineering Productivity Team Friday, September 08, 2000   
Random Quote:
  Is there life before coffee? 
  Yes.
  Is there life after coffee?
  Unknown.

___
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] SkinScript, and family

2000-09-07 Thread Bill Anderson

OK, I have some potentially complicated calculations to build on a
Ticket Tracking system I've built here. I can do it in python mehtods,
but am wondering if skinscript will get me what i want as well. If
anyone has done dome stuff in skinscript they can share I would be
ecstatic. I don't necessarily need a tutorial (but would be happy to
review and rate one :), as I can learn fairly well from examples that
have an explanation of what the skinscript accomplishes.

TIA,
Bill


-- 
Bill Anderson (ARC)Unix/Linux System Administrator
HPSO Engineering Productivity Team Thursday, September 07, 2000 
Random Quote:
  Never eat anything bigger than your head.

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

2000-09-06 Thread Bill Anderson

Bill Anderson wrote:
> 
> Chris Withers wrote:
> >
> > From
> > http://www.zope.org/Members/michel/Projects/Interfaces/PublisherRequest:
> > > Deprecated attributes:
> > > - PARENTS
> >
> > What are we supposed to use instead now?
> 
> Glancing it over .. perhaps:
> steps: list of names traversed.

After seeing other posting with the same question ... Nope.

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

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

2000-09-06 Thread Bill Anderson

Chris Withers wrote:
> 
> From
> http://www.zope.org/Members/michel/Projects/Interfaces/PublisherRequest:
> > Deprecated attributes:
> > - PARENTS
> 
> What are we supposed to use instead now?

Glancing it over .. perhaps:
steps: list of names traversed.

??


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] MailHost, 2.2.1, and tracebacks

2000-09-04 Thread Bill Anderson

Bill Anderson wrote:
> 
> Bill Anderson wrote:
> ...
> >
> > The following patch seems to alleviate the problem, but I dunno if it affects 
>anything else:
> 
> yeah, it makes zope ignore the cookie login setup, and instead triggers basic Auth 
>... will work on it today. Ugh.


Thi sis getting old, replying to my own posts... But anyway, I wa sincorrect, it was a 
lack of a  causing
this problem.

So far, it works fine.

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] MailHost, 2.2.1, and tracebacks

2000-09-04 Thread Bill Anderson

Bill Anderson wrote:
...
> 
> The following patch seems to alleviate the problem, but I dunno if it affects 
>anything else:


yeah, it makes zope ignore the cookie login setup, and instead triggers basic Auth ... 
will work on it today. Ugh.

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] MailHost, 2.2.1, and tracebacks

2000-09-04 Thread Bill Anderson

Shane Hathaway wrote:
> 
> Bill Anderson wrote:
...
> >   File /local/ZopeSites/TestBed/lib/python/AccessControl/Owned.py, line 152, in 
>getOwner
> > (Object: mailPasswordTemplate)
> > ValueError: (see above)
> 
> By any chance does it say something to the effect of "Unpack tuple of
> incorrect size"?  If so, I suggest you add a "print owner" statement
> just before line 152 of Owner.py and tell us what it says.


Hi Shane, I apologize for the delay, been working on other aspects of it.
I added a print statement, and it prints [].
line 52 reads:
udb, oid = owner
Which makes sense that it would barf, since the list is zero-length.

Here is the code bit, with my print statement added in:
-
def getOwner(self, info=0,
 aq_get=aq_get, None=None, UnownableOwner=UnownableOwner,
 ):
"""Get the owner

If a true argument is provided, then only the owner path and id are
returned. Otherwise, the owner object is returned.
"""
owner=aq_get(self, '_owner', None, 1)
if owner is None: return owner

if info: return owner

if owner is UnownableOwner: return None
print owner
udb, oid = owner
root=self.getPhysicalRoot()
udb=root.unrestrictedTraverse(udb, None)
if udb is None: return SpecialUsers.nobody
owner = udb.getUserById(oid, None)
if owner is None: return SpecialUsers.nobody
return owner
--

The following patch seems to alleviate the problem, but I dunno if it affects anything 
else:
==
--- lib/python/AccessControl/Owned.py   Mon Sep  4 13:56:52 2000
+++ lib/python/AccessControl/Owned.py   Mon Sep  4 13:55:40 2000
@@ -149,6 +149,8 @@
 
 if owner is UnownableOwner: return None
 
+if len(owner)==0: return None
+
 udb, oid = owner
 root=self.getPhysicalRoot()
 udb=root.unrestrictedTraverse(udb, None)
===

Basically, I test for an empty list, and return None.

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] MailHost, 2.2.1, and tracebacks

2000-08-31 Thread Bill Anderson

OK, I've bee trailing this bug for quite some time, and haven't found a solution other 
than not use 2.2.1 :(


In PortalMembership's acl_users folder's MailPassword Process ...
We have mailPasswordTemplate.

==



From: "&dtml-email_from_name;" <&dtml-email_from_address>
To: 
Subject: Membership reminder

Your password: 

Request made by IP  at 

Your password has been mailed.  It should arrive in your mailbox momentarily.

=

And when called via the mailPassword method I get:
===
Traceback (innermost last):
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /local/ZopeSites/TestBed/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: Transactional)
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: mailPassword)
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: mailPassword)
  File /local/ZopeSites/TestBed/lib/python/Products/PythonMethod/PythonMethod.py, line 
168, in __call__
(Object: mailPassword)
(Info: ((, 'Bill2',#Isnippedformcontents#), {}, 
None))
  File , line 10, in mailPassword
(Object: Transactional)
  File /local/ZopeSites/TestBed/lib/python/OFS/DTMLMethod.py, line 172, in __call__
(Object: mailPasswordTemplate)
  File /local/ZopeSites/TestBed/lib/python/DocumentTemplate/DT_String.py, line 528, in 
__call__
(Object: mailPasswordTemplate)
  File /local/ZopeSites/TestBed/lib/python/Products/MailHost/SendMailTag.py, line 182, 
in render
(Object: MailHost)
  File /local/ZopeSites/TestBed/lib/python/OFS/DTMLMethod.py, line 194, in validate
(Object: mailPasswordTemplate)
  File /local/ZopeSites/TestBed/lib/python/AccessControl/SecurityManager.py, line 139, 
in validate
  File /local/ZopeSites/TestBed/lib/python/AccessControl/ZopeSecurityPolicy.py, line 
178, in validate
  File /local/ZopeSites/TestBed/lib/python/AccessControl/Owned.py, line 152, in 
getOwner
(Object: mailPasswordTemplate)
ValueError: (see above)
===


The exact same code (copy->paste, also prior product) works under 2.2.0.
Also, for some reason, I have to have a MailHost in the acl_users folder, and that 
shouldn't be...I have one in root.

Grumpily, Bill

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] 2.2.1, Membership, and a __hash__ error.

2000-08-31 Thread Bill Anderson

When trying out the mailPassword function (which creates a new encrypted password, and 
sends the raw password to the
user), I get this error (I swear it worked in 2.2.0):

Traceback (innermost last):
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /local/ZopeSites/TestBed/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: Transactional)
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: mailPassword)
  File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: mailPassword)
  File /local/ZopeSites/TestBed/lib/python/Products/PythonMethod/PythonMethod.py, line 
168, in __call__
(Object: mailPassword)
(Info: ((, (note: snipped form contents)
  File , line 7, in mailPassword
(Object: Transactional)
  File /local/ZopeSites/TestBed/lib/python/Products/PythonMethod/PythonMethod.py, line 
173, in __call__
(Object: mailPassword)
(Info: ((, (note: snipped form contents), {}, 
None))
  File , line 2, in mailPassword
(Object: billT)
  File /local/ZopeSites/TestBed/lib/python/Products/LoginManager/LoginManager.py, line 
65, in getItem
(Object: Transactional)
  File /local/ZopeSites/TestBed/lib/python/Products/ZPatterns/Rack.py, line 57, in 
getItem
(Object: Transactional)
  File /local/ZopeSites/TestBed/lib/python/Products/ZPatterns/DataManagers.py, line 
49, in _canonicalForm
(Object: Transactional)
AttributeError: (see above)

This is the last error I am concerned about for a new release, btw.

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] New version of PortalMembership likely coming within 24 hours

2000-08-31 Thread Bill Anderson


If you said you had patches for me, now is the time.
I have some fairly significant improvements and fixes  ready (missing a deluser 
function at the moment, can't even find
delItem in my tree anywhere...)

(I've been working at it for the last 5 hours straight, my brain is a bit too fizzeled 
to remember who had patches for
me)

Bill

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Uh-oh, can't access roles property ...

2000-08-31 Thread Bill Anderson

Bill Anderson wrote:
> 
> (Membership devel issue)
> 
> OK, since I was getting nowhere, I tried a nre tack. I made the roles property a 
>multiple_select. Seemed to work great.
> I could give roles to members.
> 
> BUT, as soon as I deleted it ...
> 
>   TypeError


Found it. Seems I set roles to a string in the form. Got aorund it, and put a 
pre-emptive strike in (roles:list) in.

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Uh-oh, can't access roles property ...

2000-08-31 Thread Bill Anderson

(Membership devel issue)

OK, since I was getting nowhere, I tried a nre tack. I made the roles property a 
multiple_select. Seemed to work great.
I could give roles to members.

BUT, as soon as I deleted it ...

  TypeError

  Sorry, a Zope error occurred.

  Traceback (innermost last):
File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 187, in 
publish
File /local/ZopeSites/TestBed/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
  (Object: Traversable)
File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 171, in 
publish
File /local/ZopeSites/TestBed/lib/python/ZPublisher/mapply.py, line 160, in 
mapply
  (Object: manage)
File /local/ZopeSites/TestBed/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
  (Object: manage)
File /local/ZopeSites/TestBed/lib/python/App/special_dtml.py, line 120, in 
__call__
  (Object: manage)
  (Info: /local/ZopeSites/TestBed/lib/python/OFS/properties.dtml)
File /local/ZopeSites/TestBed/lib/python/DocumentTemplate/DT_String.py, line 
528, in __call__
  (Object: manage)
File /local/ZopeSites/TestBed/lib/python/DocumentTemplate/DT_In.py, line 691, 
in renderwob
  (Object: propertyMap)
File /local/ZopeSites/TestBed/lib/python/DocumentTemplate/DT_In.py, line 691, 
in renderwob
  (Object: _[select_variable])
File /local/ZopeSites/TestBed/lib/python/DocumentTemplate/DT_Util.py, line 
337, in eval
  (Object: getProperty(id) and (_['sequence-item'] in getProperty(id)))
  (Info: getProperty)
File , line 0, in ?
  TypeError: string member test needs char left operand

This happens when trying to access the 'RestrictedProperties" property sheet in the 
management interface.

Any clues?
--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] 2.2.1 changes tighten security?

2000-08-30 Thread Bill Anderson


Working on a new release of Membership, I have encountered a problem.

Doing the development in 2.2.1, I cant seem to access my roles managemenu UI as 
Manager.

For those who haven't seen it, her eit is:

  
  
 
   
   
  

Where ShowUsers is a python mehtod that returns a list of user objects.

The traceback indictaes the problem lies in accessing "user.roles". roles is on the 
Restricted Property sheet, which
requires you have the 'Manage users" role. Of course, as manager, I expect I have it. 
:)

This worked fine in 2.2.0, and was wondering if anyone knew what changes would bring 
this behaviour out, and how to fix
it off hand.

TIA, Bill


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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 version of BTreeFolder. Just a Newbie Question

2000-08-28 Thread Bill Anderson

Shane Hathaway wrote:
> 
> LEE Kwan Soo wrote:
> >
> > Oh, well, I'd bet this is a silly question. But I can not resist nor find answer 
>by myself.
> >
> > Q: Why don't you BTree-fy all the subclasses of ObjectManager?
> > Is there a reason that anyone but can a newbie see?
> 
> Obviously what BTreeFolder does should be available in standard
> folders.  That is a long-term goal for Zope.  BTreeFolder only exists
> to scope out the need for big folders as well as provide the capability
> in the short term.


Any chance at a BTree Folder w/customizer suppor tin the near future? :)

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

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

2000-08-23 Thread Bill Anderson

Terje Malmedal wrote:
> 
> [Bill Anderson]
> > Terje Malmedal wrote:
> >>
> >> Can anybody please provide a simple example of a working usersource
> >> written in python?
> 
> > Look at the UserSource source for LoginManager and Membership.
> 
> I did that. I feel I am missing something obvious.
> 
> What I do is:
> 
>   * create a folder named "/test"
>   * inside /test I choose login manager from the "avaliable objects" drop down.
>   * select "solid user source" from the menu.
>   * press "add"
>   * create an index_html which Anonymous is not allowed to see.
> 
> When I access /test from an unauthenticated webbrowser it finds that
> it can't view it and pops up the username/password window, but neither
> retreiveItem nor anything else gets called.

Is your login form even calling the authenticate method? check your login method.


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

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

2000-08-21 Thread Bill Anderson

Terje Malmedal wrote:
> 
> Can anybody please provide a simple example of a working usersource
> written in python?


Look at the UserSource source for LoginManager and Membership.

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Membership Security Update

2000-08-09 Thread Bill Anderson

A day or so ago, I made an announcement that there may be a problem with Zope storing 
passwords for members in the clear
in the SystemProperties propertysheet.

After som einvestigation, it does exactly what it is supposed to do. That is, store 
them encrypted with crypt by
default. The catch is, if crypt is not importable for some reason, it stores them in 
plain text.

Systems tested
 Linux, RedHat 6.2: Crypt works fine
 HP-UX 11.0: Crypt does not import, thus it stores them as plaintext.


If you install the Membership product, add a user, and then look at the property 
sheets for the user (see the wiki), you
can verify whether your platform encrypts correctly or not. If your system is not on 
the list above, please let me know
the results. Odds are all the current Linux distributions work fine.

Otherwise, it works fine. :^)=

Bill


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] DataSkin propoerty Sheets/Providers.

2000-08-03 Thread Bill Anderson

"Phillip J. Eby" wrote:
> 
> At 07:09 PM 8/2/00 -0600, Bill Anderson wrote:
> >I think I have a decent handle on this concept, but something seems
> lacking, I hope
> >someone can clear it up :)
> >
> >So, let us say I have an object, call it a Member. :)
> >And let us say I want to be able to add a property sheet to it in a
> customizer/specialist.
> >AIUI, I should be able to add a persistent sheet provider, give it the
> name I want for the
> >sheet, and define the sheet?
> >
> >Geex, the more I write what I want to do, the less I feel I grasp it. :(
> >
> >Basically, let me put it this way:
> >I have DataSkins (ZClasses). I have one or two property sheets that I want
> most/all of the
> >DS objects to have. I don't want to have to define the property sheet in
> each and every
> >ZClass. AIUI, PersistentSheet providers can do this. I want to do it with
> the default
> >ZPatterns/LoginManager includes.
> >
> >So, am I totally clueless, or am I just looking to hard, and missing
> something blatantly
> >obvious?
> >
> 
> PersistentSheetProviders can do what you want - *but* there is one
> drawback.  PSP's have no concept of a sheet schema, so you have to add the
> sheet and set up its schema in code for *each instance*. 

Rats. :/

> The good news is,
> you can do that from an "add" trigger, by calling
> self.propertysheets.manage_addPropertySheet(id='name', xmlns=''), followed
> by self.propertysheets.get('name').manage_editProperties(...).  (You can
> even do it as a tuple expression, i.e. just seperate the two expressions
> with a comma.  Rendered in SkinScript it would look like:
> 
> WHEN OBJECT ADDED CALL
> self.propertysheets.manage_addPropertySheet(id='name',xmlns=''),
> self.propertysheets.get('name').manage_editProperties(...)
> 
> (The "..." should be replaced with appropriate parameters for
> manage_editProperties, of course.)  Unfortunately, this will not allow you
> to initialize the property sheet contents except with constant data, data
> from the instance, or from self.REQUEST.

OK, after the Wierd Al concert tonight, I'll give it a shot. :)


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] DataSkin propoerty Sheets/Providers.

2000-08-02 Thread Bill Anderson

I think I have a decent handle on this concept, but something seems lacking, I hope
someone can clear it up :)

So, let us say I have an object, call it a Member. :)
And let us say I want to be able to add a property sheet to it in a 
customizer/specialist.
AIUI, I should be able to add a persistent sheet provider, give it the name I want for 
the
sheet, and define the sheet?

Geex, the more I write what I want to do, the less I feel I grasp it. :(

Basically, let me put it this way:
I have DataSkins (ZClasses). I have one or two property sheets that I want most/all of 
the
DS objects to have. I don't want to have to define the property sheet in each and every
ZClass. AIUI, PersistentSheet providers can do this. I want to do it with the default
ZPatterns/LoginManager includes.

So, am I totally clueless, or am I just looking to hard, and missing something 
blatantly
obvious?



--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Membership and ZPatterns

2000-07-30 Thread Bill Anderson

OK, so I have been playing with ZPatterns quite a bit lately.

And some old (current) issues with PTK comes back to mind.

Among them are:
 o Not all portals will want a user to have a folder
 o username is not changeable

With ZPatterns, I believe we can solve the first one. 

First things first, the first one. :)

Proposal:
 On the Membership Add form, there be an option for user folders. If set, this option
would install a trigger. This trigger would then, upon creation of a new user, fire 
off a
MakeMemberFolder (that name is just a placeholder) method that would handle the 
creation
of their folder. Of course, this is secondary in priority to getting some user 
management
tools available, IMO.

Now, something to remember, is that the lack of a user folder does not neccesarily
elminate the capability of a user to contribute to the community site information base;
though that is desireable for some sites. Through use of ZTopics, ZPatterns-based 
Content,
and ZCatalog, one can build a site that stores types of content in it's own place, and
provide a variable interface, for both browsing, and user management. I am actually
working on a site built like this, so I know it is do-able. :)

Thoughts, Opinions?

Bill


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Membership 0.6.1 available

2000-07-28 Thread Bill Anderson


OK, I have an updated Membership product avalable at 

http://www.zope.org/Members/Bill/Products/Membership

Basically, it fixes the keyword parameter problem, and I've started adding the hooks to
eventuall plant a user management interface onto. I just need one crucial piece of the
puzzle ... I think. ;)

Anyway, same warnings on this as with the version Kevin had. Use in production at your 
own
risk (yes, I take the risk ;)


Bill

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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-dev] ZPatterns Documentation]

2000-07-28 Thread Bill Anderson

Chris Withers wrote:

> I can't help thinking that a _really_ simple example that _only just_
> uses the available features would help to make it real for people like
> me...


Well, I have made a 'News Article' toy from ZPatterns, more so to get a feel for the
mechanics than for any 'advantage' ZPatterns offers (AIUI). I could post the process I
made, like a walkthrough if anyone is interested.
(Thanks to Steve Alexander for som ehelp on #zope last night!)

Bill



--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] ZPatterns 0.4.1snap

2000-07-27 Thread Bill Anderson

"Phillip J. Eby" wrote:
> 
> At 08:06 PM 7/27/00 +0400, Jephte CLAIN wrote:
> >By the way, besides new features like skinscript and proxy settings, did
> >you fix any bugs from 0.4.0a5 in 0.4.1a5 that would make me have to
> >upgrade my current ZPatterns?
> >
> 
> IIRC, nothing that would affect you on 2.1.6.  I vaguely recall some fixes
> for 2.2 stuff, but I think they were all out in 0.4.0a5 anyway.


Just a note:
I sent an email earlier to Phillip about this, but it may be a good isea to get it out
here too.

I used a fresh install of zope, and the new ZPatterns snap for testing. 
The latest LM (0.8.7a1) does not seem compatible. It errors out complaining about not
being able to import stuff, Like Rack (IIRC), and one other.



--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Bi-directional update of Data.fs

2000-07-27 Thread Bill Anderson

Chris Withers wrote:
> 
> Steve Alexander wrote:
> > Don't see why not. When an object is changed, the new object is just
> > appended to the end of Data.fs. Unless you use undo, or you pack the
> > Data.fs.
> 
> You missed the problem ;-)
> 
> Technically, there is no problem...
> 
> Logically, what happens if one user updates and object on one machien
> and another user on another machines, after which you merge the
> data.fs's?

That's what the 'your version is canonical' qualifier handles :-)



--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Quickie on ZPatterns ... I promise :)

2000-07-27 Thread Bill Anderson

Itamar Shtull-Trauring wrote:
> 
> Bill Anderson wrote:
> >
> > Let's say I have an object I will store in a rack. Let us say I want this object 
>to be
> > cataloged in a ZCatalog. Any caveats I need to know about
> > ..such as "Don't do that!" ?
> > ?;^)=
> 
> You can't have them inherit from CatalogAware, you'll need to use a trigger
> that does this for you.  I'm uploading a Product that gives this capability
> - and unlike CatalogAware, it recatalogs *automatically* whenever the object
> changes.  No more object_reindex! (I only tested extensively with DataSkins,
> though).
> 
> http://www.zope.org/Members/itamar/ZPAddons

Cool! I'll check it out today/tomorrow.



Now if only I could figure out how to change user.__roles in Membership, I'd have a 
really
cool Memebrship Release ready :-)

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Quickie on ZPatterns ... I promise :)

2000-07-27 Thread Bill Anderson

Steve Alexander wrote:
> 
> Bill Anderson wrote:
> >
> > Let's say I have an object I will store in a rack. Let us say I want this object 
>to be
> > cataloged in a ZCatalog. Any caveats I need to know about
> > ..such as "Don't do that!" ?
> > ?;^)=
> 
> Make one of the object's base-classes DataSkin.
> 
> Don't make it CatalogAware.

that was my hunch ...

> 
> Use triggers to index and unindex the object from a catalog. You'll
> probably want to store the catalog in Specialist.

OK, guess it's sime to learn triggers ;-)

> 
> By the way, Phillip Eby has released a new development snapshot:
> 
> 
> http://www.zope.org/Members/pje/ZPatterns/ZPatterns-0-4-1snap1.tgz/view
> 
> I'll be trying it later today.

Likewise.

Gotta see how/if it works with membership.

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

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Quickie on ZPatterns ... I promise :)

2000-07-27 Thread Bill Anderson

Let's say I have an object I will store in a rack. Let us say I want this object to be
cataloged in a ZCatalog. Any caveats I need to know about
..such as "Don't do that!" ? 
?;^)=


Bill

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Memebrship User management

2000-07-25 Thread Bill Anderson

OK, so I have been working on a set of user management methods for Membership by 
ta. I
have it where I can see a list of users, and their roles. now, what I need is a way to
modify Roles.

So, looking into the source, I see that roles exists (as currently implemented) as
__roles. This means that you can't modify roles from the web.

So, I added this to the MemberMixin:

def changeRoles(self,roles):
self.__roles=roles
return self.getRoles()

Restartted zope, yadda yadda. Now, it appears to be setting the roles (if I return
self.__roles I see the changes), but the changes are not persistent, since the roles 
don't
seem to be changed. The above will return the same roles the user had prior to the 
call to
changeRoles. :(

So, thinking back to the transactional nature of the ZODB, I added a:
get_transaction().commit(1)
...before the return ... no luck.

Then tried:
get_transaction().commit(1)
...same result.

Now, it is getting early (you know, once you past 'late' ;^) ... and my brain is 
shutting
down. So I figured I would post this to the list, to see if anyone has any bright (or
not-so-bright) ideas. Yeah, I know the above is a total kludge, but I wan't to get this
working before re-implenting a 'bettr' default PUS, to make sure I understand what I am
doing. {:^)=

Bill


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Zope Add-on Installation

2000-07-20 Thread Bill Anderson

Chris Withers wrote:
> 
> Bill Anderson wrote:
> > I believe he is talkin gabout the __init__  function checking to see if
> > the .zexp has been imported, and if not, importing it for you. It's an
> > idea I have kicked around, but haven't tried yet.
> 
> IIRC, the 'Distribution' tab creates all this for you...
> 
> It creates a binary file (maybe a zexp?) and an __init__.py file that
> imports it for you and wraps them all up in a TarBall with the correct
> paths :-)
> 
> cheers,
> 
> Chris

Hmmm .. I don't seem to see any zexps in any of the distribution tabbed
products I have. Admittedly, that isn't a high number :|

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Zope Add-on Installation

2000-07-19 Thread Bill Anderson

Chris Withers wrote:
> 
> Dieter Maurer wrote:
> >  > What is needed is a new way of installing Zope stuff for the following
> >  > categories:
> >  > 1. Python Base Products (Like ZPatterns, PTKBase and TrackerBase)
> >  > 2. Instantiatable Products (like TinyTables, Squishdot and Tracker)
> >  > 3. Interface Skins (none right now, DemoPortal is probably the closest)
> 
> Sadly tarballs only address issues 1 & 2 that I can see above...
> 
> I wonder if ZPatterns Specialists address 3?
> 
> > Tarballs are flexible enough to install both a Python Products and
> > associated ZClasses from ZEXP's (the products "__init__" function
> > imports the ZEXP at the appropriate place, if it is not already
> > there).
> 
> I presume you mean the thing created by the 'Distribution' tab of
> products?


I believe he is talkin gabout the __init__  function checking to see if
the .zexp has been imported, and if not, importing it for you. It's an
idea I have kicked around, but haven't tried yet.



--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] ZEO and MountedStorage: Access DENIED!

2000-07-13 Thread Bill Anderson

Shane Hathaway wrote:
> 
> Bill Anderson wrote:
> > I have been thinking, and I think I have got a good idea. So I figured I
> > woudl toss it out for commentary.
> >
> > What we need now is a Mountable ZSS Product. This would be kind of a
> > MountedStorage meets ZEO breed, where you would specify the ZSS
> > host/port combo, and it could act like a mounted FileStorage, except it
> > would talk to a ZSS.
> >
> > Whaddya think?
> > Any educated guesses as to the difficulty?
> 
> It would be a simple, intermediate-level project.  MountPoint is a base
> class.  You're supposed to provide the implementation of just one
> method.  That method is supposed to return a DB object.  So your product
> would be just like Anthony's, except it would accept host and port
> parameters and return a DB derived from a ClientStorage object.
> 
> Shane

Cool. Perhaps if I get time this weekend, I'll hack a quick version up.
:)

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] ZEO and MountedStorage: Access DENIED!

2000-07-13 Thread Bill Anderson

Bill Anderson wrote:
> 
> Pardon the lawnmower man reference, but ZEO and MountedStorage do _not_
> work together. I just tried, so this is just an initial report.
> 
> What happens, is htat the local ZEO Client wil try to mount the
> additional .fs-es on the local system, which will fail.


OK,  I know I am replying to myself

I have been thinking, and I think I have got a good idea. So I figured I
woudl toss it out for commentary.

What we need now is a Mountable ZSS Product. This would be kind of a
MountedStorage meets ZEO breed, where you would specify the ZSS
host/port combo, and it could act like a mounted FileStorage, except it
would talk to a ZSS.

Whaddya think?
Any educated guesses as to the difficulty?

Bill

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] ZEO and MountedStorage: Access DENIED!

2000-07-13 Thread Bill Anderson


Pardon the lawnmower man reference, but ZEO and MountedStorage do _not_
work together. I just tried, so this is just an initial report. 

What happens, is htat the local ZEO Client wil try to mount the
additional .fs-es on the local system, which will fail.

FYI, Bill

-- 
Bill Anderson (ARC)Unix/Linux System Administrator
HPSO Engineering Productivity Team Thursday, July 13, 2000  
Random Quote:
  A bug in the hand is better than one as yet undetected.

___
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] zope and UNIX permissions

2000-07-13 Thread Bill Anderson

Chris McDonough wrote:
> 
> > > Hmmm... thanks for trying it.  This doesn't seem much of a
> > risk, does
> > > it?
> >
> > Not that I can see off-hand. It is only a socket, a means for
> > communicating with Zope. The 'risk' would only lie in Zope's Security
> > mechanisms. ;-)
> >
> > The only possible risk would be a DoS type manuever if random
> > user could
> > rewrite the pcgi.soc socket. You could control this through var
> > directory permissions, will try this out and report back.
> 
> You're the coolest!  Thanks..


OK, it appears that Zope can handle it if:
the var directory (for Zope) is rwx for user and group AND pcgi.soc is
777.

This makes sense, of course. I was primarily making sure that Zope
didn't try to access it as a non-user (as some apps do).

So, in conclusion, the paranoid can make certain the directory
containing pcgi.soc is only writeable/executable to user/group owned by
the Zope process (and by the WebServer!!) with little fear of other son
the system accessing it willy-nilly. 

YYMV, offer void in some states, yadda yadda yadda.

Bill

-- 
"Linux: the operating system with a CLUE...
Command Line User Environment".

seen in a posting on comp.software.testing

___
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] zope and UNIX permissions

2000-07-12 Thread Bill Anderson

Chris McDonough wrote:
> 
> > > The other file (pcgi.soc) is a unix domain socket...  it
> > gets created
> > > when you run "python w_pcgi" as a Zope install command from
> > the source
> > > distribution.  I'm not sure of the danger of having this get created
> > > 777.  It might be worthwhile to look into what could be done to it.
> >
> > Well, other than zope not responding over pcgi if it isn't 777?
> > I just tried this out of curiousity. No response through pcgi.
> 
> Hmmm... thanks for trying it.  This doesn't seem much of a risk, does
> it?

Not that I can see off-hand. It is only a socket, a means for
communicating with Zope. The 'risk' would only lie in Zope's Security
mechanisms. ;-)

The only possible risk would be a DoS type manuever if random user could
rewrite the pcgi.soc socket. You could control this through var
directory permissions, will try this out and report back.

Bill

-- 
"Linux: the operating system with a CLUE...
Command Line User Environment".

seen in a posting on comp.software.testing

___
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] zope and UNIX permissions

2000-07-11 Thread Bill Anderson

Chris McDonough wrote:
> 
> Bill Anderson wrote:
> > He seemed to be mostly griping about files that were wide open (777). On
> > 2.2.0b4 the only ones I get are:
> > lrwxrwxrwx1 root root 13 Jul 11 01:36 lib/python/ZEO/cPickle.so
> > -> ../cPickle.so
> > lrwxrwxrwx1 root root 13 Jul 11 01:36 lib/python/ZServer ->
> > ../../ZServer
> > srwxrwxrwx1 root root 0 Jul 11 02:08 var/pcgi.soc
> >
> > Notes:
> > o All but one of these are symbolic links.
> >   No way around 777 on them.
> >   No cause for alarm on them either.
> > o The two symlinks are from ZEO, and thus would
> >   not be in a default tarball.>
> > Now, I do *nix security for a living, and I don't have any issues with
> > these few, unexposed 777's. I'd be interested to hear what the concerns,
> > and how to avoid them are.
> 
> The other file (pcgi.soc) is a unix domain socket...  it gets created
> when you run "python w_pcgi" as a Zope install command from the source
> distribution.  I'm not sure of the danger of having this get created
> 777.  It might be worthwhile to look into what could be done to it.

Well, other than zope not responding over pcgi if it isn't 777?
I just tried this out of curiousity. No response through pcgi.

Bill


-- 
"Linux: the operating system with a CLUE...
Command Line User Environment".

seen in a posting on comp.software.testing

___
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] zope and UNIX permissions

2000-07-11 Thread Bill Anderson

Chris McDonough wrote:
> 
> Using gnutar, untarring as the root user preserves ownership on
> expansion by default.  Not sure if FreeBSD uses gnutar (I imagine not),
> but this is the case with gnutar under Linux.  I think this is what
> happened to him... he said he could not use the RPM release and was
> working with the source distribution, so I don't think the problem is
> with the RPM.


He seemed to be mostly griping about files that were wide open (777). On
2.2.0b4 the only ones I get are:
lrwxrwxrwx1 root root 13 Jul 11 01:36 lib/python/ZEO/cPickle.so
-> ../cPickle.so
lrwxrwxrwx1 root root 13 Jul 11 01:36 lib/python/ZServer ->
../../ZServer
srwxrwxrwx1 root root 0 Jul 11 02:08 var/pcgi.soc


Notes:
o All but one of these are symbolic links. 
  No way around 777 on them. 
  No cause for alarm on them either. 
o The two symlinks are from ZEO, and thus would 
  not be in a default tarball.

Now, I do *nix security for a living, and I don't have any issues with
these few, unexposed 777's. I'd be interested to hear what the concerns,
and how to avoid them are.

Zope is actually one of the two places I avoid the RPMs (The other being
Kernel RPMs), adn always stick to source, so I can't vouch for the
permissions of files in the RPM

As I read his post, btw, it looked like he avoided the RPMs dues to the
problems, and was looking for source.


I have a copy of the 2.1.6 source; I'll look at that tonight for
permissions.

Bill

-- 
"Linux: the operating system with a CLUE...
Command Line User Environment".

seen in a posting on comp.software.testing

___
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] ZEO and Mountable Fses?

2000-07-05 Thread Bill Anderson


Subject carries the question. Anyone tried this yet, or have any
insights about it?

I am considering giving a go this week, thought I'd see if there are any
heads-up notices I should be aware of. :)

Back-to-the-migrations-to-ZEO-ly y'rs Bill

-- 
"Linux: the operating system with a CLUE...
Command Line User Environment".

seen in a posting on comp.software.testing

___
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] Yesterdays CVS: I can add broken products! :/

2000-07-05 Thread Bill Anderson

OK, I am working on a CVS dump from yesterday of Zope2. I am upgrading
from 2.1.6. I did so by making new folder, copying products that I
actually used over, and building Zope, then bringing over the Data.fs.

Oh, and ZEO is there too (Damn that thing is cool!).


And now I have a very weird problem...
I have a couple of ZProducts that are 
  o _not_ listed as broken in Control_Panel/Products
  o Instances of them appear as "This object from the unknown Product is
broken!"

Here is the kicker: I can add new instances of them, and they too
magically appear as broken, with no complaints about creating them!

Also, I can't seem to  pack the database. it claims it has already been
packed to a later date. This db hasn't been packed in at least a month.

ISTR something about the last one, so I'll be hunting the list archives,
but if someone has a moment, and the answer, don't be afraid to shoot it
my way.

TIA, Bill

-- 
"Linux: the operating system with a CLUE...
Command Line User Environment".

seen in a posting on comp.software.testing

___
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] Calendar tag 0.9.6 breaks with 2.2.0b3??

2000-06-29 Thread Bill Anderson

"Dr. Ross Lazarus" wrote:
> 
> Shane - it's a shocking thing to post untested patches - particularly
> when they work 
> I just tested this quickly on 2.1.6 and 22b3 and it seems fine. Thank
> you!.

That's why he gets paid the big bucks ;)
 
> Ok, what's the way forward here - how do we make sure that a 2.2 clean
> CalendarTag product appears in the Products download area on zope.org???

Get the patch to the maintainer.
 
> How do we make sure every product available for download on zope.org is
> clearly marked as either untested for 2.2; broken in 2.2; 2.2 clean -
> otherwise many new zope users are going to be tearing their hair out
> patching stuff or giving up in disgust??? Who's going to go through each
> one and patch it as needed?

The owners/maintainers? Seriously, that's who I see as responsible for
that.


A general warning on the Products page indicating that due to tighter
security, osm eolder products may not work well, if at all, with the new
2.2, followed by the mainainer indicating if they have tested/fixed,
will/will-not support it on 2.2, etc. Should be fine, IMO.

Bill

-- 
"Linux: the operating system with a CLUE...
Command Line User Environment".

seen in a posting on comp.software.testing

___
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 security model and products breaking zope management

2000-06-26 Thread Bill Anderson

"R. David Murray" wrote:
> 
> OK, I've stared at this for a couple days and have not made any progress.
> Perhaps others will have some insights.
> 
> Zope 2.2.0b2, clean install.  Works fine.  Add EMarket.  Now the
> management is broken.  Accessing the base URL of the site with
> /manage_main appended gives you the file list view of the root
> folder, with no prompt for authentication.  Accessing /manage
> prompts for a login, but the right panel view is the import/export
> screen and not the folder list.  There's other weird stuff, like
> a key error on "a_", which appears to be temporary variable used
> in one of the DTML management pages.
> 
> I've read Brian's 2.2 product security update, and it looks to me like
> EMarket is Doing the Right Thing (though I haven't checked completely for
> unprotected methods yet), which makes sense since it was a working
> product .
> 
> I have a private report that eTailor also has this problem, but haven't
> tested it myself.

If I am not the source of that report, chalk up another one for the
tally.

___
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] 2.2 permission problem with adding ZClass Instance as user in DTML

2000-06-26 Thread Bill Anderson

OK, I have aproblem that is largely baffling me.

I have Meerting Management installed and working properly ... for the
most part.

If I use the following code to add a Managed Meeting, it works fine:

Add
LAN Party

I get the form, and it adds as user just fine. Anonymous wokrs fine too.

However, this is not only ugly, it wreaks havoc with my navtrail. So I
copied my code from KnowledgeKit, and changed to suit the product:

Form calls as action the method CreateEvent:




And it barfs on permissions, requesting a username/pass combo through
Basic HTTP Auth, as opposed to the cookie login I am using (Membership
0.6.0). The traceback is less than helpful, but if anyone wants it, I'll
post it.

Any help much appreciated, since I'll be able to return to working on
some cool stuff once this is resolved. 

Bill

___
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] ZEO on NT? update

2000-06-22 Thread Bill Anderson

Jim Fulton wrote:
> 
> Messages about ZEO should be sent to the [EMAIL PROTECTED],
> http://lists.zope.org/mailman/listinfo/zope-zeo

ISTR the announcement or the ZEO page say to use zope-dev. Has that
changed?

___
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] package descriptions

2000-06-19 Thread Bill Anderson

Michael Bernstein wrote:
> 
> ethan mindlace fremen wrote:
> >
> > Zopatistas!
> >
> > I have recently changed the product page at http://www.zope.org/Products .
> > If you would be so kind as to change your product description so that the first
> > line contains a meaningful description of your product in plain text, I would
> > appreciate it.
> 
> Please change the page so both the title and the description
> have the same background color, but that the color is
> alternated between grey and white for odd and even Products.


Who gets to decide which products are odd? I'm fairly sure one of mine
is odd ...
;-)

___
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] 2.2 or Membership Component alpha problem, and suggestions for thelatterlatter

2000-06-16 Thread Bill Anderson

(sorry if this is a duplicate, it didn't seem to go the first time...)

OK, first, a tip I learned earlier today (and couldn't find the answer
for):

Problem:
If you try to add a membership system to your root folder, and it has an
acl_users folder, you will not succeed in adding it, ecause it will
complain about mismatched passwords (or at least it did for me). 

Solution:
Delete the acl_users fodler first.

Now, onto the current issue. I have some DTML that adds ZClass
instances. The Member user has the appropriate roles, yet is refused. 

The forbidden page tells me I need Manager role. Now, why is this? In
particular, I am using the MeetingManagement product. It works fine in
2.1.6. I think it is related to the security changes in 2.2. Problem is,
even adding proxy roles for the methods in the chain changes nothing.

Here is the big kicker. If I sign up as an  anonymous(!) user, it works
as it is supposed to. It only barfs when I am logged in as a
'Member'...Help? 

Now, a suggestion for Kevin:
It would be nice if there was user management for the Membership
component's default setup. I am sure you're thinking about it, but
thought I'd let you know it is needed :)  Specifically, there should be
some way that the site manager can modify theroles of the users, reset
passwords, and DELETE them as needed. Any ideas/work being done for
this?

Otherwise, the MembershipZ component is working flawlessly!

___
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] 2.2 or Membership Component alpha problem, and suggestions for thelatterlatter

2000-06-16 Thread Bill Anderson

OK, first, a tip I learned earlier today (and couldn't find the answer
for):

Problem:
If you try to add a membership system to your root folder, and it has an
acl_users folder, you will not succeed in adding it, ecause it will
complain about mismatched passwords (or at least it did for me). 

Solution:
Delete the acl_users fodler first.

Now, onto the current issue. I have some DTML that adds ZClass
instances. The Member user has the appropriate roles, yet is refused. 

The forbidden page tells me I need Manager role. Now, why is this? In
particular, I am using the MeetingManagement product. It works fine in
2.1.6. I think it is related to the security changes in 2.2. Problem is,
even adding proxy roles for the methods in the chain changes nothing.

Here is the big kicker. If I sign up as an  anonymous(!) user, it works
as it is supposed to. It only barfs when I am logged in as a
'Member'...Help? 

Now, a suggestion for Kevin:
It would be nice if there was user management for the Membership
component's default setup. I am sure you're thinking about it, but
thought I'd let you know it is needed :)  Specifically, there should be
some way that the site manager can modify theroles of the users, reset
passwords, and DELETE them as needed. Any ideas/work being done for
this?

Otherwise, the MembershipZ component is working flawlessly!

___
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] 2.2 beta and borked ZopeTime

2000-06-16 Thread Bill Anderson

Found a bug in the ne ZopeTime:

Returns the correct info.

However:
 Today is 
tells me everything correct, only it thinks it is Monday, when today is
actually Friday.


-- 
Bill Anderson   Linux/Unix Administrator, Security Analyst
ESBU (ARC)  [EMAIL PROTECTED]
My opinions are just that; _my_ opinions.

___
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] Problem importing Membership alpha

2000-06-13 Thread Bill Anderson

By any chance is this for Zope 2.2?
(Traceback didn't reveal much of anything, FWICS)

8<===
Zope Error
Zope has encountered an error while publishing this resource. 
Error Type: ImportError
Error Value: No module named Owned

___
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: [ZCommerce] EMarket breaks 2.2.0b1

2000-06-13 Thread Bill Anderson

"R. David Murray" wrote:
> 
> On Tue, 13 Jun 2000, Bill Anderson wrote:
> > What do you mean 'breaks' it?
> > Does it render the right frame unusable by any chance?
> 
> Pretty much.  The right pane gets the import/export tab instead
> of the contents tab.  You can still navigate by going directly
> to the manage_main URL (it is manage_workspace that is broken,
> apparently).  Even odder, though, you can get right into a
> view of the root folder contents without authenticating if
> you access the root manage_main URL directly.  That's about
> as much experimenting as I've done.
> 
> --RDM


I got this with a snapshot of that other zcommerce product (e-tailer?,
IIRC). That's why I asked. Likewise, that's the limit of the exploring I
did. :/

___
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: [ZCommerce] EMarket breaks 2.2.0b1

2000-06-13 Thread Bill Anderson

"R. David Murray" wrote:
> 
> I was trying to test my ZCatalog bug against 2.2.0b1.  My test
> case was, naturally, in the EMarket stuff I've been working on.
> So I installed EMarket.  I then spent a while being puzzled by
> how the management interface of 2.2.0b1 was behaving (as those
> on the IRC can attest).  I have figured out that EMarket somehow
> breaks the 2.2.0b1 management interface if you install it.
> I'm leaving on vacation for a few days, so I won't have time
> to look in to this until next week.

What do you mean 'breaks' it?
Does it render the right frame unusable by any chance?

___
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] [TRACE] Unable to mount mountable storage

2000-06-09 Thread Bill Anderson

Shane Hathaway wrote:
> 
> Bill Anderson wrote:
> >
> > OK, thought I would start playing with this...
> > Figured I would load a separate site to start with . It fails, claiming
> > it cant load oid. The site is orignally on 2.1.6, if it matters.
> >
> > Then I copied the current Data,fs to foo.fs, and figured I'd give it a
> > try, being a new .fs and all. It complains about duplicate ids. What am
> > I missing?
> > I can copy Data.fs.in to a new name, and mount it fine.
> 
> Are you mounting a path that contains ZClass instances? 

When it complains about duplicate ids, no.
When it complains about being unable to load oid, yes.


> Try removing
> the ZClass instances and see if it helps.  I'm not sure what the
> problem is, but at least this is something to try.

Unfortunately, deleting the ZClasses is not an option, as that is the
entire site atm.

___
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] [TRACE] Unable to mount mountable storage

2000-06-08 Thread Bill Anderson


OK, thought I would start playing with this...
Figured I would load a separate site to start with . It fails, claiming
it cant load oid. The site is orignally on 2.1.6, if it matters.

Then I copied the current Data,fs to foo.fs, and figured I'd give it a
try, being a new .fs and all. It complains about duplicate ids. What am
I missing?
I can copy Data.fs.in to a new name, and mount it fine.


OID TRACEBACK:
==
Traceback (innermost last):
  File /home/ucntcme/ZopeTest/lib/python/ZPublisher/Publish.py, line
222, in publish_module
  File /home/ucntcme/ZopeTest/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /home/ucntcme/ZopeTest/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
  File /home/ucntcme/ZopeTest/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /home/ucntcme/ZopeTest/lib/python/ZPublisher/mapply.py, line 160,
in mapply
(Object: manage_addMountedFileStorage)
  File /home/ucntcme/ZopeTest/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: manage_addMountedFileStorage)
  File
/home/ucntcme/ZopeTest/lib/python/Products/MountedFileStorage/MountedFileStorage.py,
line 24, in manage_addMountedFileStorage
  File /home/ucntcme/ZopeTest/lib/python/OFS/ObjectManager.py, line 260,
in _setObject
(Object: ApplicationDefaultPermissions)
  File /home/ucntcme/ZopeTest/lib/python/OFS/ObjectManager.py, line 267,
in manage_afterAdd
(Object: ApplicationDefaultPermissions)
  File /home/ucntcme/ZopeTest/lib/python/OFS/ObjectManager.py, line 267,
in manage_afterAdd
(Object: ElementWithAttributes)
  File /home/ucntcme/ZopeTest/lib/python/OFS/ObjectManager.py, line 267,
in manage_afterAdd
(Object: ElementWithAttributes)
  File /home/ucntcme/ZopeTest/lib/python/OFS/ObjectManager.py, line 267,
in manage_afterAdd
(Object: ElementWithAttributes)
  File /home/ucntcme/ZopeTest/lib/python/ZClasses/ZClass.py, line 417,
in manage_afterAdd
(Object: ManagedMeeting)
  File /home/ucntcme/ZopeTest/lib/python/ZClasses/ZClass.py, line 370,
in _register
(Object: ManagedMeeting)
  File /home/ucntcme/ZopeTest/lib/python/ZODB/Connection.py, line 441,
in setstate
  File /home/ucntcme/ZopeTest/lib/python/ZODB/Connection.py, line 213,
in _persistent_load
(Info:
onClass\012ExtensionClass\012q\001(U\006LMUserq\002(cZClasses.ZClass\012PersistentClass\012q\003cProducts.LoginManager.UserSources\012LoginUser\012q\004cOFS.SimpleItem\012SimpleItem\012q\005tq\006}q\007(U\004iconq\010U\000U\012_p_changedq\011K\001U\007__doc__q\012U\007LM
Userq\013U\006_p_oidq\014U\010\000\000\000\000\000\000\004rq\015U\011meta_typeq\016U\007LM
Userq\017U\005Fnameq\020U\000U\016propertysheetsq\021U\010\000\000\000\000\000\000\004wq\022QU\005Lnameq\023U\000U\016manage_optionsq\024)U\006passwdq\025U\000U\022__ac_permissions__q\026)U\011_p_serialq\027U\010\0034\353#\315f\322\346q\030U\012__module__q\031U\031*ykluV9yvI34UID2R6HV/dQ==q\032utq\033t.N.'))
Could not load oid

___
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] My Aquisition Zen fell short...

2000-06-08 Thread Bill Anderson

OK, been debugging the PTK problem with DTML Documents, as noted in the
PTK list. I thought I would jump over here to get some more
eyes/suggestions/etc. (Bug 81 in the PTK Tracker IIRC)

I have narrowed the problem down tothe following situation:

When in a Portal, a DTML Document calling a DTML Method (specifically,
standard_html_header) is not finding getPortal. If you either include
the guilty calls into the document it works. It also works if you wrap
it up like this:


 


Of course, as was pointed out, if your standard_html_header needs to do
work based upon where you are calling it from, this will not really help
you.

So, I have concluded that the bug lies in the aquisition machinery,
which I have not yet played much with yet. So, any Aquisition Priests
want to make suggestions, pose questions, etc.?

Note, I have also tried passing in the namespace, but no dice there,
either.

(On that note, Aquisition might be a good Chat...)

___
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] LM and user objects

2000-06-06 Thread Bill Anderson

"Phillip J. Eby" wrote:
> 
> At 04:03 PM 6/6/00 -0600, Bill Anderson wrote:
> >
> >I am using the deafult UserSource that comes with LM for the moment (one
> >step at a time ;)
> 
> LM or PTK?

LM

(Waiting for Dan's changes before trying _any_ LM with PTK ;)

> 
> >When I try to add through the manage interface, I get:
> >Error Type: KeyError
> >Error Value: _v_rack
> 
> Eh?  What manage interface?  Nothing Ty or I put out has a manage interface
> to add a user.


The management interface, a sin click through Lm to UserSouorce, select
LM User object from the  select-box. Sorry, in ahurry I left off 'ment'
:/
 
> >So I judge that this interface to be a no-workie.
> 
> I guess so.  :)
> 
> >So I tried the form->method method, and I get:
> >Error Type: NotFound
> >Error Value: None
> >
> >And no help in the traceback. :(
> 
> The what method?  I'm sorry, I'm completely lost.

I made a form that took an input for id , and called the newItem(id)
method.

>  If you're using the
> PTK's PersistentUserSource, I don't know anything helpful to tell you,
> 'cause I haven't had time to look at it yet (too busy on ZPatterns, not to
> mention non-Zope work).

Yeah, I hear you. I am finally getting the time to start doing some
heavy work with LM and PTK later this month, so I am trying to get
caught up, so to speak. figured since i knew more abot pTK than LM, that
LM would be a good thing to start with. :)

___
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] LM and user objects

2000-06-06 Thread Bill Anderson

Kevin Dangoor wrote:
> 
> - Original Message -
> From: "Bill Anderson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 06, 2000 4:21 PM
> Subject: [Zope-dev] LM and user objects
> 
> > Once I get that set up, I add property sheets for the user where? The
> > ZClass?
> > Once I get that set up, how do I add a user? Would one method be to go
> > into the acl_users(LM) and add a User? What about adding them
> > programmatically? I looled at the API.txt, but it wasn't helpful in this
> > regard. :(
> 
> If you're not in a blazing hurry on this, I'm working right now on breaking
> Membership out of the PTK (after which, I'll put it back in :)
> This will basically come in the form of a product that adds a LoginManager
> and configures it with high level methods. No ETA at the moment, because I'm
> wrestling with syntax within my method that is called by the factory. I
> expect things to move fairly quickly, though, because Mike Pelletier and Dan
> Pierson already did the hard work to get things to where they are now.

Ooo
I would like to get it up in the next day or so, I have a site waiting
for it (http://gaming.activeboise.com) that pretty much needs membership
to progress to the next level. So I will probably need to forge ahead,
although I have places (and the will) for testing ;) 

wink-wink-nudge-nudge-ly y'rs Bill

___
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] LM and user objects

2000-06-06 Thread Bill Anderson

"Phillip J. Eby" wrote:
> 
> At 02:21 PM 6/6/00 -0600, Bill Anderson wrote:
> >
> >I beleive I have the basic LM concept grasped. I understand that I need
> >a 'User' Object, ostensibly can be done in Python or ZClasses. For now,
> >I will look at ZClasses for experimentation.
> >
> >So, I beleive that to set up a ZODB-based User for LM, I need to create
> >the UserObject's ZClass. What do I need to subclass, if any, from?
> 
> >From Python: Products.LoginManager.LoginUser
> >From Zope:   "ZClass_for_LoginUser"


Cool. I tried the ZClass route (less restarts ;) gave it Fname,Lname,and
zpasswd as fields. (ISTR something about the password needing to be a
field)


> >Once I get that set up, I add property sheets for the user where? The
> >ZClass?
> 
> To add sheets for the class, do it in the ZClass.  You will then need
> AttributeProvider support for the properties (which if you're doing a
> Persistent user source, means simply that you leave the default "Persistent
> Internal Attribute Provider" active for all attributes).  Alternatively,
> you can programmatically add a propertysheet to an individual user at
> "runtime", but you will have to create the schema for it at the same time.

OK.
 
> >Once I get that set up, how do I add a user? Would one method be to go
> >into the acl_users(LM) and add a User? What about adding them
> >programmatically? I looled at the API.txt, but it wasn't helpful in this
> >regard. :(
> 
> I think if you derive your UserSource from the BasicUserSource or
> UserSource class in LoginManager, you should be able to simply call the
> usersource's newItem(id) method to get a new, empty user object.
> Manipulating propertysheets on it will then let you set properties.


I am using the deafult UserSource that comes with LM for the moment (one
step at a time ;)

When I try to add through the manage interface, I get:
Error Type: KeyError
Error Value: _v_rack

So I judge that this interface to be a no-workie.

So I tried the form->method method, and I get:
Error Type: NotFound
Error Value: None

And no help in the traceback. :(


What am I missing?

___
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] LM and user objects

2000-06-06 Thread Bill Anderson

Pardon my denseness (politics can do that to you I guess ;)...

I beleive I have the basic LM concept grasped. I understand that I need
a 'User' Object, ostensibly can be done in Python or ZClasses. For now,
I will look at ZClasses for experimentation.

So, I beleive that to set up a ZODB-based User for LM, I need to create
the UserObject's ZClass. What do I need to subclass, if any, from?

Once I get that set up, I add property sheets for the user where? The
ZClass?
Once I get that set up, how do I add a user? Would one method be to go
into the acl_users(LM) and add a User? What about adding them
programmatically? I looled at the API.txt, but it wasn't helpful in this
regard. :(

I swear if nobody beats me to it, I'll write all this up and post it to
Zope.org when I get it done. :) (If nothing else, for my own reference
;)

___
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] ZPatterns ProperySheet usage example?

2000-06-05 Thread Bill Anderson

"Phillip J. Eby" wrote:
> 
> At 05:07 PM 6/5/00 +0800, Mike wrote:
> >Hello people,
> >
> >could anybode give an example (in code) on subject?
> >
> 
> This isn't exactly code, but...
> 
> Set up a LoginManager with a GenericUserSource, and set up the GUS to have
> users. 

Is there documentation on how to do this part available yet?

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

2000-06-03 Thread Bill Anderson

Lalo Martins wrote:
> 
> On Sat, Jun 03, 2000 at 12:38:20AM -0500, Phillip J. Eby wrote:
> > >
> > >I tried. It's quite easy, except that you have to store the
> > >user's password in a property, and access control is somewhat
> > >broken WRT passwords, so anyone can read anyone's passwords if
> > >they can write DTML.
> >
> > Did you try naming the password attribute with an "_" at the beginning of
> > it?  This should make it inaccessible from DTML, but it's a bit more work
> > since you have to write Python to do it.
> 
> Actually, if I'm willing to go to Python (which I am, just
> waiting for 2.2 so I don't have to do it twice) there are
> simpler ways to do it, and you (IIRC) have already showed me
> some :-) The point is that by his question I thought Bill
> wanted a ZODB/ZClass-only solution - and I'd prefer it too if
> it was possible at all.


I am more than willing to go to python too, and don't mind doing it 2x.
I just wanted to know what had to be done, etc. to get to using the LM
with the basic US, that way I can 
 a) start using LM
and
 b) get to developing an SQL-US faster. :-)

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

2000-06-02 Thread Bill Anderson

Has anyone out there actually sarted _using_ LoginManager with ZODB
storage? IOW, one that is not dependant on LDAP/SQL/etc., but that is
functioning in place of a non-PTK acl_users folder? 

I am starting to play with it (so many toys, so little time...), and
would like to see (if it exists) a basic walkthrough of how to go from:
Folder with no userfolder, LM installed 
  -to-
Folder with LM-acl_users folder, and ZODB member storage.

So, what about it? Anyone got one, or at least could write down the
steps/requirements?

Much Appreciated, 
Bill

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




  1   2   >