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] 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] 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] 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 RD   
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] 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] 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] 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


dtml-call putTongueInObject('cheek')

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] 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] Ithy Trigger Fingers (was Re: [Zope] License)

2001-01-29 Thread Bill Anderson

Andreas Heckel wrote:

 EVERYTHING SNIPED!
 
 PLEASE allow ME to choose the license freely and PLEASE STOP the
 flamewar on this thread!
 You can find tons of these licence discussions not only on this list and
 there is nothing new to say.

Come on people, this is not a flme war. Nobody is calling anyone names,

nobody is saying one is better than another, nobody other than those crying

'flame war' is being less than civil.

There is nothing wrong with _discussion_ and requests, they do not
constitute a flame war.

If someone comes on and says Zope can't do a certain thing, and
someone corrects them, is that a flame war too? After all, what has
happened so far has been nothing more than correcting a stated
misconception.

BTW, this also applies to some other cries about 'another flame war' in 
another thread.

Bill Anderson


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




Re: [Zope] License

2001-01-29 Thread Bill Anderson

Fabrice FRANK wrote:

   I really agree, do NOT change the license terms.
 


Ummm .. the software in questions has _no_ license terms yet.

Bill


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




Re: [Zope] Ithy Trigger Fingers (was Re: [Zope] License)

2001-01-29 Thread Bill Anderson

Dario Lopez-Ksten wrote:

 I believe the Horse of Licenses was beaten to death in a recent thread some
 month(s), if not weeks, ago. May It Rest in Peace.
 
 This may be the Second Coming of It, but, with all due respect, License
 Horses and discussions of Other License's Merits and Flaws are off-topic for
 this list; I think most^H^H^H^H many subscribers will agree on this.

Be that as it may, it still does not constitute a flame-war.

 
 Imagine the consequences of having the spooky ghost of the License Horse
 roaming about... *B*

Or worse, the fear of saying something in disagreement, for fear of being 
labelled a flame war starter.

Bill


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




Re: [Zope] License

2001-01-29 Thread Bill Anderson

Andrew Kenneth Milton wrote:

 +---[ Bill Anderson ]--
 | Fabrice FRANK wrote:
 | 
 |I really agree, do NOT change the license terms.
 |  
 | 
 | 
 | Ummm .. the software in questions has _no_ license terms yet.
 
 You stifling the right of the individual to license-free software Bill? huh? 
 huh? Well are ya? :-)
 


Who me? ;^)=

nah, never. If anyhting saying not to change the 'license' would be. :-)

 I've been laughing through this whole thread from Chris's typo to the
 rest of the people who didn't bother to read the rest of the thread to
 discover that a license choice hasn't been made...

Yeah, that typo really caught me a good laugh too. I should thank Chris 
for it. :)

Bill


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




Re: [Zope] How to upgrade to 2.3 (no differential install?)

2001-01-29 Thread Bill Anderson

David K. Trudgett wrote:

 On Mon, Jan 29, 2001 at 10:54:08AM -0500, Brad Clements wrote:
 
 
 Call me stupid, I can't find the proper command line switch to get tar to 
 ignore the top level directory name Zope-2.3.0-linux2-86
 
 Do I have to untar into a junk directory, then cp -r everything to my 
 current dir?
 
 
 What's wrong with:
 
 $ cp Zope-2.3.0-linux2-x86.tgz /usr/local/; cd /usr/local
 $ tar xzvf Zope-2.3.0-linux2-x86.tgz; mv Zope-2.3.0-linux2-x86 Zope-2.3.0
 $ rm Zope-2.3.0-linux2-x86.tgz

two steps too many ;)
Just tar -xvzf the original file,no need to copy and then delete the copy.
/me ducks


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




[Zope-dev] 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: ((Factory instance at 897f0c8, 'on', None, None, 0,
'webadmin', 
 (snip raw html data from form)
  File string, 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: ((Factory instance at 897f0c8, LoginManager instance at
89c4a28, []), {}, (None,)))
  File string, 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 RD   
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] What happened to random?

2001-01-26 Thread Bill Anderson



OK, got a problem with 2.3.0 and Python Script; one that breaks Membership :(

In Python Methods, I can do this

choose=random.choice


And it works.

However, in a Python Script in 2.3.0, it barfs, complaining about random 
not being a variable. I've tried self.rhandom, context.rhandom,  and 
_.rhandom, and none work. Any help would be very much appreciated.

Bill Anderson


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




Re: [Zope] Some help required but no sarcastic comments this time please

2001-01-23 Thread Bill Anderson

Phil Harris wrote:

 Alan,
 
 So what are the errors, are there any tracebacks, does the thing your trying 
 to do work when outside of Zope?
 
 What version of MySQL is it?
 
 Can you run any queries, or is it one particular query?
 
 What versions of the MySQLDB and MySQLDA are you using?
 
 Answering some/all of these questions will get you closer to an answer.

Agreed

 I can give you some hope though.  I have a Zope+MySQL site that has been 
 running non-stop for about 7-8 months with no problems at all, so it can be 
 done.
 
 One final note, the people on the list are, as I'm sure you are, busy people. 
  They do their best to help and generally do.  Some posts slip through the 
 net though, I wouldn't take offence at not getting answered.

I would add that many of us (specially the more busy ones) ignore posts in 
HTML, so posting in plain text is very helpful. Just thought I'd help you 
to get help quicker. :)

Bill

PS. I skipped the request for help because I don't use MySQl, and thus 
wouldn't be able to help much, if any. ;^)=


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




[Zope-dev] 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] Re: ZClasses and title property

2001-01-22 Thread Bill Anderson

Tim Moore wrote:

 I guessed it was something like this, so this leads me to two followup
 questions.
 
 1) I'd be happy to use the built-in title property assuming that it
won't cause some kind of problem.  I just don't know how I can set
that in instance objects since it doesn't appear on the property
sheet.  Can I modify the addForm and add methods for the class to
set it there?  Do I need to make a custom view?  What approach do
most people take in this situation, using the built-in title or
choosing a different name for a title-like property?
 

I use Title (note the upper-casity), and then I add a Python Mehtod (or in 
2.3 a Python Script) called 'title' that simply does:
return self.Title
(or in a P.S.:
return context.Title
should do it
)

Bill Anderson


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




Re: [Zope] Re-posted - How to delete users in Membership product with Persistent User Source

2001-01-15 Thread Bill Anderson

Kamon Ayeva wrote:

 Hi,
 
 Has anyone been able to use the delUserForm to delete
 users added within a PersistentUserSource in the
 PortalMembershipSystem object ?

Yes, quite frequently.


 I am not sure if this piece of code in delUserForm
 preceding the HTML form snippet does the right job:
 
 dtml-let idList="[]"
 dtml-in "UserSource.getPersistentItemIDs()" sort
 dtml-call
 "idList.append(getItem(_['sequence-item']))"
 /dtml-in
 
 dtml-in idList sort=Importance reverse
 ...
 
 I can view the users but when I click on the form
 button to delete some users, I get
 
 I get 
 
 Error Type: NotFound
 Error Value: None


What platform?
What Zope version?
What version of each related/required product?
Is SiteAcces Installed?
If So, what version?



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




Re: [Zope-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] UserFolder Alternate Login

2001-01-05 Thread Bill Anderson

[EMAIL PROTECTED] wrote:

 Zopatistas,
 
 I need functionality that none of the UserManagers seem to address. I 
 need to allow a user to elect to log in (and set 
 AUTHENTICATED_USER) as opposed to have them access a restricted 
 resource to trigger cookie authentication. 

*Ahem* Actually, Membership *does* provide login/logout forms that do 
not require accessing a private section of a site.

 I am essentially limited to GUF because it's the only thing I can install 
 on my provider's system (I can't compile the LoginManager). Is there 
 a way to allow the user to login at will, and still get 
 AUTHENTICATED_USER set?

Ok, that's different.

Dead Simple way(tm):
Make page that *does* have a need for login. Put a link to it, call the 
link "login".
When they access the page, they wil not have permission to see it, and 
will thus be given a request for authentication, the logging them in part.

If you put this method in the root of your site, say calling it 'login' 
for an id, then you could put a link in your menuing system that calls 
it with an href of "login".

Then, in your 'login' method/page, you set it up to redirect back to the 
page they were on when they clicked the login link. There are several 
examples of this part around; search the Mailing List(s) archives.

Until such time as they do log in, the user will be 'Anonymous'. As 
such, you would make the appearance of the login link dependant on the 
AUTHENTICAT_USER having the Role 'Anonymous'.

Without using a cookie login system, you _must_ access a restricted 
resource, even if it just a redirect. That is how basic Authentication 
works. If you are using cookie login, there are HowTos on that around as 
well. You just show the user the login page.



Bill Anderson



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




Re: [Zope-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 )




Re: [Zope] Fw: Zope.org feedback

2000-12-17 Thread Bill Anderson

Loren Stafford wrote:
 
 Just for your entertainment
 
 - Original Message -
 From: "Charles Knerr" [EMAIL PROTECTED]; "Webmaster"
 [EMAIL PROTECTED]
 To: "Loren Stafford" [EMAIL PROTECTED]
 Sent: December 15, 2000 10:54 PM
 Subject: Zope.org feedback
 
  URL: http://www.zope.org/Members/lstaffor/Breadcrumbs
  In regards to this URL
  http://www.zope.org/Members/lstaffor/Breadcrumbs
 
  I am the Chairman of Breadcrumbs Inc. a Delaware Corporation.We have
 trademarked the name Breadcrumbs as a navigational tool in the computer
 software and Internet industry classifications.
 
  You are infringing on our trademark.  Please remove all references to
 Breadcrumbs in your documentation.
 
  Thanks very much,
  Chuck Knerr


What is even funnier is he's wrong.
He has applied for a word mark as of sept 15, 1999, which has NOT been
granted so far.

===
Here are the latest results from the TARR web server.

Serial Number: 75780367

Registration Number: (NOT AVAILABLE) 

Mark (words only): BREADCRUMBS

Current Status: A non-final action has been mailed. This is a letter
from the examining attorney requesting additional information and/or
making an initial refusal. However, no final
determination as to the registrability of the mark has been made.

Date of Status: 2000-04-04

Filing Date: 1999-09-15

Registration Date: (DATE NOT AVAILABLE)

Law Office Assigned: TMEG Law Office 102


Which the local IP guy says means he has nothing.

In addition, if you look at his filing date, we beat him to it. As in
prior art.:
http://zope.nipltd.com/public/lists/zope-archive.nsf/Main?SearchView=++Query=breadcrumbsSearchOrder=1Start=1Count=20

(above link will stretch over two lines)

The archives show that Loren was using this term for this usage by
nearly a month. if nothing else, the timing of the application
coinciding with the introduction of the term by Loren is at best
suspicious. In fact, it occurs on the very day that Loren made the
announcement of the howto.


Bill Anderson

"What a maroon." -- Bugs Bunny


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




Re: [Zope] Fw: Zope.org feedback

2000-12-17 Thread Bill Anderson

Bill Anderson wrote:
...
 The archives show that Loren was using this term for this usage by
 nearly a month. if nothing else, the timing of the application
 coinciding with the introduction of the term by Loren is at best
 suspicious. In fact, it occurs on the very day that Loren made the
 announcement of the howto.


And according to the USPTO:

Federal registration is not required to establish rights in a trademark.
Common law rights arise from actual use of a mark. Generally, the first
to either use a mark in commerce or file an intent to use application
with the Patent and Trademark Office has the ultimate right to use and
registration. 

Loren wins again. :)


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




Re: [Zope] Best Zope way to split a textfield on 2000 char increments

2000-12-15 Thread Bill Anderson

Jerome Alet wrote:
 
 On Fri, 15 Dec 2000, Steve Drees wrote:
 
  somestring[:1999] is the first 2000 characters of somestring.
 
 Not to be a poseur but:

me either ;^)=

 
 somestring[:1999] is the first 1999 characters of somestring, because
 in Python indices begin at 0, e.g.:

Actually, it is because the number 1999 refers to the the spot
*inbetween* 1998 and 1999. Basically, in a list of '0,1,2,3', [0] is the
first 'comma', and [1] the second, and so on. Counting that way shows
that you never include the 1999 (or the three in your example. It isn't
that indices start at zero, it is due to the counting being done on the
seperator, not the item in the list.

 a="0123"
 print a[:3] gives "012" which are the first 3 characters from a.

Right, because 'a' is being treated as [0,1,2,3], and you are saying
"give me everything up to the third comma". :)

yes-I-am-nitpicking-ly y'rs Bill Anderson


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




[Zope] Multiple databases and ZEO

2000-12-10 Thread Bill Anderson

Shane Hathaway wrote:
 
 Bill Anderson wrote:
 
  Shane Hathaway wrote:
  
   On Tue, 5 Dec 2000, Bill Anderson wrote:
So, what would you suggest for the following scenario?
   
o Site distirbuted via ZEO
o Using SiteAccess2 for virtual hosting sites under
  /vhosts/thissite /vhosts/thatsite
o each site is actually it's own full Data.fs
   
Under non-zeo, it's simple, use a mounted filestorage, and it works
quite well. Unfortunately, it doesn't work under zeo, for obvious
reasons. If I had time, I'd do a mountedZEOstorage, but time is too much
a precious commodity for the next few weeks/months. :/
  
   What do you mean it doesn't work under ZEO?  Set it up just like zope.org.
 
  Simple: I have a site running on it's own right now. It is based right
  of of the root of the data.fs, not under a folder (like a wiki is). If I
  try the externalmount you tarred up for us (thank you, btw), it insist
  on having a path inside said data.fs.  If I give it a folder in said
  data.fs it works for that folder, as expected.
 
 MountedFileStorage lets you mount the root of the database through a
 very "iffy" scheme that I don't think could be made reliable.  I'm sure
 there's a right way to do it, but I think for now your best option is to
 create a folder in the database you intend to mount, then move all
 content into that folder.  That's how Wikis.fs is mounted.

OK, I suppose I can live with that for now ... though i do have a
question abou tit.

Packing a database.
in one of the cases I am considering, I am wanting to seperate the
sub-site into a seperate DB because this subsite will likely contain
many objects, and many changes to those objects. At the moment, they are
being developed using ZPatters, so if needs be I can change the storage
in the future ( Zpatterns gd). If I pack from the main site,
does the 'mounted' folder also get packed, or will i need to do that
seperately somehow? 

If seperate, how does one do that?
 
   Either create two storage servers or one that provides access to both
   FileStorages.  Then write an external method for each storage, each of
   which creates a ClientStorage and wraps a DB around it.
 
  How do I do this part? I made one for FileStorage (the example given),
  which works fine. Substituting ClientStorage for FileStorage didn;t
  work. ;)
 
 Here's our external method:
 
 --- 8- -
 
 # Define the Wiki database mounted database
 import ZServer, ZODB, ZEO.ClientStorage
 
 def wikidb():
 Storage=ZEO.ClientStorage.ClientStorage(
 ('10.0.11.1',),
 cache_size=50*1000*1000,
 max_disconnect_poll=40,
 min_disconnect_poll=1,
 storage='Wikis',
 )
 return ZODB.DB(Storage)
 
 --- 8- -


Thanks, I'll get to this in the next day or so. I am currently setting
everything up to use sockets, so I imagine it shouldn't be to hard to
convert, just change the options passed, no? :)

 
  ...mebbe I've just been too deep in scsi code lately to think properly
  ... ugh.
 
 Been hacking kernels lately?  There's no hacking like kernel hacking.
 Bare metal.  Oh yeah. :-)

Yup, in fact I think we fixed a somewhat serious FC bug ... I hope.


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




Re: [Zope] strange ZClass method problem

2000-12-08 Thread Bill Anderson

Didier Georgieff wrote:
 
 Hello,
 
 * I have 2 Folders (Yihaw ZClass instances)
 * both folders have News objects (cataloged)
 
 I put the news on the front page via (this is taken from Yihaw, simplified for the
 demonstation, but still have the problem) this code
 
 dtml-in "Catalog(
   meta_type='Yihaw News Item',
   sort_on='bobobase_modification_time',
   sort_order='reverse')" size=30 start=query_start
 
 dtml-with "Catalog.getobject(data_record_id_)"
  dtml-var absolute_url html_quote -
  dtml-var title_or_id html_quotebr
 /dtml-with
 
 /dtml-in
 
 Problem is that some news items are OK and some raise an exeption on dtml-var
 title_or_id told to be missing (!!??)
 
 It puzzle me because all news items are same ZClass instance and can be accesed
 normally via the zope interface, or directly, works well on view etc ...


Did you index title_or_id in the catalog? When you do a search on a
catalog, you only have the variables that you indexed available, as you
are working out of the catalog, not the actual object.

Bill


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




Re: [Zope] Re: [Zope-ZEO] Zope 2.2.4 ZEO 0.4.1 (latest anyway)doesn'twant to add Products

2000-12-06 Thread Bill Anderson

Shane Hathaway wrote:
 
 On Tue, 5 Dec 2000, Bill Anderson wrote:
  So, what would you suggest for the following scenario?
 
  o Site distirbuted via ZEO
  o Using SiteAccess2 for virtual hosting sites under
/vhosts/thissite /vhosts/thatsite
  o each site is actually it's own full Data.fs
 
  Under non-zeo, it's simple, use a mounted filestorage, and it works
  quite well. Unfortunately, it doesn't work under zeo, for obvious
  reasons. If I had time, I'd do a mountedZEOstorage, but time is too much
  a precious commodity for the next few weeks/months. :/
 
 What do you mean it doesn't work under ZEO?  Set it up just like zope.org.

Simple: I have a site running on it's own right now. It is based right
of of the root of the data.fs, not under a folder (like a wiki is). If I
try the externalmount you tarred up for us (thank you, btw), it insist
on having a path inside said data.fs.  If I give it a folder in said
data.fs it works for that folder, as expected.
 
 Either create two storage servers or one that provides access to both
 FileStorages.  Then write an external method for each storage, each of
 which creates a ClientStorage and wraps a DB around it. 

How do I do this part? I made one for FileStorage (the example given),
which works fine. Substituting ClientStorage for FileStorage didn;t
work. ;)

...mebbe I've just been too deep in scsi code lately to think properly
... ugh.

 Then mount those
 external methods.  Thus you don't even need to write MountedZEOStorage.

That would be a boon. :)


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




Re: [Zope] REQUEST.set doesn't set in 2.2.4

2000-12-06 Thread Bill Anderson

Brad Clements wrote:
 
 This code:
 
 dtml-call 
"REQUEST.set('verrormessage',orderobject.chargeCard(REQUEST,Holmes.CyberCash,Rec))"
 !-- charge result is dtml-verrormessage;--
 
 Prints out _.None as the result.
 
 However a print statement in my ordeobject.chargeCard method shows
 that the return value isn't None.
 
 This seems broken. The return code is coming from within an exception
 handler, I wonder if that is related to the problem.
 
 I've also noticed that in a dtml-trydtml-except calling
 REQUEST.set within the except doesn't set it.
 
 Anyone got ideas?

Just for thoroughness (or something) try this to eliminate something:

!-- PRE: charge result is dtml-var
"orderobject.chargeCard(REQUEST,Holmes.CyberCash,Rec)" --
dtml-call
"REQUEST.set('verrormessage',orderobject.chargeCard(REQUEST,Holmes.CyberCash,Rec))"
!-- POST: charge result is dtml-verrormessage;--


This should determine whether what you want to set is working first.
If PRE and POSt are the same, the problem s defintiely in your method
call.  

dtml-call REQUEST.set is working fine on 2.2.4 from here.


Bill


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




Re: [Zope] Disabling Services

2000-12-06 Thread Bill Anderson

Ivan Cornell wrote:
 
 Chris Withers wrote:
 
  When Zope starts up, I see it starts the following:
 
  ZServer Medusa (V1.16.4.3)
  ZServer FTP server
  ZServer PCGI Server
  ZServer Monitor Server (V1.8.4.1)
 
  Which of those handles WebDAV requests?
  How do I turn any of the above 'off' permentantly, without hacking z2.py
  or anything similar (which is nasty ;-)
 
 
 Not sure about WebDAV (I guess try the following  see!), but in my startup
 script I have:
 exec /usr/local/Zope-2.2.4-linux2-x86/bin/python \
  $PYTHONHOME/z2.py \
  -X -w 8000 "$@"
 
 -X : turn off all servers
 -w : explicitly turn on http server on port 8000
 I took out -D as it is a production server  after reading the last few
 digests I'm going to add -Z, though Zope hasn't crashed once on me yet!


Note, that it the past, doing this also disabled pcgi. I dunno if that
has been resolved, but it was a REAL nightmare here 

Of course, you aren't using pcgi, so for you, that's not a problem. :) I
just thought I'd injectthat little comment for future readers who may be
wondering wtf if they try this and still need pcgi. 

Bill


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




Re: [Zope] Zope Beginner

2000-12-06 Thread Bill Anderson

Dieter Maurer wrote:
 
 Mark A. Pappas writes:
    zope running on port 80 
 All ports below 1024 are priviledged ports.
 
 Under Unix, a process must run as "root" to bind to them.


Mehtinks that start.bat indicates teh querant is on windows ... but I
could be wrong. ;^)=

If on windows,. check to make sure you don't have  personal webserver or
something like that running.

Bill


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




Re: [Zope] Re: [Zope-ZEO] Zope 2.2.4 ZEO 0.4.1 (latest anyway)doesn't want to add Products

2000-12-05 Thread Bill Anderson

Shane Hathaway wrote:
 
 On Mon, 4 Dec 2000, Bill Anderson wrote:
 
  Shane Hathaway wrote:
   Just packaged up.
  
   http://www.zope.org/Members/hathawsh/ExternalMount
 
  And there was almost much rejoicing.
  It doesn't seme to want to mount the root of a Data.fs, at least
  according to the add form. Is this by design? Were there problems with
  mounting the root of a Data.fs, or is it just a limitation of the add
  form?
 
 It is by design.  If you were to mount the root of a Data.fs, you'd be
 mounting an Application object with no ID.  This would play havoc with the
 pseudo-filesystem.
 
 The correct solution is to make it so folder objects do not contain their
 own ID (but rather determined by the parent folder) and make Application
 objects go away, replacing them with simple Folder objects.
 
 Shane


So, what would you suggest for the following scenario?

o Site distirbuted via ZEO
o Using SiteAccess2 for virtual hosting sites under
  /vhosts/thissite /vhosts/thatsite
o each site is actually it's own full Data.fs

Under non-zeo, it's simple, use a mounted filestorage, and it works
quite well. Unfortunately, it doesn't work under zeo, for obvious
reasons. If I had time, I'd do a mountedZEOstorage, but time is too much
a precious commodity for the next few weeks/months. :/

Bill


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




Re: [Zope] Re: [Zope-ZEO] Zope 2.2.4 ZEO 0.4.1 (latest anyway) doesn't want to add Products

2000-12-04 Thread Bill Anderson

Shane Hathaway wrote:
...
The Wikis folder on zope.org is now a ZEO mount.  We have chosen to use
the ExternalMount product we created internally.  It calls an external
method to open the storage and create the database.  It has the
flexibility advantages we need; for example it lets you move a .fs file
from non-ZEO to ZEO and back without going through a long recataloging
process.
   
Anyone interested in it?
   
Shane
  
   Yes please.
 
  We are also interested. =+ 'Yes Please'
 
 Just packaged up.
 
 http://www.zope.org/Members/hathawsh/ExternalMount

And there was almost much rejoicing.
It doesn't seme to want to mount the root of a Data.fs, at least
according to the add form. Is this by design? Were there problems with
mounting the root of a Data.fs, or is it just a limitation of the add
form?



Bill Anderson


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




Re: [Zope] IP address and US city name

2000-12-02 Thread Bill Anderson

Hung Jung Lu wrote:
 
 Hi,
 
 I know that IP addresses in the USA follow a strict pattern of geographical
 locations. (Most other countries don't do that.) Does anyone know where I
 can get a copy of the table of IP addresses vs. city names?

Whomever told you this was wrong.


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




[Zope] Help 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 @@
 dtml-call "REQUEST.set('MANAGE_TABS_NO_BANNER',1)"
 dtml-var manage_tabs
 
-dtml-tree
+dtml-tree sort=id
 dtml-if "meta_type =='Help Topic'"
   a href="dtml-var absolute_url" target="help_main"dtml-var title_or_id/a
 dtml-else




Re: [Zope] Javascript dtml tags

2000-11-21 Thread Bill Anderson

Kini Natekar wrote:
 
 Hi,
 
Is there a way to include dtml tags with a
 javascript ? If there is please let me know.


Are you sure you don't mean include javascript using dtml?
DTML is parsed by the server, javascript by the client.

I use dtml to build javascript (and in some cases, use dtml to build
rxml that builds javascriprt ;).


--
E PLURIBUS LINUX


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




Re: [Zope] The new Python Method renaming Poll

2000-11-16 Thread Bill Anderson

Anyway we could get maybe  daily list of submitted candidates, or a page
listing them,  so we don't duplicate (I get the feeling there may be
multiple request for Python ZMethod, for example.) efforts on getting
candidates?

Might keep your inbox from swelling with duplicates too. :)

Bill


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




[Zope-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] [Semi-OT] Compilin gon RH7 (was: New kinds of problems)

2000-11-04 Thread Bill Anderson

MANUEL JOSE AMADOR BRIZ wrote:
 
 Which still sucks because most of the software will default to gcc, and
 compiled RPMs and binaries in other distributions fail sometimes too.

In your Profile (bash example):
$export CC=kgcc

and Bob's yer uncle. :)

( doing this, any ./configure you run will pick up kgcc instead of gcc )

If a binary was compiled on a seperate system/distribution, and fails on
yours, you can't blame _your_ compiler, 'cuz it didn't do it. :)


--
E PLURIBUS LINUX

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




Re: [Zope] Zope and Sybase Stored Procedures

2000-11-04 Thread Bill Anderson

MANUEL JOSE AMADOR BRIZ wrote:
 
 Everything works from a SQL method except \"exec sp_xx\" calls.  It is
 driving me insane.  ZSybaseDA spits errors about some operation in progress .

WARNING: This data is a bit old!
Last I knew, SybaseDA didn't work with stored procedures.
if that ahs changed, I apologize. I haven't seen anything that says it
changed though.

--
E PLURIBUS LINUX

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




[Zope-dev] 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 )




Re: [Zope] How small a box can zope run on?

2000-11-02 Thread Bill Anderson

Toby Dickenson wrote:
 
 On Fri, 27 Oct 2000 09:39:54 -0600, Bill Anderson [EMAIL PROTECTED]
 wrote:
 
 What OS is this on?
 
 All of them ;-)
 
 On Linux each thread does _NOT_ get a copy of the
 ODB. It just _looks_ like it.
 
 I suspect you are referring to the characteristic that several Linux
 memory-reporting tools list the memory used by one Zope process once
 for each thread.
 
 That's not the characteristic I am referring toEach zope publisher
 thread really does have its own copy of the ZODB object cache.

of the Object CACHE, that I can by, of the ZODB itsself, no.

 
 You can verify this by checking the value "Total number of objects in
 all of the caches combined" from Control Panel. This number should be
 roughly (number of threads) * (target size), although there are many
 factors that can affect it.
 
 See the archives for details. The benefit
 from smaller thread counts is that:
 A) Multiple threads is not a big boost on uniprocessor machines
 
 This is only true if Zope is saturating your processor. It may not be
 true if you are publishing any methods that are mostly I/O (file
 access, or other web requests)

I am only talking about Zope's use of it here. _Zope_ doesn't gain much
from multiple CPUs.

( I have machines here that have _many_ processors, and only two that
have less than two )

--
E PLURIBUS LINUX


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




[Zope-dev] 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
dtml-var title, 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] Zope.org down?

2000-11-01 Thread Bill Anderson


Works for me.

--
E PLURIBUS LINUX


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




Re: [Zope] Installation on Linux

2000-11-01 Thread Bill Anderson

Lee Curtis wrote:
 
 Hi All,
 
 I feel like a bit of an idiot, but I can't find any info about installing
 Zope until Unix - only Windows.
 
 Can anyone give me a quick start guide ??

http://www.zope.org/Members/michel/ZB/

--
E PLURIBUS LINUX


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




Re: [Zope] acl_users API

2000-11-01 Thread Bill Anderson

Harris Peter wrote:
 
 Hi
 I have given up trying to manipulate acl_users from DTML for now -
 I'm sure it's possible  because here and there on this list and on the
 Zope site I see hints that it can be done. However, I can't find
 (for example) a HOWTO anywhere that describes the API of
 acl_users and what you can do with it.

Try:
http://www.zope.org/Members/michel/ZB/

--
E PLURIBUS LINUX


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




Re: [Zope] Re:GoLive

2000-11-01 Thread Bill Anderson

Fred Yankowski wrote:
 
 On Wed, Nov 01, 2000 at 08:31:09AM -0600, Christopher J. Kucera wrote:
  That should be pretty easy . . .  Zope will let you add objects that
  have dots in the titles, so just put a method "index_html" in the
  root folder which has the following line:
 
dtml-var index.html
 
 That obvious solution fails in some cases.  It failed for me the very
 first time I needed it, when I tried to integrate web pages created by
 the Web Studio tool into a larger Zope website.  Web Studio (ack,
 phooey) creates a main index.html that uses Javascript to redirect to
 another page that acts as the real entry point.  That Javascript code
 gets confused when loaded via dtml-var index.html as above.  I
 resorted to doing the following instead:
 
  dtml-call "RESPONSE.redirect(URL1 + '/index.html')"

I avoid dotted names like th eplague, so my suggestion may not work but
you could try:

dtml-var "_['index.html']"

--
E PLURIBUS LINUX


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




Re: [Zope-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 )




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] Re: ZSybaseDA 2.00b2

2000-10-30 Thread Bill Anderson

 - Original Message -
 From: Rudd-O DragonFear
 To: DC Support List
 Cc: [EMAIL PROTECTED]
 Sent: Monday, October 30, 2000 10:21 AM
 Subject: [Support] ZSybaseDA 2.00b2
 
 Hey,
 I've been having some kind of problems with this DA.  Compiling and loading
 (importing) sy_occ in python works perfectly.  But zope won't start and
 won't say anything in the console or in the logs.
 
 what could it be?
 
 thanks in advance,


Search the archives, from about this time last year.
Quick synopsis:
 Check to ensure the sybase path statements are present in the zope
start up script.

--
E PLURIBUS LINUX


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




Re: [Zope] New kinds of problems

2000-10-30 Thread Bill Anderson

MANUEL JOSE AMADOR BRIZ wrote:
 
 Thanks, here are my two cents:
 
 Mini quick howto to connect to a sybase ASA/ASE:
 
 Get any 2.2 linux distro installed, except red hat 7 (compiler problems, it
 WILL fail).

Only if you didn't read the RELEASE-NOTES.
Use kgcc, it is the same compiler as RH 6.2 has.

---
root@darwin in /root 
$ cat /etc/redhat-release 
Red Hat Linux release 6.2 (Zoot)
root@darwin in /root 
$ gcc --version
egcs-2.91.66
root@darwin in /root 
---
ucntcme@locutus in /home/ucntcme 
$ cat /etc/redhat-release 
Red Hat Linux release 7.0 (Guinness)
ucntcme@locutus in /home/ucntcme 
$ kgcc --version
egcs-2.91.66
---

...
 exit python and go to the zope folder, then run ./start
 
 if zope starts, you\\\'re all set

not quite. You should stop zope, open a new terminal, and start zope
from there. More often than not, you will need to set up the $SYBASE
variables in the zope start up script. Running Zope in a 'clean'
terminal will test the environment.


--
E PLURIBUS LINUX


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




Re: [Zope] Calling form elements by name

2000-10-27 Thread Bill Anderson

Danny William Adair wrote:
 
 I should have posted your version, it's more explicit:
 
 ---
 dtml-in Items sort=Position
   dtml-let Prefix="'FormElement_'"
 thePos="_.str(Position)"
 nameAsAString="Prefix+thePos"
 dtml-var nameAsAStringbr
 dtml-var "_['FromElement_1']"br

I believe I see why this doesn't work:

Try changing:
 dtml-var "_[nameAsAString]"br
To:
 dtml-var "_['nameAsAString']"br

Otherwise, it will try to find a variable named whatever is in the
variable nameAsAString.

--
E PLURIBUS LINUX


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




Re: [Zope] OT:NT and rebooting

2000-10-25 Thread Bill Anderson

Wolfgang Strobl wrote:
 
 On 25 Oct 2000, at 16:00, J. Atwood wrote:
 
  "Months without rebooting"?
 
  That is certainly not something to brag about.
 
 Huh? Did anybody? Certainly not me. :-{
 
 In case I didn't make myself clear: for running Zope; I don't care
 much whether the OS needs a reboot every month, every year, or
 every decade, when I have to upgrade and/or restart Zope for
 installing Hotfixes and/or new products, every other month,
 anyway.

OK, tim e fo rme to weigh in on this. Reboot frequency is a matter of
experience and perspective. If you are used to uptimes measured in
years, or 'always on' environments, then NT's uptime rates are abject
failures. That's not a slight, it is a statement of fact that even Mr.
Gates himself agrees with and understands.

If, on the other hand, you don't come from that background or need, and
are not used to that type of environment, a few months to six months to
nearly a year can mean something to you.

So, this is *one* of the reasons we see these arguments about uptime
from both sides of the windows vs everything else uptime wars. Some
measure days, some months, and otehrs measure in terms of years.

 With three of my
  installations of Zope on Linux I have the machines at 194, 204 and 55 days
  of uptime (and the 55 was because of a bad powerstrip, the other others have
  been up since I brought them up).
 
 So what. I'm using an old 3.51 server on one of my companies
 intranets here, serving as a backup domain controller plus a few
 other, less important services, which is running for about half a
 year now (power failure in the machine room, too).  That machine
 has begun life as a OS/2 Lanmanager server (ca '90), and has
 been upgraded almost seamlessly again and again, both in
 hardware and in software, since.

And has been rebooted to perfrom those upgrades (software, the hardware
is obvious), has it not?
 
  While NT can and does stay up for long
  periods of time, it still is a very poor server choice as anything you
  install leads to a reboot.
 
 Well, W2K certainly has more capabilities here, and Linux, for
 example, is somewhat better in some (!) areas, but "anything" is
 a gross exaggeration.

While I agree that 'anything' is a poor choice of words, unless you are
changing kernels and/or glibc, Linux does not require a reboot for
install of any software (that I am aware of, and that is a high amount
of software mind you). There is work in progress to alleviate that as
well. Not quickly, as it is a rather complex undertaking, but it is
ongoing.

IIRC, kernel 2.4 will/does have support for hot swappable PCI devices on
hardware that has it (yes, you can get Intel-compat hardware with that).
Last I checked, if you try to hot-swap a keyboard or mouse, all versions
minus 2k (haven't tried it there), will die. As far as 'lack of need to
reboot' goes when concerning upgrades, Linux wins hands down..


So, the question regarding uptime is more a question of needs. Some of
us need 24x7 availablility, and 5 nines. Some do not. For those of us
needing 5 nines, we can use Unix/Linux to provide that. If you don't
need it (and not everyone does), use other criteria more appropriate to
your needs.




--
E PLURIBUS LINUX


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




Re: [Zope] SuperUser cannot own ;-)

2000-10-24 Thread Bill Anderson

Max M wrote:
 
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
 Withers
 
  I suppose you've just installed Zope and you're logged in as "Superuser"
  And that's the problem.
  The superuser cannot own folder, files etc.
 
 ...and I'd still like to know why ;-)
 
 Well I for one have accidently removed view privilliges for administrators
 in a folder, at that time I was very happy to be able to log in as super and
 restore those proviliges, or else I would have had to remove the directory
 and start fresh.

And you can still do that. You just can't _create_ new items as
'bootstrap user'.

 
 Perhaps it is also to avoid trojan horses being executed by super.

:^)=

--
E PLURIBUS LINUX


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




Re: [Zope] newbie questions ?

2000-10-23 Thread Bill Anderson

Chris McDonough wrote:
 
 And by the way, it's "authentication".  Every time I see "authentification",
 it makes my skin crawl. :-)


Amen. That and "...to adminstrate a server". :^)=

Bill

--
E PLURIBUS LINUX


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




Re: [Zope] newbie questions ?

2000-10-23 Thread Bill Anderson

Olivier Ricou wrote:
 
 On Mon, Oct 23, 2000 at 06:43:06AM -0400, Chris McDonough wrote:
  And by the way, it's "authentication".  Every time I see "authentification",
 
 guess how we say in french :)

I guess since I took 3 years of it, I am barred from guessing? ;^)



--
E PLURIBUS LINUX


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




Re: [Zope] Updating auto incrementing counter in a propertysheet

2000-10-23 Thread Bill Anderson

Max Møller Rasmussen wrote:
 
 What am I doing wrong here ... please !!
 
 I am trying to make an autoincrementing counter for use in a diskussion
 forum. It's purpose is to autogenereate id's for new messages.
 
 It is important that the id's are in order, so I need to make them this way.


Is it more important that they be in an order, or that they be in a
specific sequential list?

For example, an id based upon time stamp would indeed provide IDs that
re orderable (thus handling the in order part). While a list od IDs
named 1,2,3,4... is more like a 'linked list', where you know what
follows and what precedes a given id. 

However, by using objectIds, you can obtian a list of ids in a given
object (folder), and thus provide one for yourself, if needed.

FTR, I have implemented both ways of doing it. I am leaning towards the
timestamp as being more effective,  simpler.

--
E PLURIBUS LINUX


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




Re: [Zope] Roxen Zope, not working

2000-10-22 Thread Bill Anderson

Adrian Madrid wrote:
 
 I'm having problems running Zope on top of Roxen on a Win2k machine.
 They both run just fine separate but I can't make it work together. I
 followed the instructions from
 http://www.zope.org/Members/magnus/Roxen but I never got it to see the
 first page. Here are the tracebacks I get:
 
 * This is what I get when I try mysite.com:


snip

These are all Roxen tracebacks, try their lists for details (good luck).

Bill
(I run many sites just fine with Roxen/Zope, but that's on Linux)

--
E PLURIBUS LINUX


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




Re: [Zope] IIS and Zope share same problem :-S

2000-10-22 Thread Bill Anderson

Chris Withers wrote:
 
 Andrew Kenneth Milton wrote:
 
  |
  | http://www.zope.org/standard_html_header for example ;-)
 
  Not that old chestnut again...
 
 Yes, that old chestnut again. If it's considered a serious security flaw
 by Microsoft, maybe the Zope community should finally do something to
 solve it.
 
 ...and yes, there are discussions about this on Zope-dev right now,
 which will hopefully produce a solution :-)
 
 cheers,


As soon as you can tell us how to get Zope to go executing _files_ on
the server (read, in the filesystem), as opposed to objects in the
site I might accept it as the same bug.  :^)=

Then-again,-I-might-_use_-that-capability-if-I-could-ly y'rs Bill

--
E PLURIBUS LINUX


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




[Zope-dev] 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] Zopebot

2000-09-28 Thread Bill Anderson

Shane Hathaway wrote:
...
 I wonder if there's any way to count Zope sites.  Sometimes you might
 find a nice surprise, such as:
 
 http://www.cbsnewyork.com/manage_copyright

!!!

That's cool!



--
E PLURIBUS LINUX

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




[Zope-dev] 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] 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.

dtml-snip brevity

 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 )




Re: [Zope] Member authentication

2000-09-20 Thread Bill Anderson

Austin Mayberry wrote:
 
 What are suggestions for site member authentication in zope?

o Define your requirements
o Define your environment (What OS/Zope version, etc)
o Post a more thorough question, based on the above. :)

Bill

--
E PLURIBUS LINUX

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




Re: [Zope] FW: [Zope-PTK] Date Question

2000-09-19 Thread Bill Anderson

Scott Burton wrote:
 
 This is the correct list :)
 
 --
 From: Scott Burton [EMAIL PROTECTED]
 Date: Tue, 19 Sep 2000 14:27:46 -0700
 To: [EMAIL PROTECTED]
 Subject: [Zope-PTK] Date Question
 
 OK, I have searched everywhere for the answer to this. It is quite simple
 but I can't seem to figure it out. All I want to do is iterate over
 cataloged objects(dtml-in "Catalog(meta_type='object_type')") and only
 show items who's bobobase_modification_date matches today's date.
 
 I just can't figure out how to set the fmt="%d" in an if tag.


You shouldn't have to.
If Zope's DateTime has the today method, you culd do:
dtml-in "Catalog(meta_type='object_type')"
  dtml-if "_.DateTime.today  bobobase_modification_time"
dtml-title; was modified today.
  /dtml-if
/dtml-in

hmmm ... lemme see if it does ... nope.
Well, it works in python.
The other day (at a machine I don't have access too right now) I managed
to get mxDateTime in the namespace. If it would help, I'll try to post
what I did to get it done.


In the meantime, if you have mxDateTime installed, you should be able to
have an external method called "Today", that returns DateTime.today, and
compare as thus:

code-untested
-
dtml-in "Catalog(meta_type='object_type')"
  dtml-if "Today  bobobase_modification_time"
dtml-title; was modified today.
  /dtml-if
/dtml-in
-
/code-untested

still-wishing-mxDateTime-was-available-in-Zope-ly y'rs Bill

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

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




Re: [Zope-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] ZOPE - Size reduction ???

2000-09-16 Thread Bill Anderson

George wrote:
 
 I recently transformed my web site into a zope site. It's fantastic no
 question about that but I am a bit warried about the size of the web
 site. I already had to ask for user quota increase and it looks like
 I'll have to do it again soon. I got rid of the tutorial, products I did
 not need, the unnecessary doc files I deleted the quick start directory
 and I am flushing and packing the database often. What else can I do to
 decrease the size of ZOPE?

Check your logs. Depending on how it si set up, your logs may be in
youir directory,and counting against your quota.


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

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




[Zope] OT: Re: [Zope] Zope and the GPL poison pill

2000-09-13 Thread Bill Anderson

Andrew Kenneth Milton wrote:
 
 +---[ Dario Lopez-Kästen ]--
 |
 | From: "Toby Dickenson" [EMAIL PROTECTED]
 |  If that is your motivation then you may find that you get *more* back
 |  by not using the GPL. My contributions to Zope (both personal and on
 |  company time) are fairly significant in total, and would not have
 |  happened if Zope was under a GPL license.
 | 
 |
 | but is that because you personally don't like/endorse the GPL for
 | what-ever-reason or is it because the GPL actually prevents this? and if so,
 | could you please elaborate?
 
 There are a variety of reasons.
 
 First and foremost is that the GPL is not corporate friendly, which means
 that larger corporations are unlikely to take on GPLd products in any form.

An unproven assertion. I have personally witnessed a very large corporation prefer GPL 
to other licenses, such as BSDish
ones. Even after legal was through with it (a few times because legal recommended it).

 Unlikely does not mean impossible, but until the NASDAQ picks up again, I
 would say most people will be wary of non-commercial friendly products.
 
 So if you have something useful, then what will probably happen is
 said corporation will likely throw money at it and reimplement it,
 market it better, and make proprietary changes and move on. This has
 already happened with a BSD licensed product (the license was incidental,
 but, it did happen). This can happen to any Open Source product.
 
 The second reason is that GPL attracts fanatics.

As Does BSD. Just look at the BSD zealots that go to GPL forums with flame throwers on 
their back. Nearly everything
attracts fanatics.

Just look at the subject line. ;^)=

 Just look at any
 discussion forums where the issue comes up. You cannot have a calm discussion
 and mention the GPL.

Not true. I have personally had more calm conversations, including honest 
disagreement, than not.

 
 I have already seen one GPL project have to re-license its code to a
 company who despite the ranting of some and the calm assurances of others
 was not convinced that they could even comply with the GPL.
...
 Mozilla -- MPL license.

Dual license with GPL.
Sun relicensing StarOffice under a dual license with the GPL.

Two very large and notable cases of the opposite. Python MAY go the same way.

 
 Zope -- ZPL license.
 
 Perl -- Artistic License (GPL - controversial bits).
 
 While the GPL guarantees that other people's code will also be open
 source, it doesn't guarantee that they will contribute those changes to
 you (i.e. stop forks 150 Linux distros can't be wrong).
 The BSD code doesn't prevent this either (OpenBSD anyone?). MPL does.

One thing to note, and it is important, is that multiple distributions of Linux OS is 
irrelevant to the matter of the
GPL. The Linux Kernel is under GPL, but that does not require the entire OS built on 
top of it to be. Technically
speaking, a Linux OS Distribution is a compilation. To say that more than one linux 
distribution consittutes a fork is
false, and rather misleading.

It is also interesting to note you left out all the GPL work being done by 
corporations. Corporations such as HP, SUN,
and Phillips.

Now, lest anyone here presume I am a GPL zealot, visit my products page before making 
yourself look foolish.

In any event, the original question at the top of this post was not answered. As 
demonstrated, it is a matter of
personal preference. It is even more likley, that in this particular case, the 
contributons wuld not fall under GPL or
ZPL.


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

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




Re: [Zope] Zope and the GPL poison pill

2000-09-12 Thread Bill Anderson

Nils Kassube wrote:
 
 Oleg Broytmann wrote:
 
  LICENSE
 GPL
 
 I've seen several Zope products using the GPL. In my not so
 humble opinion, this could develop into a serious problem
 for Zope deployment. I'm not a lawyer (nor do I play one on TV),
 but the use of GPL'ed source code like e.g. Renderable ZClass
 in your web site probably means that you're now forced to publish
 every single bit of source built using the GPL'ed module --

No. This is clearly incorrect. The GPL only applies to the code, and modifications to 
said code. If you are in doubt as
to the licensaes of various systems, ask a lawyer. Many of the rest of us have.

 including commercial intranet projects. This can be impossible
 if you don't own the rights to every single piece of code used
 in a project.
 
 I hope Zope product developers think twice about using the GPL.
 The GPL license is not about sharing like e.g. the BSD license,
 it's about enforcing the political agenda of people who think
 that commercial ("proprietary") software w/o source code is evil.

Please, take license religous wars elsewhere. This is not an appropriate forum. This 
last paragraph sounds very
troll-like, or flame-baiting to me. This list is about using Zope.

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

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




Re: [Zope] Looking for Zope vs. Others at-a-glance comparison

2000-09-11 Thread Bill Anderson

Jason Cunliffe wrote:
 
  Completely calm and friendly opinions follow...
 
 yes thanks..
 
  I don't think it's any more difficult to create an attractive
  (graphics-wise) site in Zope than it is with PHP or ASP or plain old
  Apache-served HTML files.  Quite honestly, I'm not qualified to do it with
  any tool. :-)  I get the feeling that a lot of people expect Zope to
 design
  sites for them.  Maybe they're expecting too much.  Or maybe I'm expecting
  too little???  Or maybe it's that most of the people using Zope today
 (like
  me) are not pretty-site designers, but people that want a powerful tool to
  manage the most important part of a site...content.
 
 I agree absolutely that Zope is on level with PHP, ASP apacheHTML in terms
 of ease.
 My point is that Zope allows one to create powerful highlevel functionality
 at many levels, wrapping, hiding, abstracting, reusing, modularizing things
 which potentially could allow graphic designers to jump in and do great
 work. But out of the box it does not and for perhaps cultural reasons will
 not..Zope is largely based on reusable templates, and chunks of 'smart-html'
 better known as DTML.
 
 What Manila has done is to provide some reasonable default templates for
 getting useful site development work done 'out of the box' - they have
 provided a structure template, and well defined access to changing the
 obvious things people want to change.
 
 Perhaps the only product which does for Zope is Squishdot.. and I think that
 largely explains why most Zope sites are Squishdot or modified squishdot
 sites.

Then you need to get out more ;)
I have visited man, many zope sites, and only a few were squishdot based.

...

 This means tools with the flexibility of zope but not in it its present
 state of awareness.
 
  It's the site designers.  Zope isn't designed for assistance in creating
  attractive sites.  It's designed for creating manageable sites.  It's
  completely up to the designers to make it attractive, using tools designed
  to do so.  Zope (in my experience) does nothing to limit the ability to
 make
  a site attractive, but it does do buckets for increasing manageability.
 
 Yes. I quite agree..But why are there no attractive Zope sites?

Maybe you just have an entriely different idea of attractive? I have seen several site 
I would classify as 'attractive'.
I have seen sites that you wouldn't know were on a Zope server unless you noticed 
something like index_html in a link.
 
 My argument is that zope does nothing to HELP one's ability to make a site
 attractive.

And others arew arguing that it should not. Apache does nothing to help the 
'attractiveness' of a site, nor should it.

 Actually it does limit one's ability. for example look at even the syntax
 for making an image object borderless? it aunt obvious.. and it could/should
 be part of the image object properties

None of my images have problems with that. border=0 is pretty damned easy.

 
 --or how about a rollover button.. Yes that is a JavaScript problem perhaps,
 but what about including that as a BASIC feature of modern websites. But
 imagine if that alone was made easier by zope.

See the ActiveImage (?) product that does this.

 Navigation bar objects would be another big plus.
 Or how about a web page 'Table object' which made allowed one rapidly to
 group and include other zope object in a useful and productive way.

There are, I beleive, at least two products that do this.
 
 This is not gratuitous graphics this is stuff which is common to most
 websites. All the HTML tools do this.

Exactly. The HTML tools. That is where it belongs, not in a server.

 In zope a designer [= end user content manager] needs to be able to work
 with higher level tools which function with acquisition just like
 standard_html_header etc.
 
 for example [ad hoc]:
 
 1) Create a folder, some a sub folders and 'dummy' dtml documents.
 2) Add a navigation bar creating basic links to the above. This would auto
 create a set of matching named methods
 3) Add a style_object  which would allow one to apply css or similar across
 the above. Again auto-create matching named methods in each folder to allow
 low level tuning to happen later
 4) create a standard_table_object with named areas to allow population adn
 linking of HTML/DTML etc
 5) Create standard_site_overview document which would link to the above,
 including standard_report_methods which would spit out the stats/properties
 on each part so you could see each section in a browser but also print out.
 
 As I understand it all the above is daily business in zope, using all manner
 of dtml-in and -with, sequence-item iterations etc. But just bundling and
 linking these would allow a lot more people to jump and get on with making
 great Zope sites.
 
 This is not reinventing Dreamweaver3.

And none of this is something Zope prohibits. Do not confuse lack of IDE-type tools 
for editing HTMl with A Zope
Server's features and functionality. You 

Re: [Zope] Looking for Zope vs. Others at-a-glance comparison

2000-09-11 Thread Bill Anderson

Jason Cunliffe wrote:
 
 Ron
 
 yes +thanks for paying keen attention here..
 
   What Manila has done is to provide some reasonable default templates for
   getting useful site development work done 'out of the box' - they have
   provided a structure template, and well defined access to changing the
   obvious things people want to change.
 
  I see.  Having higher level drop-in Web sites, IMO, is a job for add-on
 Zope
  products that could be created by DC or the community to meet various
 needs
  (as in Squishdot like projects).  As the Zope community grows, I have no
  doubt that more add-on products for "Web sites in a can" will pop up.
 
 Exactly.
 My concern is to get the right kind of discussion going because it is going
 to need some differnt kinds of minds to work together.
 
  I can only guess that most Zope users are either not designers or are so
  filled with awe over its power that they forget to put effort into beauty.
  :-)  I think Zope lends itself more to the programmer and content provider
  types, and leaves the designer with nothing special to desire.  I don't
 say
  that in a bad way, but Zope isn't a design tool, so designers have no
  special interest in learning to use it.  As Zope makes its way into more
  businesses with design teams, pretty design will make its way into more
 Zope
  sites.
 
 Problem is am not sure Zopie will make its way into more businesses wiht
 design teams if it is such a pain in the $# to get sites sketched out.
 
 A really valuable  feature which Zope could offer is Site-Sketching
 You do the back of napkin whiteboard 'design' of the main site architecture
 hierharchy functioning. Now you need to map it out in 'dummy' mode so
 everyone can get to work playing with it and working on the bits they are
 all best at.
 You know you are going to make changes and so you want to benfit from object
 abstraction from the get go
 You know in house team and design [visual + code] will force changes not to
 mention clients..
 Then start throwing database at it - look and feel vs. satabase search
 menchaisms etc. This can be expensive time consumign stuff.. things people
 need to apply samrt reusable components to.. but which also allow them to
 get down very fingraoned and adjust = zope
 I think there is a big demand for this kind of up and running toolset.
 
 A zope folder full images or navigation widgets or search form elements are
 the type of things yu want to do a single copy paste or import on.
 
 I am a designer who has a special interest in learning to use.
 I do not see many other tools with this potential, but in its present state
 and my present programming skills, I am still a little short of being able
 to take Zope where I see it can go on my own. I hope this changes soon..
 
  My understanding is that DC has been putting so much of their resources
 into
  the Zope core, much needed documentation, and probably their consulting
  business, that their own Web site has been left with a lower priority.  I
  don't fault them for that.  I think they've done a great job at
  prioritizing.
 
 Granted.
 The price is right and there is some hairy stuff under the hood.
 I just hope DC can step back a bit more from time to time to see where they
 fit in from other perspectives also.
 I realize their income comes from consulting.
 They could apply their expertise [or others] to package off useful stuff for
 a reasonable price.
 Zope products coudl be very cost efefctive all around - those with teh time
 and skills can develope their own.
 Perhaos you are right adn it is still a little early yet.. maybe next year..
 
   And if you select yes you will get 'index_html' and 'acl_users'
 included..
   THIS is the entry point I am talking about
   The 'Add a Folder' page needs to offer more so that it can default to
 the
   immediate bones of a useful site, methods and links. The irony to
 
  I think the "bones of a useful site" belong in a different object than a
  Folder, though I agree that specialized products/objects for canned sites
  would be a nice addition to the Zope products list, whether from DC or the
  community.
 
 Yes.  How about :
 - 'Add Bones object'

What is a 'Bones' Object??

 - 'Add Navigation Object'
http://www.zope.org/Products/navigational

 - Add Styles object'

ZStylesheet

 - 'Add Report Object'

ListMate,MetaPublisher,Add Search Interface

 - 'Add WebSite Object'

Such as Squishdot, ZopePTK ...



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

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




Re: [Zope] Testing out new versions of XXX (in this case, WorldPilot)

2000-09-10 Thread Bill Anderson

"A.J. Rossini" wrote:
 
 What is the best way to test out new versions of Products without
 breaking an existing setup?  Should I simply "version" the current
 working version, then install new stuff to test, etc, or is there any
 easy way to have products "ORIGINAL" and "ORIGINAL-2" (which is what
 I'd prefer, for stability comparisons)
 
 (in this case, I'm curious about the palm-syncing features of WP
 1.1alpha for our home server, but can't afford to break our current
 WWW-based email access...?)
 
 Or should I just copy Data.fs and manually revert in case of accident?
 
 Advice appreciated!


Personally, I duplicate the site, and do testing on the secondary site.

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

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




Re: [Zope-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 )




Re: [Zope] Import from file via management-interface

2000-09-08 Thread Bill Anderson

How about just the patch next time, as opposed ot the whole patched filed?


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

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




[Zope-dev] 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] wrapped object

2000-09-07 Thread Bill Anderson

Sven Hohage wrote:
 
 Hallo,
 while adding ZClass instances by form I get the following traceback:
 I don't know what's a wrapped object??
 And where the problem is.
Thanks
 --
   Zope Error
 Zope has encountered an error while publishing this resource.
 
 Error Type: ValueError
 Error Value: Invalid property value: wrapped object
 


I have seen this when trying to pass into a property a mothod or instance, as opposed 
to the strin representation of it.
check your form for dtml objects as input values. You may have a typo.

Then again, it could be something completely different.


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

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




Re: [Zope-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] 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] supplemental group ids (Linux)

2000-09-06 Thread Bill Anderson

Kip Rugger wrote:
 
 Bill Anderson  [EMAIL PROTECTED] wrote:
 Kip Rugger wrote:
 
  Chris McDonough  [EMAIL PROTECTED] wrote:
  Aplogies for the ignorance, but can you maybe explain the concept
  of supplemental group ids and give an example of how the current unpatched
  behavior could be subverted?
 
  I can try...
 
  Supplemental gids are useful for allowing a user to belong to more
  than one group, or maybe to more than one project in normal parlance.
  This is normally effected by listing the uid opposite more than one
  group in /etc/group.  The login process issues the initgroups(3) call
  to install these supplemental groups, which are inherited by all
  processes forked from the login shell.
  The problem is comes when you change user ids; for example what I
  saw with Zope (start -u nobody) was:
 
   before change   after change
   =   
   user id root   nobody
   group idroot   nobody
   sup id(s)   root   root
 
 
 Would you mind describing how you determine this?
 
 [/proc] $ cat /proc/90/status
 Name:   junkbuster
 State:  S (sleeping)
 Pid:90
 PPid:   1
 Uid:101 101 101 101
 Gid:101 101 101 101
 Groups: 101 -- supplemental groups



 On my machine 101 is uid and gid for nobody; as you can see
 junkbuster is correctly sandboxed.  For unmodified Zope, you'll
 see a zero in the indicated line (or possibly several values
 if root belongs to several groups like `wheel' on your system).


OK, something is not quite right here.
On my unmodified zope, it is properly 'sandboxed'. Perhaps it is the use of the 
explicit '-u nobody'? I don't do that on
my system, which causes Zope to run as nobody implicitly.

(When started as root, unless told otherwise, zope will switch to nobody).

Try running without the 'u nobody switch, and see what happens. Just out of curiousity.

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

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




[Zope] DateTime.now().iso_week

2000-09-06 Thread Bill Anderson

In Zope, I need to get the results of the command in the subject.
Unfortunately (and somewhat irritatingly...), Zope doesn't seem to use
the mxDateTime package, and thus, _.DateTime does _not_ have it. Anyone
know how I would go about getting it? Without using an External method?


-- 
Bill Anderson (ARC)Unix/Linux System Administrator
HPSO Engineering Productivity Team Wednesday, September 06, 2000
Random Quote:
  Why can't women put the toilet seat back up?

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




[Zope] Major problem involving Multiple zopes on one machine

2000-09-06 Thread Bill Anderson

This is happening on an HP-UX 11.0 machine.

Setup:
Two Zope installs, TWO IP adresses.
Each install has the -a xx.xx.xx.xx address option passed via the
standard start script.

problem:
occasionally, while working on one, I wind up actually working on the
other.

Clarification:
 While in the manage screen for ServerA, I occasionally see the
management screen for ServerB. Even wihtout being logged into ServerB.
(IE. clean browser session)


This sucks.


-- 
Bill Anderson (ARC)Unix/Linux System Administrator
HPSO Engineering Productivity Team Wednesday, September 06, 2000
Random Quote:
  (A)bort, (R)etry, (S)elf-destruct?

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




Re: [Zope] Major problem involving Multiple zopes on one machine

2000-09-06 Thread Bill Anderson

ethan mindlace fremen wrote:
 
 Bill Anderson wrote:
 
  Clarification:
   While in the manage screen for ServerA, I occasionally see the
  management screen for ServerB. Even wihtout being logged into ServerB.
  (IE. clean browser session)
 
 I have 5 zopes on the same machine  i have never noticed this problem.
 do the different ip's have different names?  what do you get from when
 you start as far as computing default hoistname goes?
 
 ~mindlace

As I sit here and play with it, it seems to happen when I restart zope
from within the Control panel.

I'll look up the hostname part in a few minutes ...
I can't restart the server just yet. IIRC, they came up with the correct
hostnames ...

-- 
Bill Anderson (ARC)Unix/Linux System Administrator
HPSO Engineering Productivity Team Wednesday, September 06, 2000
Random Quote:
  The world is a stage, but the play is badly cast.

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




Re: [Zope] supplemental group ids (Linux)

2000-09-06 Thread Bill Anderson

Kip Rugger wrote:
 
 OK, something is not quite right here.
 On my unmodified zope, it is properly 'sandboxed'. Perhaps it is the use of
 the explicit '-u nobody'? I don't do that on
 my system, which causes Zope to run as nobody implicitly.
 
 (When started as root, unless told otherwise, zope will switch to nobody).
 
 Try running without the 'u nobody switch, and see what happens. Just out of
 curiousity.
 
 No difference.
 
 I think the point is that Zope does not make any initgroups(3) calls;
 this will be a problem if the particular system needs it.
 
 I have two such systems:
 
 Linux 2.2.16 + glibc-2.1.2
 NetBSD 1.4

...

 Under this hypothesis, my question is how could _your_ system work?
 Why is it that you don't have the original primary gid lingering in
 the supplemental list?

Not sure. Here is my setup:
glibc  2.1.3
Kernel 2.2.15
heavilly modified Redhat 6.2 base.

Perhaps it is the kernel? I also have a 2.2.16  (2.1.3 glibc) kernelled machine which 
exhibits the behavior you see on
yours..

I can try it on a 2.2.4test6 kernel too ...

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

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




Re: [Zope] re module through the web security

2000-09-06 Thread Bill Anderson

Evan Simpson wrote:
 
 From: Chris Withers [EMAIL PROTECTED]
  One of Zope's key strengths is its granular security, right?
  So why isn't it the reponsibility of the site
  designer/maintainer/owner/whatever to ensure that only people he trusts
  have the ability to write DTML?
 
 Fear not.  In the brand new shiny PythonMethods Product coming soon
 (really!) to a Zope near you, you will have the ability to say:
 
 ModuleSecurityInfo('re').protect('compile', 'Use the "re" module')
 
 ...and suddenly anyone to whom you grant 'Use the "re" module' permission
 will be able to 'from re import compile' in their Python Methods.  Anyone
 else will be able to 'import re', but not access any of its contents.


Now THAT! Rocks!

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

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




Re: [Zope] supplemental group ids (Linux)

2000-09-05 Thread Bill Anderson

Kip Rugger wrote:
 
 Chris McDonough  [EMAIL PROTECTED] wrote:
 Aplogies for the ignorance, but can you maybe explain the concept
 of supplemental group ids and give an example of how the current unpatched
 behavior could be subverted?
 
 I can try...
 
 Supplemental gids are useful for allowing a user to belong to more
 than one group, or maybe to more than one project in normal parlance.
 This is normally effected by listing the uid opposite more than one
 group in /etc/group.  The login process issues the initgroups(3) call
 to install these supplemental groups, which are inherited by all
 processes forked from the login shell.
 The problem is comes when you change user ids; for example what I
 saw with Zope (start -u nobody) was:
 
  before change   after change
  =   
  user id root   nobody
  group idroot   nobody
  sup id(s)   root   root


Would you mind describing how you determine this?




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

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




Re: [Zope-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 )




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 )




  1   2   3   >