[Zope-dev] namespace problem??

2000-07-22 Thread Marcus Mendes

Hello,

How can I get the contents of variable out of my  dtml-in /dtml-in
code?

For example:
dtml-in "_['sequence-item'].objectValues(['TSubRegiao'])"
dtml-call "REQUEST.set('HORA', horacondicaoatual)"
/dtml-in

I need get the variable HORA and I couldn't.

Thanks

Marcus Mendes


___
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] Security Strangeness

2000-07-22 Thread Johan Carlsson


Hi all,
I notised some strange behavior in the way Zope User Folders works.

First, you can't delegate the permissionto add and delete user except 
by assigning the user the role "manager".
IMHO this is to limiting.

Second, if you give a user the permission to Change Persmissions, that
user can change permissions that she doesn't have the right to manage
in the first place. In that way she can upgrade here permissions. 
That's no good.

Best Regards,
Johan Carlsson

___
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] PATCH: Expanded access file

2000-07-22 Thread Phillip J. Eby

At 01:27 PM 7/19/00 -0500, Phillip J. Eby wrote:

Hm.  I don't think this could be classed as a "minor" change, however,
since it has impact on ownership, for example.  What's the path of the user
folder which is above "/", for example?  The whole thing is useless if
these extra users can't be owners, and the ownership machinery right now
wants an access path.  I think perhaps we should go the fishbowl route on
this, if only to make sure that Jim doesn't have a heart attack when he
gets back.  :)

Looks like I was wrong.  This was in fact quite a minor patch.  I've only
tested this lightly so far, but if anyone else wants to try it out, here it
is.  Note that the new "access" file format looks like this:

# Lines beginning with '#' are comments
#
# First user in file is "super" user, unless roles
# are specified, in which case there is NO superuser
#
superusername:{SHA}fsjdflfs:domain1.com
#
# Format for all other users is name:pw:domains:roles
#
somemanager:{SHA}rr70flksf::Manager Editor SomeotherRole
somedeveloper:{CRYPT}flsdajfd:domain2.com:Manager

You can access a dictionary of all the "access" file users by importing
rootUsers from AccessControl.SpecialUsers.  It is a dictionary mapping user
names to user objects.  Be sure to use __of__ to wrap them to your
UserFolder if you are adding support for this to a UserFolder variant.  I
have not yet added support for this to LoginManager, but as you'll see from
the changes to the basic UserFolder, it is probably not going to be at all
difficult to do so.

Patch follows; watch out for line wrapping...

Index: User.py
===
RCS file: /cvs-repository/Zope2/lib/python/AccessControl/User.py,v
retrieving revision 1.112
diff -u -r1.112 User.py
--- User.py 2000/07/11 18:42:48 1.112
+++ User.py 2000/07/23 01:38:51
@@ -314,13 +314,30 @@
 'No access file found at %s - see INSTALL.txt' % INSTANCE_HOME

 )
 try:
-data=split(strip(f.readline()),':')
-f.close()
-_remote_user_mode=not data[1]
-try:ds=split(data[2], ' ')
-except: ds=[]
-super=Super(data[0],data[1],('manage',), ds)
-del data
+d=f.readlines(); f.close(); del f
+rootUsers = SpecialUsers.rootUsers = {}
+
+for data in map(strip,d):
+   if not data or data[0]=='#': continue
+data=split(data+':::',':') # allow for missing fields
+
+n = data[0]
+ds = split(strip(data[2])) # space-delimited domains
+pw = data[1]
+r  = split(strip(data[3])) # space-delimited roles
+
+if rootUsers or r:
+   # If not first user in file, or if roles are specified,
+# user is a "normal" user object
+rootUsers[n] =
SimpleUser(n,data[1],tuple(split(data[3])),data[2])
+else:
+super = rootUsers[n] = Super(n,pw,('manage',), ds)
+_remote_user_mode=not pw
+
+del data,n,ds,pw,r
+
+del d
+
 except:
 raise 'InstallError', 'Invalid format for access file - see INSTALL.txt'
 
@@ -383,6 +400,11 @@
 """
 try: return self.getUser(id)
 except:
+
+   # Don't return the superuser, so that super can't own things
+   if rootUsers.has_key(id) and id!=super.getUserName():
+   return rootUsers[id].__of__(self)
+
if default is _marker: raise
return default
 
@@ -405,7 +427,6 @@
 
 
 _remote_user_mode=_remote_user_mode
-_super=super
 _nobody=nobody
 
 def validate(self,request,auth='',roles=None):
@@ -440,11 +461,11 @@
 return None
 name,password=tuple(split(decodestring(split(auth)[-1]), ':', 1))
 
-# Check for superuser
-super=self._super
-if self._isTop() and (name==super.getUserName()) and \
-super.authenticate(password, request):
-return super
+# Check for superuser/root users
+if self._isTop() and rootUsers.has_key(name):
+user = rootUsers[name].__of__(self)
+if user.authenticate(password, request):
+return user
 
 # Try to get user
 user=self.getUser(name)
@@ -508,10 +529,9 @@
 return ob
 return None
 
-# Check for superuser
-super=self._super
-if self._isTop() and (name==super.getUserName()):
-return super
+# Check for superuser/root users
+if self._isTop() and rootUsers.has_key(name):
+return rootUsers[name].__of__(self)
 
 # Try to get user
 user=self.getUser(name)
@@ -560,7 +580,7 @@
title  ='Illegal value', 
message='Password and confirmation must be specified',
action ='manage_main')
-if self.getUser(name) or (name==self._super.getUserName()):
+if self.getUser(name) or (rootUsers.has_key(name)):
 return 

Re: [Zope] Problems with Coding differences to do same stuff...boundary=------------EAFFAD5A57052936695E91D7

2000-07-22 Thread Felipe E Barousse Boue

Hi, thanks for your comment !!

I know about not beeing allowed to access attributes that start with "_".

Actually what is intended here is for _[titulo] to be evaluated to the name
of a folder, the one that has just been created by the manage_addDTMLDocument
call (which worked fine)with the name specified by the user in a form field.

dtml-call "company.noticias.manage_addDTMLDocument(titulo,subtitulo,texto)"

 dtml-with "company.noticias._[titulo]"
   dtml-call "propertysheets.manage_addProperty('link',resumen,'text')" 
 /dtml-with


The variable "titulo" comes from a form that calls itself so,  I expected
company.noticias._[titulo] to be evaluated say as "company.noticias.january"
assuming the user entered "january" on the form.

Nevertheless, on my alternative coding, _[titulo] evaluated correctly, it's a
pity such a large coding had to be made, even introducing an "un-necesary"
loop-search and an "if" test, to accomplish what seemed trivial the way I
exposed in the first place...unless I am missing something.

dtml-call "company.noticias.manage_addDTMLDocument(titulo,subtitulo,texto)"

dtml-with "company.noticias"
dtml-in objectValues
   dtml-in propertyValues
 dtml-if "id() == _[titulo]"
  dtml-with id
dtml-call "propertysheets.manage_addProperty('link',resumen,'text')"

/dtml-with
  /dtml-if



Any comments.?  Thanks and regards.

Felipe Barousse

Dieter Maurer wrote:

   Trying to do a simple thing as creating a document and then adding a
   property with an DTML method, found that the following code does not
   work, it comes up with a password request (all security settings are at
   defaults):
  
dtml-call
   "company.noticias.manage_addDTMLDocument(titulo,subtitulo,texto)"
dtml-with "company.noticias._[titulo]"
   dtml-call
   "propertysheets.manage_addProperty('link',resumen,'text')" 
/dtml-with

 Try
 dtml-with "_.getattr(company.noticias,_[titulo])"

 In DTML, you are not allowed to access any attribute
 starting with "_".
 And in fact, "_" is not even an attribute of "company.noticias".

 Dieter


begin:vcard 
n:Barousse Boué;Felipe E.
tel;fax:+(52)5247-0272
tel;work:+(52)5247-0272
x-mozilla-html:FALSE
url:http://www.piensa.com/
org:Bufete Consultor de Mexico - Piensa Systems;Supercomputer Cluster Systems group
version:2.1
email;internet:[EMAIL PROTECTED]
title:CEO, Director General
note:Tel: +(52)5247-0272
adr;quoted-printable:;;Ap. CAP Polanco 336=0D=0ACol. Anzures;Mexico City;D.F.;11550;Mexico
x-mozilla-cpt:;-27680
fn:Felipe E. Barousse Boué
end:vcard



Re: [Zope] Re: Zope pcgi

2000-07-22 Thread Bill Anderson

Bill Anderson wrote:
 
 Michael Arndt wrote:
 
  Hi Bill
 
  this seems to address our Problem:
  Response:
   Some platforms may require setting:
 
   PCGI_CLOSE_FDS=0
 
   in the pcgi resource file, since configure cannot
   reliably discover this at compile time.
 
  (Patches Bugreprorts ...)
 
 WORKS!!


Oops. Spoke too soon. :(


--
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] worldpilot and communigate pro

2000-07-22 Thread Graham Chiu


I came across communigate pro which is a multiplatform IMAP server (
www.stalker.com ).  I've set it up under Win32, and tried to connect to
it using a new installation of worldpilot.   The IMAP port is at 143.
However, it doesn't recognise my IMAP userid and password.

Does anyone know if this combination ( NT, Communigate, worldpilot)
works?

The worldpilot mailing archives do not seem to be accessible.

-- 
Regards,  Graham Chiu
gchiuatcompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and 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 )




[Zope] Updating a Product...

2000-07-22 Thread Andre van der Vlies


Hi,
I am editting a product (changing html tags in caps, altering
'!--#var...'
syntax in 'dtml-var...' etc. etc.). I do this for better understanding.

To activated an adapted product, I delete the product and restart
Zope...
There must be another (better) way. How??

--
   Andre van der Vlies [EMAIL PROTECTED]
   System Administrator
   Hogeschool van Amsterdam
   Stadhouderskade 55, Amsterdam
   tel : (+31) 20 5702 670  fax : (+31) 20 5702 510
   xoip: (+31) 20 8771 304
   http://www.ict.hva.nl/~andre
Key fingerprint =  99 DC D6 01 96 C2 48 80  DC 9C D5 D2 34 F6 A6 5D
--
Contrary to popular opinion, Unix is user friendly.
It just happens to be very selective about who it makes friends with.
--

___
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] worldpilot and communigate pro

2000-07-22 Thread Graham Chiu

In article [EMAIL PROTECTED], Graham Chiu
[EMAIL PROTECTED] writes

I came across communigate pro which is a multiplatform IMAP server (
www.stalker.com ).  I've set it up under Win32, and tried to connect to
it using a new installation of worldpilot.   The IMAP port is at 143.
However, it doesn't recognise my IMAP userid and password.

Does anyone know if this combination ( NT, Communigate, worldpilot)
works?

Oh dear, answering my own question.  I specified my IMAP server as
192.168.1.253:143 whereas it works fine just as 192.168.1.253

But, when I log off, I get the following traceback:

AttributeError

Sorry, a Zope error occurred.

Traceback (innermost last):
  File D:\zope5\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File D:\zope5\lib\python\ZPublisher\Publish.py, line 187, in publish
  File D:\zope5\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: RoleManager)
  File D:\zope5\lib\python\ZPublisher\Publish.py, line 171, in publish
  File D:\zope5\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: logoff)
  File D:\zope5\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: logoff)
  File d:\zope5\lib\python\Products\WorldPilot\WorldPilot.py, line 2446,
in logoff
(Object: RoleManager)
  File d:\zope5\lib\python\Products\WorldPilot\WorldPilot.py, line 2399,
in displayIfLoggedOn
(Object: RoleManager)
  File d:\zope5\lib\python\Products\WorldPilot\WorldPilot.py, line 372,
in callResource
  File d:\zope5\lib\python\Products\WorldPilot\Resource.py, line 137, in
callResource
  File D:\zope5\lib\python\DocumentTemplate\DT_String.py, line 502, in
__call__
(Object: string)
  File D:\zope5\lib\python\DocumentTemplate\DT_Util.py, line 337, in
eval
(Object: logoffLogin(REQUEST))
(Info: REQUEST)
  File string, line 0, in ?
  File d:\zope5\lib\python\Products\WorldPilot\WorldPilot.py, line 2313,
in logoffLogin
(Object: RoleManager)
  File d:\zope5\lib\python\Products\WorldPilot\WorldPilot.py, line 2364,
in getLogon
(Object: RoleManager)
  File d:\zope5\lib\python\Products\WorldPilot\WorldPilot.py, line 2277,
in logon
(Object: RoleManager)
AttributeError: 'string' object has no attribute 'has_key'


-- 
Regards,  Graham Chiu
gchiuatcompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and 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 )




[Zope] namespace problem??

2000-07-22 Thread Marcus Mendes

Hello,

How can I get the contents of variable out of my  dtml-in /dtml-in
code?

For example:
dtml-in "_['sequence-item'].objectValues(['TSubRegiao'])"
dtml-call "REQUEST.set('HORA', horacondicaoatual)"
/dtml-in

I need get the variable HORA and I couldn't.

Thanks

Marcus Mendes


___
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] namespace ??

2000-07-22 Thread Marcus Mendes

Hello,

How can I get the contents of variable out of my  dtml-in /dtml-in
code?

For example:
dtml-in "_['sequence-item'].objectValues(['TSubRegiao'])"
dtml-call "REQUEST.set('HORA', horacondicaoatual)"
/dtml-in

I need get the variable HORA and I couldn't.

Thanks

Marcus Mendes


___
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 require an @ symbol in email form field??

2000-07-22 Thread ed colmar


Couldn't you do something similar to Squishdot's "validArticle" dtml
method?  In addition to verification that the fields are filled in, you
could pass the email variable off to a python regular expression that
checks for [EMAIL PROTECTED] syntax.

-ed-


At 07:21 PM 7/21/00 -0400, you wrote:
On Tue, 18 Jul 2000, Duncan Booth wrote:
 Use javascript to check that all required fields are present before 
 the form is actually submitted. Here is some of the code I use:

Note, however, that using Javascript to do the checking client side
is only useful as a user convenience.  


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

2000-07-22 Thread Ronald F. Tagra

Hi,

I am still new w/ Zope and trying to read and execute the tutorials and
documents. Here's my first ever question.

I have tried the dtmlObject.document_src() to view the source code of the
script but it has error that says something like  there are 3 arguments
required..but in the document is just document_src(self).

Thanks.


Best regards,
Ronald





___
Say Bye to Slow Internet!
http://www.home.com/xinbox/signup.html


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




Re: [Zope] Anyone built a classifieds or review product?

2000-07-22 Thread Bill Anderson

Gijs Reulen wrote:
 
 Hello Bill
 
 Did you completely lose the code for a ZClassifieds-alike product ?! I would
 be interested in joining the effort.


Yes, unfortunately, at this point, it doesn't look recoverable. I will
take up the cause sometime this ext week though. As soon as I have the
latest Zope site I am working on out the door. :-)

--
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] Meta Type Registry

2000-07-22 Thread Bill Anderson

Andrew Kenneth Milton wrote:
 
 Is there a Product Builders meta-type registry somewhere?
 
 I can see things getting messed up in the near future as the number of
 products proliferates and meta-types start to clash.
 
 I've already seen weird interactions with products
 PSQL Input Wizard and ZNolk when both are installed I only got
 PSQL Input Wizard despite picking ZNolk from the drop down...
 
 At least if developers can register their meta-types then common
 meta-types won't clash for different products (I can see stuff like
 'news item' and 'link' clashing all the time).
 
 Perhaps limit registration to developers who have published their product,
 I know this probably places an additional burden on the already heavily
 under seige developers, but I think some controls are going to be needed.


IMO, this should be done in each individual Zope server. IE, Zope
shouldn't let you have two meta_types called 'News Item'. In combination
with this, Products should list their meta types.

--
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] re: Meta Type Registry

2000-07-22 Thread Steve Alexander

Andrew Kenneth Milton wrote:
 
 Is there a Product Builders meta-type registry somewhere?
 
 I can see things getting messed up in the near future as the number of
 products proliferates and meta-types start to clash.

I just tried adding a new ZClass in a new Product in my Zope 2.2 final
installation.

The multiple-selection widgit for choosing the base-classes has all the
available meta-types prefixed with the name of their product, followed
by a colon.

For example, here's the list I get:

  AccessControl: User
  AccessControl: UserFolder
  OFS: DTMLDocument
  OFS: DTMLMethod
  OFS: Folder
  OFS: File
  OFS: Image
  ZCatalog: CatalogAware
  ZCatalog: ZCatalog
  ZPatterns: DataSkin
  ZPatterns: PlugInBase
  ZPatterns: PlugInContainer
  ZPatterns: Rack
  ZPatterns: Specialist
  ZClasses: ObjectManager

So, it looks to me like the problem of meta-types clashing is taken care
of, at least in principle.
I note that the management screens' "add" drop-down list doesn't have
the "product:" namespace qualification, and I guess that's where the
problems lie. I doubt this would be much of a problem to patch, and it
probably counts as a bug, if anyone is passing the Collector in the near
future.

Now, we might want to consider a product naming registry to address the
problem of product names that clash...

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

___
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: Meta Type Registry

2000-07-22 Thread Steve Alexander

Steve Alexander wrote:
 
 Andrew Kenneth Milton wrote:
 
  Is there a Product Builders meta-type registry somewhere?
 
  I can see things getting messed up in the near future as the number of
  products proliferates and meta-types start to clash.
 
 I note that the management screens' "add" drop-down list doesn't have
 the "product:" namespace qualification, and I guess that's where the
 problems lie. I doubt this would be much of a problem to patch, and it
 probably counts as a bug, if anyone is passing the Collector in the near
 future.

Patch against 2.2 final. It isn't perfect, but it is minimal and
functional :-)

This changes the "add" drop-down on the management screen to give you
the product name (usually) followed by a colon, followed by the
meta-type.


*** lib/python/OFS/main.dtmlSat Jul 22 23:50:17 2000
--- lib/python/OFS/new_main.dtmlSat Jul 22 23:50:13 2000
***
*** 96,102 
/'+this.options[this.selectedIndex].value"
  OPTION value="manage_workspace" DISABLEDAvailable Objects
dtml-in filtered_meta_types mapping sort=name
! OPTION value="dtml-var action fmt="url-quote""dtml-var name
/dtml-in
/SELECT
INPUT TYPE="SUBMIT" VALUE=" Add "
--- 96,103 
/'+this.options[this.selectedIndex].value"
  OPTION value="manage_workspace" DISABLEDAvailable Objects
dtml-in filtered_meta_types mapping sort=name
! OPTION value="dtml-var action fmt="url-quote""
!dtml-var product missing:dtml-var name
/dtml-in
/SELECT
INPUT TYPE="SUBMIT" VALUE=" Add "

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

___
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] manage_pasteObjects() permissions?

2000-07-22 Thread Jason Byron

I figured out what was wrong.  I wasn't giving all of
the required parameters to manage_copyObjects() and
manage_pasteObjects().

Evidently for both to work they need the REQUEST
parameters set.  Here's the calls I got to work:

COPY:
dtml-call
"manage_copyObjects(REQUEST['ids'],REQUEST)"

-- ids are a checkbox selection from the form (ie:
input type="checkbox" name="ids:list"
value="dtml-id;"
)

PASTE:
dtml-call "manage_pasteObjects(_.None, REQUEST)"



__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

___
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: Meta Type Registry

2000-07-22 Thread Andrew Kenneth Milton

+[ Steve Alexander ]-
| Andrew Kenneth Milton wrote:
|  
|  Is there a Product Builders meta-type registry somewhere?
|  
|  I can see things getting messed up in the near future as the number of
|  products proliferates and meta-types start to clash.
| 
| I just tried adding a new ZClass in a new Product in my Zope 2.2 final
| installation.
| 
| The multiple-selection widgit for choosing the base-classes has all the
| available meta-types prefixed with the name of their product, followed
| by a colon.

I'm not sure that Zope will actually let you successfully register two
classes or baseclasses with the same meta-type... That's the real problem,
and while a cursory examination of the Zope site will reveal product
names to avoid clashing with, it's a lot harder short of installing every
single product to find out what meta-types those products register.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[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 )




Re: [Zope] Zope + Apache on FreeBSD 4.0 problems

2000-07-22 Thread Peter Haight

I'm having trouble getting pcgi working for Zope 2.16 on Apache 1.3.12
on FreeBSD 4.0. I had hope the BSd ports would set it up but it seems
that there is a problem of some sort with my install.

Zope.cgi produces output but kind of maimed.

I did get Zope.cgi working with IIS and NT (ugh) at work.

Any tricks or anything would be appreciated.

I did run into a problem myself it might be the same as yours. I kept getting: 

Temporarily Unavailable 

   The resource you requested is temporarily unavailable - please try
   again later. 

   (116) unable to connect, fd=4 

The pcgi log would say:
Sun Jul 16 20:04:25 2000
  pcgi-wrapper: Error receiving stdout  (116) unable to connect, fd=4

After much debugging I found that if you looked at the
PCGIPublisher::handler method in pcgi/pcgi_publisher.py, it would do a
conn.send(stdout) and if you looked at the return value you would find that
it only would send 8192 bytes no matter how long the stdout string was.

This is due to some sysctl settings: net.local.stream.recvspace and
net.local.stream.sendspace. They are set to 8192.

I adjusted mine to 65536 using the following two commands:
sysctl -w net.local.stream.recvspace=65536
sysctl -w net.local.stream.sendspace=65536

Now it seems to be working well.

I'm not sure whose bug this is. I think it is probably a problem with
FreeBSD. I'll upgrade to 4.0-STABLE soon and see if is still a problem.

If this is not the problem you are having, you really need to elaborate more
on what you mean by 'maimed' output.



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