Re: [Zope] The not-very-Super user

2000-12-05 Thread Anthony Baxter


> An example might be: if somehow someone took all permissions
> away from all of your managers, they'd be out of luck. The 
> superuser could still log in and fix that though.

I actually got bit by this with what I suspect was a web browser
having severe mental problems - a submit of the security page cleared
_every_ single button. Double-plus ungood - I plan to make a patch 
that won't allow you to turn off all the buttons.

Anthony

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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] Editing SQL methods from Emacs (+ FTP server)?

2000-12-04 Thread Anthony Baxter

>>> Anthony Baxter wrote
> I added a patch for ftp-enabling SQL Methods to either the collector
> or the zopeshell patch manager on sourceforge (I forget which right 
> now, and it's late and I'm going to bed right now...) If you can't
> find it, email me and I'll dig it up.

Ok, found it:

http://sourceforge.net/patch/download.php?id=101925

Ignore that note at the top saying it needs other patches, 
this should work by itself fine.

Anthony

___
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] Editing SQL methods from Emacs (+ FTP server)?

2000-11-29 Thread Anthony Baxter


I added a patch for ftp-enabling SQL Methods to either the collector
or the zopeshell patch manager on sourceforge (I forget which right 
now, and it's late and I'm going to bed right now...) If you can't
find it, email me and I'll dig it up.


>>> Stephane Bortzmeyer wrote
> 
> All the texts explaining the wonders of Zope tell that you can edit your DTML
 
> files from (X)Emacs, and not from the lame editor you get from your browser 
> with the default HTML form.
> 
> It works great for DTML but ange-ftp (GNU emacs 20.7) refuses to open the SQL
 
> methods ("File exists but cannot be read"). Is there a solution, besides 
> writing it offline and uploading it into Zope?
> 
> 
> 
> 
> ___
> 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 )
> 

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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] bunch patches for zopeshell uploaded to sourceforge...

2000-10-16 Thread Anthony Baxter

FWIW, I just posted a series of patches for ZopeShell, and a 
few other bits, that add:

  editing of PythonMethods and Z SQL Methods (also enables ZSQL through FTP)
  Add host:port to the prompt 
  Add a 'login' command to switch to a different Zope Server 
  Don't upload the file if the temp file's mtime hasn't changed. 
  Prompt for username and password if not given. 

see the patch tracker at 
  http://sourceforge.net/projects/zopeshell/
They're patches 101923 - 101927 in the patch tracker. 

I'll copy the relevant Zope patches into the Collector...

Anthony

___
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] Microsoft SQL Server Access under Linux?

2000-08-23 Thread Anthony Baxter


Use Sybase. Sybase even provide the client libs for download for
*ahem* evaluation. 

MS SQL == Sybase wearing a pair of bad Groucho Marx glasses/nose/mustache
  (aka an annoying management GUI)

Or FreeTDS, but last time I looked that wasn't threadsafe.

Anthony

>>> "Darin Lee" wrote
> Zopistas,
> 
> Is it possible to access an ODBC data source through Zope running under Linux
? I have perused the literature, and it appears the Zope DA's for ODBC only run
 under the Win32 environment.
> 
> I would very much like to setup ZAP (for many reasons), but our "organization
al standard" is MS SQL Server 6.5.
> 
> Thanks,
> -Darin Lee
> 
> 
> 
> 
> Darin M. Lee 
> Analyst / Web Administrator
> Office of Automation Coordination
> Michigan Department of Environmental Quality
> Phone: 517.241.5214
> [EMAIL PROTECTED]
> 
> Darin M. Lee 
> Analyst / Web Administrator
> Office of Automation Coordination
> Michigan Department of Environmental Quality
> Phone: 517.241.5214
> [EMAIL PROTECTED]
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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] mailhosts and mail server speed

2000-08-23 Thread Anthony Baxter


>>> Chris Withers wrote
> Shane Hathaway wrote:
> > > It's the call to mailhost.send() which is slow. I'd love to know why :S
> > >
> > > How much influence does the the mail server speed have to this? How can
> > > I measure it? ;-)
> > 
> > Set up Sendmail on localhost and see if the problem goes away.  
> 
> localhost is a windows NT workstation ;-)

Note that if you set up sendmail on a local box, make sure it either
handballs stuff off to a smarthost straight away, or you have stuff 
set up to check for sendmail getting upset and just queuing messages
for ever. Normally you'd notice breakages on your mail server - but
your web server might be a different matter entirely.

Course, it doesn't help in Chris' case, but there's nothing that can't be 
fixed with either a single CD of redhat or 3 CDs of debian. (or a 
freebsd CD, if that's what gets you going).

Anthony.
-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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] AArgh. Zope-2_2-branch and head of CVS breaks SQLMethods.

2000-08-10 Thread Anthony Baxter


Aha! Nailed it. It's the 1.131 version of OFS/Application.py

cvs log entry:

revision 1.131
date: 2000/08/02 17:31:54;  author: brian;  state: Exp;  lines: +71 -46
branches:  1.131.4;
Merged fix for products with old-style initialization not being properly
filtered by permission in the filtered add list.


Ok, the problem is that when it sees an initialize() method, it
stops looking for other stuff. ZSQLMethods has a __methods__ 
thing, tho. Oops. Patch appended to make it always look for
__methods__.

Note that it doesn't break ZSQLMethods from working, just from being added
or edited.

Argh. This would've been much easier to figure out if I hadn't managed 
to confuse myself (tooo many installations of zope, all slightly different -
need to make it better :)

Anthony

>>> Anthony Baxter wrote
> 
> The current Zope-2_2-branch and head of CVS is busted - you cannot add or
> edit SQLMethods. It appears that Products.ZSQLMethods.__init__.__methods__ 
> doesn't get into the namespace of the product properly, as neither
> the add or edit screens can see SQLConnectionIDs.
> 
> Blah. More to come - I'll try to figure out why it's broken, and when.
> 
> Anthony




Index: Application.py
===
RCS file: /cvsroot/Zope/lib/python/OFS/Application.py,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 Application.py
--- Application.py	2000/08/07 04:22:29	1.1.1.3
+++ Application.py	2000/08/10 12:41:15
@@ -507,20 +507,6 @@
 meta_type['product']=productObject.id
 meta_types.append(meta_type)
 
-for name,method in pgetattr(
-product, 'methods', {}).items():
-if not hasattr(Folder, name):
-setattr(Folder, name, method)
-if name[-9:]!='__roles__': # not Just setting roles
-if (permissions.has_key(name) and
-not folder_permissions.has_key(
-permissions[name])):
-permission=permissions[name]
-if new_permissions.has_key(permission):
-new_permissions[permission].append(name)
-else:
-new_permissions[permission]=[name]
-
 if new_permissions:
 new_permissions=new_permissions.items()
 for permission, names in new_permissions:
@@ -528,6 +514,19 @@
 new_permissions.sort()
 Folder.__dict__['__ac_permissions__']=tuple(
 list(Folder.__ac_permissions__)+new_permissions)
+
+for name,method in pgetattr(product, 'methods', {}).items():
+if not hasattr(Folder, name):
+setattr(Folder, name, method)
+if name[-9:]!='__roles__': # not Just setting roles
+if (permissions.has_key(name) and
+not folder_permissions.has_key(
+permissions[name])):
+permission=permissions[name]
+if new_permissions.has_key(permission):
+new_permissions[permission].append(name)
+else:
+new_permissions[permission]=[name]
 
 if os.environ.get('ZEO_CLIENT',''):
 # we don't want to install products from clients!



[Zope] AArgh. Zope-2_2-branch and head of CVS breaks SQLMethods.

2000-08-10 Thread Anthony Baxter


The current Zope-2_2-branch and head of CVS is busted - you cannot add or
edit SQLMethods. It appears that Products.ZSQLMethods.__init__.__methods__ 
doesn't get into the namespace of the product properly, as neither
the add or edit screens can see SQLConnectionIDs.

Blah. More to come - I'll try to figure out why it's broken, and when.

Anthony

___
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.org down

2000-07-24 Thread Anthony Baxter


>>> ethan mindlace fremen wrote
> One solution is to have your Data.fs actually be split using mounted
> databases, something I consider a sub-optimal solution. 

I'm curious - why do you consider this sub-optimal?

Anthony


-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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] Sybase in Remote Machine

2000-07-24 Thread Anthony Baxter


This should be simply a matter of specifying the remote machine in
your $SYBASE/interfaces file.

Anthony

>>> Herbert Kwong wrote
> Hello,
> 
> I have SuSE 6.4, Zope 2.1.6, Sybase 11.9.2 and SybaseDAv2 in my
> machine.  It works fine.  However, is it possible to make my local
> Zope create a connection to a remote Sybase server?  As I would like
> to separate the Sybase Database from the Apache/Zope server.  Thanks.
> 
> Regards,
> Herbert Kwong
> [EMAIL PROTECTED]
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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] anyone seen browsers map '_' to '+AF8-' ?

2000-07-23 Thread Anthony Baxter

We're seeing a really strange occasional error crop up in our
web logs - periodic requests for an image with an _ in the name
(e.g. hdr_left) get mutilated to hdr+AF8-left. Out of the last
400,000 requests, there's been about 110 of these errors. There
appears to be nothing much in common in the requests, except that
the browser is always a variant of IE 5.0 (not 5.01, 5.5, or 4.0,
or anything else). IE 5.0 only makes up 35% of our hits, so it's
unlikely to be just random chance.

Ones we've seen with it:
Mozilla/4.0 (compatible; MSIE 5.0; Windows 95)
Mozilla/4.0 (compatible; MSIE 5.0; Windows 95; DigExt; OZEMR1999V01)
Mozilla/4.0 (compatible; MSIE 5.0; Windows 95; ZDNetSL; DigExt)
Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt; Chariot)
Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt; TUCOWS)
Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)

Has anyone seen anything similar? I've searched the web, microsoft.com (ha), 
all to no avail. It's not a very common bug, but it's a significant
proportion of the total errors on the site, so it'd be nice to nail it.

ta,

Anthony

--
Anthony Baxter <[EMAIL PROTECTED]>
It's never too late to have a happy childhood.

___
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] SQLSession path

2000-07-08 Thread Anthony Baxter


Go to the management interface, Properties, and hit 'Change'.

Anthony

>>> [EMAIL PROTECTED] wrote
> Hi All,
> 
> Using SQLSession v 0.2.9, hit by this problem :
> 
> Zope Error
> 
>  Zope has encountered an error while publishing this resource.
> 
>  AttributeError
> 
>  Sorry, a Zope error occurred.
> 
> 
> 
> And I had checked the SQLsession.py, the script stop at :
>  response.setCookie(self.cookie_name, sessionName, path=self.path)
> 
> But I called the session with cookie.
> 
> Any idea what's wrong ??
> 
> Please help. Thanks
> 
> Wai
> 
> 
> ___
> 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 )
> 

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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] Problem calling SESSION object

2000-07-06 Thread Anthony Baxter

Ugh. This is a stupid bug on my part. Upgrade to 0.2.9

Anthony

>>> [EMAIL PROTECTED] wrote
> Hi All,
> 
> Need Help.
> 
> I'm currently using SQLSession v 0.2.3, with access database ( I had
> changed the "value" filed in session_data to item_value and also all sql
> statements that refer to it).
> 
> I had no problem generate the session id, but however, I had problem
> calling session object after I insert it into session_data.
> 
> I got an error when calling the , i got this :
> 
> 
>  Zope Error
> 
>  Zope has encountered an error while publishing this resource.
> 
>  Error Type: NameError
>  Error Value: upper
> 
> 
> 
> 
> ___
> 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 )
> 

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.

___
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] wierdness with 2.2, Security, and manage_addProduct[' ']..

2000-07-06 Thread Anthony Baxter

Ok, this is driving me slightly nutso.

Why won't this work in Zope 2.2? Make a DTML method containing:


  


I cannot find a way to make the security system let this through. method
is owned and executed by a user who is a manager, no wierd permissions,
nothing. I get a permission failure trying to look up and access the
'manage_addVocabulary' method.

The example of ZCatalog.Vocabulary is simply chosen because it is a standard
product that is a) a python product, b) using the "new-style" __init__ 
method (as opposed to the ancient one). The actual product I'm seeing
the problem on is a bit more complex, but Vocab will do.

It's been driving me insane for most of this evening - I'm positive 
you _used_ to be able to do stuff like this, and it works when the 
product is a ZClass-based one... 

I've pretty much convinced myself it's a bug in the 2.2 security system...

Anyone? Brian?

Anthony
--
Anthony Baxter <[EMAIL PROTECTED]>
It's never too late to have a happy childhood.

___
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] Ownership of ZClass methods in Zope2.2?

2000-07-06 Thread Anthony Baxter

I have a problem in Zope2.2 - I've upgraded from a previous 
version, and there's a bunch of methods that used to work
which now fail with access control issues (even when run
as manager). My current theory is that it's because the 
DTML methods of the ZClass (or it's constructor method, 
which is trying to do some other funky stuff) is unowned.

Hooowever, the DTML methods don't have an 'owner' type tab -
should they? Worse yet, going to ...method/manage_owner, and
clicking the 'Take Ownership' button brings up the Zope 
'Help' window on Ownership. (this is netscape 4.7 on linux)

Help? Am I on a total wild goose chase here?

Anthony

___
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] Re: [Zope-Moz] mozilla and zope play nicely again!

2000-06-28 Thread Anthony Baxter

>>> Martijn Pieters wrote
> Don't you mean M16? When M17 comes out it will have the fix. Nightlies are
> marked with the milestone they are working up _to_, not what they are working
> _from_.

*grumble* I'm sure I saw a post to slashdot saying M17 was out...
yep, I did, 
http://slashdot.org/article.pl?sid=00/06/26/1655250&mode=nested

"net of a million lies", indeed.

___
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] mozilla and zope play nicely again!

2000-06-28 Thread Anthony Baxter

The basic auth problem of mozilla-on-linux that's been around since
around the 1st or 2nd of June are now fixed, as of 2000-06-27-20-M17
(note that I don't believe that straight M17 has the fixes applied.)

Yay!

Anthony

___
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] comercial products using zope

2000-06-20 Thread Anthony Baxter

>>> Terry Kerr wrote
> Basically I want to know if anyone else has used zope for a commercial
> product b4, and how they did it.  Is there anything in particular that I
> should know about.  Should I just rely on a good software license to
> protect my code?  Also...are .pyc files as platform independent as .py
> files?

Yes. Digital Creations, and the product was called Principia. I don't know
if all the stuff with the mangled and encrypted byte code support is still
there, tho.

Anthony

___
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] Mozilla for mgmt

2000-06-15 Thread Anthony Baxter

>>> Anthony Baxter wrote
> > > Has anyone besides me had trouble using Mozilla to manage Zope ie access
> > > the control panel via log in?
> > There are regressions in recent Mozilla builds that prevent the authenticat

oops. I forgot this other one that I found. Mozilla writes the 
username/password with a trailing null. I just logged it:
http://bugzilla.mozilla.org/show_bug.cgi?id=42782

A patch that allows Zope to workaround this:

diff -u -r1.110 User.py
--- User.py 2000/06/05 15:31:43 1.110
+++ User.py 2000/06/16 06:26:32
@@ -439,6 +439,8 @@
 if lower(auth[:6])!='basic ':
 return None
 name,password=tuple(split(decodestring(split(auth)[-1]), ':', 1))
+if password[-1] == '\000':
+   password = password[:-1]
 
 # Check for superuser
 super=self._super


___
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] Mozilla for mgmt

2000-06-15 Thread Anthony Baxter

>>> Martijn Pieters wrote
> > Has anyone besides me had trouble using Mozilla to manage Zope ie access
> > the control panel via log in?
> There are regressions in recent Mozilla builds that prevent the authentication
> dialog from functioning properly. This regression seems to keep popping up
> once in a while. The password textbox is then broken, and Mozilla tries to
> authenticate you with an empty password field.

The current one is bugzilla 42008. ("Basic" auth works, "basic" auth doesn't).
Zope gets it wrong, I just put a patch in the Collector.

Mozilla "bug" at 
http://bugzilla.mozilla.org/show_bug.cgi?id=42008

fix at
http://classic.zope.org:8080/Collector/1328/view

> Often, you can bypass it by typing the password in a seperate text window,
> then copying and pasting it into the password textfield. This has worked for
> me on Linux.

This now works, but was broken by the above Mozilla bug (ok, they're 
technically correct, but it's still a change, and no other browser behaves
this way).

> Other than this problem I have had no trouble managing Zope servers with
> Mozilla, or at least not much.. it all depends on the quality of the nighty
> build. Try a newer or older build, I'd say.

Newer ones are broken since 2000/06/01... 

Anthony

___
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 2.2 beta 1 released

2000-06-13 Thread Anthony Baxter


>>> Andrew Kenneth Milton wrote
> | ?? What's a Dr Watson? I haven't seen that error...
> 
> It's like the full-circle crash stuff for Netscape.

Ah, ok. 

> Any application that dies under NT causes a "Dr Watson" error as that's the 
> name of the application that fires up to tell you that something died.

Fair enough. When I've seen applications die under NT, usually you just
have to reboot, you don't get any details... 
-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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 2.2 beta 1 released

2000-06-13 Thread Anthony Baxter


>>> Graham Chiu wrote
> I go to the manager interface of my root folder in Zope and it dies with
> a Dr Watson :-(   

?? What's a Dr Watson? I haven't seen that error...

Anthony


___
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] MountedFileStorage 0.02 now available.

2000-06-11 Thread Anthony Baxter


MountedFileStorage 0.02 is now available.

Changes in Release 0.02:

  New help files.

  You can now use MountedFileStorage to create new ZODB files. 
  Nitty-gritty is in the SubApplication.py file - quite possibly
  useful to people doing other sorts of mounted storages. Note 
  the patch in no_repeat_metatypes.patch - not essential, but will
  stop your 'add' menus getting bloated to hell.

README follows:

MountedFileStorage, 0.02.

Ok, so the DC guys have been talking about allowing multiple ZODB support,
but I couldn't see a way to use it. A bit of trawling through the CVS and 
I found the guts of a MountedItem object which has now been removed. Using
that as inspiration and a source of pointers, I've bolted together a really
simple Product for mounting multiple ZODB files onto a Zope installation. 

You should also check out the 
"MountedDatabases":http://www.zope.org/Members/jim/ZODB/MountedDatabases
section of the ZODB Wiki.

First of all, you need to be running a really really recent
"CVS":http://www.zope.org/Resources/CVS version of Zope. 2.2alpha1 isn't 
good enough. Then install this product (it unpacks in 
lib/python/Products/MountedFileStorage).

Sample usage:

  Select 'Mounted FileStorage' from the product add list.

  For 'file' put nifty.fs. Leave 'path' blank, and put 'nifty' as the id, 
  click 'create'.

  You've now got an empty ZODB installed.

_WARNING_: This is really really untested stuff. It Works For Me. Not
To Be Taken Internally. Do Not Come Crying To Me If It Breaks Your
Zope Install.

If you want to play with this stuff, you really should back up your
Data.fs _first_.

For more info, see the online Help. In particular, check out the known
bugs and problems section.

Security Issues: There probably are some. I've no idea what they might
be. The product makes a really simple-minded effort to not allow badness
through (any filename with a '/' or '\' in it). Don't give access to the
permission 'Mount FileStorages' to anyone that you don't trust, though.
Note that this includes anyone with Manager role on the system. Note also,
though that you can only mount existing files that are in var/. 


Anthony Baxter <[EMAIL PROTECTED]>, Sun Jun 11 17:38:20 EST 2000


___
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] Traversable DTML methods

2000-06-10 Thread Anthony Baxter


Use a pythonmethod with the traverse_subpath argument...

Anthony

>>> "Ian Sparks" wrote
> It seems strange to me that SQLMethods are traversable out of the box and
> "normal" DTML methods are not.
> 
> It seems to me that traversable DTML methods would be useful (to me this
> means DTML Methods with parameters).
> 
> Is this something that might make it into Zope in the future or am I missing
> something important which means that they simply arn't necessary?
> 
> - Ian Sparks.
> 
> 
> ___
> 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 )
> 

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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] load-balancing recommendations ? (configuration and hardware)

2000-06-10 Thread Anthony Baxter


>>> chas wrote
> I've often heard about the infinite-scalability that will
> be created by something like ZEO and I've always wondered
> about one thing : how is the load-balancing being done ?

There's a number of approaches you can take here:

1. Buy something - a cisco localdirector, an arrowpoint (also now owned
by cisco), or similar. This is the approach we take - in a past life I've
seen an LD get the absolute crap kicked out of it and it just kept working
(it was in front of some _large_ proxy caches). 
www.cisco.com
www.arrowpoint.com

2. Software - there's linux virtual server, there's eddieware, there's
probably a bunch of commercial packages as well, although I don't know
why you'd bother...
www.linuxvirtualserver.org
www.eddieware.org

Which of these solutions you go for largely depends on your budget - the
first set of options are probably more robust and flexible, but the latter
is definately going to be cheaper :)

Anthony
-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.

___
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] Mozilla problem

2000-06-07 Thread Anthony Baxter


If you're on Linux, there's some godawful problems recently with 
the auth dialog. The last couple of days don't even bring up a 
dialog. 

http://ftp.mozilla.org/pub/mozilla/nightly/2000-06-05-08-M16/
works to the point of popping up a dialog, but to enter the password
you have to enter it into another window, copy it, and paste it into
the password box.

To get one that actually does auth properly on Linux, go back to late
April :(

Anthony

>>> Martijn Pieters wrote
> On Tue, Jun 06, 2000 at 01:27:48PM -0700, Timothy Grant wrote:
> > I've recently started experimenting with Mozilla M16. While my pages
> > seem to work beautifully, I can't get into any of the management
> > screens. When I add /manage to the URL, I get nothing, no authentication
> > box no error, nothing.
> > 
> > Am I missing something, or is Mozilla missing something?
> 
> Probably Mozilla missing something. M16 is still in development, I assume you
> took a nightly. And with all nightlies, there are big bugs in there,
> regressions, instabilities. They are being ironed out, when M16 comes out it
> should work again.
> 
> -- 
> Martijn Pieters
> | Software Engineermailto:[EMAIL PROTECTED]
> | Digital Creations  http://www.digicool.com/
> | Creators of Zope   http://www.zope.org/
> |   The Open Source Web Application Server
> -
> 
> ___
> 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 )
> 

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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] Error Type: TransactionError

2000-06-06 Thread Anthony Baxter

>>> Chien-Pin Wang wrote
> Zope with type TransactionError. The coresponding error value says:
> Traceback (innermost last):
>   File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
> 169, in
> publish
>   File /usr/local/Zope-2.1.6-src/lib/python/ZODB/Transaction.py, line 209,
> in
> commit
> TransactionError: A serious error, which was probably a system error,
> occurred in a previous database transaction.  This
> application may be in an invalid state and must be
> restarted before database updates can be allowed.

This means that a previous transaction failed. You need the traceback 
from the request that failed. Other than that, you can't do much but
restart.

Anthony

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

2000-06-06 Thread Anthony Baxter


>>> "Alexandre A. Drummond Barroso" wrote
> You both had the same problem I have now: make Oracle 8i (in my case, Oracle
> 8.1.6) work with Zope.
> DCOracle is working well (Makefile attached to this message) but ZOracle
> isn't running yet.

You're doing it the difficult way - just use -lclntsh for the link line.

If you download the recent update to DCOracle, you should find it builds
out of the box.

Anthony

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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 admin/backup question

2000-06-05 Thread Anthony Baxter

>>> ethan mindlace fremen wrote
> > Also, are the Data.fs.in and Data.fs.lock files necessary for restore or 'm
oving' a Zope
> > install? I have already just moved the Data.fs file over to a virgin Zope i
nstall and it
> > seems to be working OK.
> 
> Data.fs.in is an index that helps zope get started faster.  If you start

Data.fs.in is the starting default Data.fs. Data.fs.index is the index.

Pedantically,
Anthony

___
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] MS SQL server and Zope

2000-06-01 Thread Anthony Baxter

>>> paul beard wrote
> anyone have any insight on accessing a SQL server store thru Zope? I have
> an app that's backed by SQL server and rather than buy r/w licenses for
> it, I'd be happy to use Zope to access it readonly. 

You can use the Sybase libs to access it. See 
http://www.zope.org/Members/anthony/dcSybase-on-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] [announce] SQL Session 0.2.9 available.

2000-06-01 Thread Anthony Baxter

A long-overdue update to SQL Session is out.

This version (0.2.9) will be the last version in the 0.2.x series
(assuming no brown paper bag bugs in this release). I will be now working 
on 0.3.x, which will hook into the transaction machinery so that it only
makes a single set of updates in a transaction.  This should lower
the database hits significantly.

Installation: If you have a previous version of SQLSession, you might
need to go to the management panel of your Session object after installing
the new version and hit 'Change'. 
Note that the default schema has changed to avoid bad words like 'name',
'session', 'sessions' and 'value', since some databases have issues with
these.


Changelog from 0.2.3:

Code now uses it's own decodestring/encodestring, because the
standard python lib supplies an incredibly stupid implementation.
(take a string, wrap it in a StringIO, then pass it to encode
which then pulls out the string again.) Rough testing shows that 
a small string encode or decode drops from 1ms or so to about 
1/20th of that. Given how often this is done, it makes a big
big difference.

Jeff Hoffman supplied a patch that makes SQLSession work with 
2.2 - adding __allow_access_to_unprotected_subobjects__ = 1 to
the SESSION object. Ooo, magic.

Changed the default schema and queries to avoid using the words 
'session', 'value' or 'name'. Different databases have different
ideas of which are and are not reserved words.

Added a new option 'path', to specify the cookie path. This means 
that you can specify, say, /foo, and only the browser will only
send the cookie when requesting URLs beginning with /foo.

Re-did some of the internals to avoid what may or may not have been 
a refcount cycle. I'm still not sure what caused it - assigning the
SESSION object to REQUEST.SESSION, with SESSION keeping a reference 
to the parent Session object. It now finds Session by acquisition.

A number of dumb bugs were squished.

Anthony
--
Anthony Baxter <[EMAIL PROTECTED]>
It's never too late to have a happy childhood.

___
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] [announce] MountedFileStorage product - mount multiple ZODBs.

2000-06-01 Thread Anthony Baxter


I've bolted together a simple Product which allows you to mount
sub-ZODB's through the zope management interface.

http://www.zope.org/Members/anthony/software/MountedFileStorage/

(it's now up to version 0.01 :)

It _requires_ an up-to-date CVS version of Zope. It won't work on
2.2a1. I'd expect it will work on 2.2, whenever that happens.

Most of the credit for this goes to the guys at DC who did all the
work - but any bugs are probably in my bit, not the bits they did. 

Anthony


readme follows:


Created by anthony. Last modified on 2000/06/01. 

Ok, so the DC guys have been talking about allowing multiple ZODB
support, but I couldn't see a way to use it. A bit of trawling through
the CVS and I found the guts of a MountedItem object which has now been
removed. Using that as inspiration and a source of pointers, I've bolted
together a really simple Product for mounting multiple ZODB files onto
a Zope installation.

You should also check out the MountedDatabases section of the ZODB Wiki.

First of all, you need to be running a really really recent CVS version
of Zope. 2.2alpha1 isn't good enough. Then install this product (it
unpacks in lib/python/Products/MountedFileStorage).

Sample usage:

cd $zope/var ; cp Data.fs.in nifty.fs

Select Mounted FileStorage from the product add list.

For file put nifty.fs. Leave path blank, and put whee as the id. You've
now got a copy of the default Zope install mounted.

In the same session, add a new Mounted FileStorage, for the Path
put in QuickStart/Outline. Leave id blank. You've now mounted the
QuickStart/Outline folder from the mounted FS as Outline in the current
folder.

WARNING: This is really really untested stuff. It Works For Me. Not
To Be Taken Internally.  Do Not Come Crying To Me If It Breaks Your
Zope Install.

If you want to play with this stuff, you really should back up your
Data.fs first.

Security Issues: There probably are some. I've no idea what they might
be. The product makes a really simple-minded effort to not allow badness
through (any filename with a / or \ in it). Don't give access to the
permission Mount FileStorages to anyone that you don't trust, though. Note
that this includes anyone with Manager role on the system. Note also,
though that you can only mount existing files that are in var/.

___
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] security issues

2000-06-01 Thread Anthony Baxter

>>> Ragnar Beer wrote
> Howdy everyone!
> 
> I will soon have a Zope-site ready to go online. How can I make shure 
> that I did everything (concerning Zope) to stop intruders? Where can 
> I find information about protecting a Zope-site? Has anyone had 
> security problems so far?

Easiest (most brutal?) fix I've found - hide Zope behind an Apache,
and prohibit access to any URLs of the form .*/manage.*

If you don't need to use basic auth to the Zope, then use a rewrite
rule to strip out any Authentication headers in the requests.

Anthony

___
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] something missing in my Oracle setup?

2000-05-30 Thread Anthony Baxter

>>> Justin Sheehy wrote
> Hello,
> 
> I am trying to build the DCOracle module and having trouble right off
> the bat.  I have tried both 1.3.0 and 1.3.1 b1 with the same results.
> 
> The file src/oci_8.c does an #include "oci.h", but I don't seem to
> have a file named oci.h in my oracle install:

It normally lives in rdbms/demo/oci.h

Under some Oracle installation modes, rdbms/ is only accessible to 
user 'oracle'. I'm not sure what options you'll need to specify to
get that particular directory installed. (if someone was to destroy 
the oracle installer and replace it with something that worked, I 
think a lot of people would be very very happy.)

On a related note - make sure you link with libclntsh, not libnjni8 -
at least one version of a Setup file for DCOracle specified njni8.
As far as we can tell, libnjni8 is not properly threadsafe on solaris/
sparc. 

Anthony

___
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] Use of lambda expression in DTML

2000-05-30 Thread Anthony Baxter


>>> Chris McDonough wrote
> Nope.  Lamba, filter, reduce, and map should IMHO not be part of DTML. 
> Actually, exprs probably shouldn't be in there in the first place. 
> People are trying to use DTML as a way to process non-UI elements.  This
> is a slippery slope, and leads to something like PHP or ASP.  My opinion
> is this:  Generate and format your HTML with DTML, and do everything
> else in Python.  This gives you the added benefit that you can change
> the return values of functions by changing the Python code without
> having to muck with DTML, which is painful any way you look at it.

Until PythonMethods are back in the distribution, you can't stop people
from using DTML for this stuff - the only alternative is to give everyone
who ever needs to do something more than simple HTML access to the file
system. I can't see that happening on zope.org, or many other sites.

I agree whole-heartedly that DTML's expr syntax is nightmarish and needs
to be deprecated - but right now there's nothing to replace it with.

As far as the issue at hand - whether lambda/map/reduce/filter should be
allowed - the simplest way to enable them for PythonMethods also enables
them for dtml-expr. 

Anthony
-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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-Annce] ANN: Perl For Zope - why I'm bummed

2000-05-25 Thread Anthony Baxter

>>> Ken Manheimer wrote
> (Do you think the perl folks are, conversely, going to feel they have
> to know python?  I have to say, i esteem python enough to think that
> the ultimate result will be increasing prevalence and preference for
> python.)

I think it's fair to say that I'm not one of perl's biggest fans. 

Initially when I read about this, I was a bit concerned - it did seem
like it was leading down a bad scary path. After thinking about it 
some more, I'm still a bit concerned, but I also think that this will
be a nice bit of bait to use when hooking in new developers. If 
it including building Products in Perl, I'd be a bit more concerned,
since one of the Really Nice things about Zope is the available Products,
and just how easy they are to read and work with. Perl Products would be...
um... unpleasant. But I've seen no indication that this is happening.

Anthony

___
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] SQLSession vs FSSession for ultra-high scalability and speed.

2000-05-23 Thread Anthony Baxter


>>> Pavlos Christoforou wrote
> OTO an RDBMS maybe a more reliable datastore than the filesystem with
> better consistency, recovery tools etc etc.

The other bigwin for an RDBMS-based one is, of course, that you
can share it between zopes. And for me, it's easier to manage a
DBMS table than a chunk of filesystem somewhere on a machine. 

> Also check whether SQLSession caches info. It used to hit the RDBMs for
> every variable access which was very prohibitive for us, but Anthony
> mentioned that he was changing that.

As of 0.2.x it sometimes does, depending on whether you've turned on 
caching - but 0.3.0 will fix it entirely, I plan to remove the non-cached
option, and do it a whole lot smarter. 

0.2.9 will be out shortly (tonight, if I can stop this sodding PC from
crashing every 10 minutes) and will be the last of the current architecture.
0.3.0 is moving to a more sane system - one that will stop my DBA from
hurting me. :)

Anthony, who's really not a fan of PC hardware.

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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] SQLSession users - who's using what DB?

2000-05-22 Thread Anthony Baxter


A short survey for SQLSession users out there:

  What database are you using for SQLSession?

  If you're using Gadfly, are you using the base64oneline encoding,
  or have you patched your gadfly install?

I plan to stop supporting anything but the base64 encoding method 
in the next release (0.2.9). 

Also - how many people would be upset if the default table schema
was changed? The default schema uses names that conflict with some
databases' keywords.

Anthony

___
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] a somewhat notable date (for me)

2000-05-19 Thread Anthony Baxter


just thought people might be interested - this week, 
www.ekno.lonelyplanet.com had it's first birthday, and in the same 
week, it was migrated to our new Zope2 based platform (dingdong the
zope1 is dead). FWIW, the following sites are all running off the same
Zope installation:

www.ekno.lonelyplanet.com
www.ekit.com
www.hiayh.ekit.com

and a bunch of others that I can't remember.

Zope rocks. But you knew that already.

Anthony

___
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] gotcha for zope on solaris2.7 - make sure you use pthreads.

2000-05-19 Thread Anthony Baxter


Let's see:

network lookups would fail, sometimes, strangely,

signals would be delivered to _all_ children (not just the one
that had installed a signal handler) -- so if you had an external
method that popen'd another program, when the SIGCHLD came in, it
would kill the mainloop. 

The signals were the really shocking problem.

Anthony.
>>> Tony McDonald wrote
> At 5:48 pm +1000 19/5/00, Anthony Baxter wrote:
> >If you're running a Zope on Solaris2.7 and you're seeing strange
> >behaviour, make sure that your python executable's been built and
> >linked with pthreads, not solaris threads. I've just had a horrible
> >time figuring out why I was seeing very strange behaviour on Solaris
> >until I noticed this.
> >
> >ldd `which python` should show /usr/lib/libpthread.so, NOT
> >/usr/lib/libthread.so.
> 
> Can you tell us what kind of behaviour Anthony?
> 
> I'm using 2.6 on our main box (and 2.7 on another dev. box).
> 
> cheers,
> tone
> --
> Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
> http://nle.ncl.ac.uk/
> The Medical School, Newcastle University Tel: +44 191 222 5888
> Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2
> 
> ___
> 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 )
> 

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


___
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] gotcha for zope on solaris2.7 - make sure you use pthreads.

2000-05-19 Thread Anthony Baxter

If you're running a Zope on Solaris2.7 and you're seeing strange
behaviour, make sure that your python executable's been built and
linked with pthreads, not solaris threads. I've just had a horrible
time figuring out why I was seeing very strange behaviour on Solaris
until I noticed this. 

ldd `which python` should show /usr/lib/libpthread.so, NOT 
/usr/lib/libthread.so.

Anthony, bitter and twisted at Sun.

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