RE: [Zope] The id "s5/begin" contains characters illegal in URLs

2006-08-09 Thread Gabriel Genellina

At Thursday 10/8/2006 03:19, Sinang, Danny wrote:


I was able to rename my processes (S5, S100, S200) to their lowercase
counterparts since all I had to do was do :

When I try to rename the activities found in those processes, I try to
do likewise, but the ZopeFind results come out like this :

('S100/Begin', )
('S100/RECEIPT_OF_SOURCE_DOCUMENTS', )
('S100/CHECK_MS_BATCHING', )

To call manage_renameObject (), I have to supply it with the object
name.


You must call manage_renameObject on the object *container*, passing 
the old name and the new name. Something like this:


  object = result[1]
  container = object.aq_parent
  container.manage_renameObject(object.id, object.id.lower())



Gabriel Genellina
Softlab SRL 






__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] The id "s5/begin" contains characters illegal in URLs

2006-08-09 Thread Andreas Jung



--On 10. August 2006 14:19:40 +0800 "Sinang, Danny" <[EMAIL PROTECTED]> 
wrote:





Huh? Usually you have  no chance to create a Zope object with such an

id.

So there is no need to rename something that can't exist be definition

:-)

Exactly.

The said object, "s5/Begin", is the "Begin" activity of the "s5" process
found in the "GeneralWorkflow" workflow - which is an OpenFlow (
www.openflow.it ) object.



You can't have some an object. If you have one, kick the related product 
since it appears that is bypasses the related checks. And of course for 
such objects the standard APIs might not work because they don't expect 
that an object have '/' inside their IDs and likely treat them as a path 
and not as an object ID. So your issue is basically unsupported. You might 
kick the authors of the related product or patch the related methods in 
OFS/*.py


-aj

pgpW0PHrwUCNB.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] The id "s5/begin" contains characters illegal in URLs

2006-08-09 Thread Sinang, Danny
 
> Huh? Usually you have  no chance to create a Zope object with such an
id.
> So there is no need to rename something that can't exist be definition
:-)

Exactly. 

The said object, "s5/Begin", is the "Begin" activity of the "s5" process
found in the "GeneralWorkflow" workflow - which is an OpenFlow (
www.openflow.it ) object.

I was able to rename my processes (S5, S100, S200) to their lowercase
counterparts since all I had to do was do :

///

wf = container.GeneralWorkflow
catalog = wf.Catalog

processes = catalog.ZopeFind(wf, obj_metatypes=['Process'],
search_sub=1)

for p in processes:
wf.manage_renameObject(p[0], p[0].lower())  

///


When I try to rename the activities found in those processes, I try to
do likewise, but the ZopeFind results come out like this :

('S100/Begin', )
('S100/RECEIPT_OF_SOURCE_DOCUMENTS', )
('S100/CHECK_MS_BATCHING', )

To call manage_renameObject (), I have to supply it with the object
name.

If I use result[0], I get the illegal characters in URL error. 

And if I use result[1].id, I get :

Error Type: AttributeError
Error Value: Begin

This is probably because there is no "Begin" object under the "wf"
container from which I'm calling manage_renameObject().

So my question is, how do I refer to the "Begin" object found in the
S100 workflow ?

Regards,
Danny

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


RE: [Zope] The id "s5/begin" contains characters illegal in URLs

2006-08-09 Thread Andreas Jung



--On 10. August 2006 13:59:55 +0800 "Sinang, Danny" <[EMAIL PROTECTED]> 
wrote:



Because '/' is a reserved character since it is used in URLs as path

separator.

Any workarounds ?

Is there a way to refer to the said objects without using the '/' ?



Huh? Usually you have  no chance to create a Zope object with such an id.
So there is no need to rename something that can't exist be definition :-)

-aj

pgpWqLOAse55E.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] The id "s5/begin" contains characters illegal in URLs

2006-08-09 Thread Sinang, Danny
> Because '/' is a reserved character since it is used in URLs as path
separator.

Any workarounds ? 

Is there a way to refer to the said objects without using the '/' ?
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] The id "s5/begin" contains characters illegal in URLs

2006-08-09 Thread Andreas Jung



--On 10. August 2006 13:47:32 +0800 "Sinang, Danny" <[EMAIL PROTECTED]> 
wrote:



Hello,

I'm trying to rename an object called "s5/Begin" to its lower case
counterpart "s5/begin" by using the manage_renameObject () method, but
I'm getting the message

The id "s5/begin" contains characters illegal in URLs .



Because '/' is a reserved character since it is used in URLs as path 
separator.


-aj 

pgpqEk5ieyOMu.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] The id "s5/begin" contains characters illegal in URLs

2006-08-09 Thread Sinang, Danny



Hello,
 
I'm trying to rename 
an object called "s5/Begin" to its lower case counterpart "s5/begin" by using 
the manage_renameObject () method, but I'm getting the message 

 
The id "s5/begin" contains characters illegal in URLs 
.
 
Any idea what I 
did wrong here ?
 
My Python script is 
as follows :
 
==
 
wf = 
container.GeneralWorkflowcatalog = wf.Catalog
activities = 
catalog.ZopeFind (wf, obj_metatypes=['Activity'], search_sub=1) 

 
for a in 
activities:
    
print a[0]
    
wf.manage_renameObject (a[0], a[0].lower())
 
==
 
Regards,
Danny
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 2.9 Product Refreshing

2006-08-09 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dieter Maurer wrote:
>> ...
>> You have that point-of-failure anyway if you are using the RAM-based
>> sessions provided by Zope's core sessioning.  If availability is
>> important to you, then you *need* to be using ZEO and a load balancer,
>> at which point you also have to look at a more scalable / available
>> sessioning solution.
> 
> We are using ZEO, a load balancer and nevertheless have sessions in RAM.
> 
> True, it is less safe than with persistent sessions -- but it
> is also more efficient.
> 
> We do this by ensuring that independent of the load balancer's choice
> a request for a given session goes to that Zope instance that has this
> session.

Then you have the problem the orignal poster was trying to avoid:  you
can't restart an appserver without losing session data for some users.

Externalizing the session storage removes the appserver as a
point-of-failure for user sessions.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE2iTZ+gerLs4ltQ4RAn3HAKDNYodL3ENdV/jrQZhmEEtMkIQnbwCfbT+5
xH3krOiXo7KRd5G+DiEp92I=
=WLfz
-END PGP SIGNATURE-

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


Re: [Zope] LocalFS/Zope CGI Question

2006-08-09 Thread Dieter Maurer
beno wrote at 2006-8-9 13:42 -0400:
> ...
>My plan is to avoid installing extra and otherwise unnecessary s/w. I 
>don't need Apache for anything else. If Zope is out, is it possible to 
>do this with Squid, do you know?

I do not know -- but I doubt it: Squid specialiazed on caching and almost
surely did not aim for Web server functionality.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] uploading text file by FTP: encoding problem?

2006-08-09 Thread egf05
Selon Dieter Maurer <[EMAIL PROTECTED]>:

> Eric Fernandez wrote at 2006-8-9 11:20 +0100:
> >I have a problem when I upload an ASCII text file into a zope2 folder. I 
> >have a plain-text file with double quotes and line breaks. However, once 
> >uploaded, double quotes become " and line breaks become \n. Even if 
> >I change the property into text/plain or text/xml, I get the same problem.
> 
> The default object type generated for "text/html", "text/xml" or
> "text/plain" is a "DTMLDocument" (and not a "File" object as you might
> except).
> 
> The "__str__" method of "DTMLDocument" performs HTML escaping.
> That's why '"' may appear as """.
> 
> 
> You can install your own "PUT_factory" (search the mailing list archives
> for details) to control the type of object created during various
> types of uploads.
> 
> 
> 
> -- 
> Dieter
> 


Thanks a lot for the answer, that's exactly what I need. I found the topic in
the Zope book, development version.

Cheers,
Eric
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] LocalFS/Zope CGI Question

2006-08-09 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 9 Aug 2006, at 13:42, beno wrote:

It is Apache (or another Web Server) that might be ready to
call scripts via CGI. Zope won't

My plan is to avoid installing extra and otherwise unnecessary s/w.  
I don't need Apache for anything else. If Zope is out, is it  
possible to do this with Squid, do you know?


Squid does not execute CGI scripts, it is a *cache* server, not a web  
server.


jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFE2iF5RAx5nvEhZLIRAhouAKCufKEj4vwtmLeTTRTJd6wYUfMXvACfQbsp
9rfw4y8NgssA9HDCuPEHfvo=
=GIco
-END PGP SIGNATURE-
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] mysql socket problem, MOSX 10.4.7

2006-08-09 Thread Dieter Maurer
baiewola wrote at 2006-8-9 05:16 -0700:
> ...
>We can connect with PHP apps, Filemaker Pro, and MySQL client. However,
>all Z MySQL database connections are broken. Here is the error:
>OperationalError: (2002, "Can't connect to local MySQL server through
>socket '/tmp/mysql.sock' (2)")
>
>After googling and reading this article
>http://www.devshed.com/c/a/MySQL/Troubleshooting-Problems-with-MySQL-Programs/1/
>I think the problem is that the socket file is supposed to be at
>/tmp/mysql.sock but it's not there. How does it get there?

Usually, the server creates it on startup (when it is ready to
accept connections there).



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope 2.9 Product Refreshing

2006-08-09 Thread Dieter Maurer
> ...
>You have that point-of-failure anyway if you are using the RAM-based
>sessions provided by Zope's core sessioning.  If availability is
>important to you, then you *need* to be using ZEO and a load balancer,
>at which point you also have to look at a more scalable / available
>sessioning solution.

We are using ZEO, a load balancer and nevertheless have sessions in RAM.

True, it is less safe than with persistent sessions -- but it
is also more efficient.

We do this by ensuring that independent of the load balancer's choice
a request for a given session goes to that Zope instance that has this
session.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] LocalFS/Zope CGI Question

2006-08-09 Thread beno

Dieter Maurer wrote:

beno wrote at 2006-8-9 08:41 -0400:
  
I've added a LocalFS folder for my cgi-bin dir and also Zope CGI, but 
I'm not clear how to integrate these two so that I can access my Mailman 
and Vqadmin cgi scripts, which are on the legacy system.



I do not understand what you plan.

But I can tell you that Zope will do nothing (and need not do anything)
with Mailman or Vqadmin cgi scripts.

It is Apache (or another Web Server) that might be ready to
call scripts via CGI. Zope won't
  
My plan is to avoid installing extra and otherwise unnecessary s/w. I 
don't need Apache for anything else. If Zope is out, is it possible to 
do this with Squid, do you know?

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Problem With External Method (was: Second Request:: Where Is This Module???)

2006-08-09 Thread Dieter Maurer
beno wrote at 2006-8-9 11:46 -0400:
>Patrick Decat wrote:
>>> Traceback (innermost last):
>>>  Module ZPublisher.Publish, line 101, in publish
>>>  Module ZPublisher.mapply, line 88, in mapply
>>>  Module ZPublisher.Publish, line 39, in call_object
>>>  Module App.Management, line 85, in manage_workspace
>>> Redirect: http://202.71.106.119:7080/error_log/manage_main
>The problem, apparently, raises it's head in the 3rd line of the 
>traceback. The code there reads:

If you do not read answers to your questions, I will stop to send
you answers...


Last trial: A "Redirect" exception is nothing you need to analyse
but *NORMAL* behaviour. You did not make anything wrong. All it well --
apart from your "error_log" configuration (which should ignore
"Redirect").


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] LocalFS/Zope CGI Question

2006-08-09 Thread Dieter Maurer
beno wrote at 2006-8-9 08:41 -0400:
>I've added a LocalFS folder for my cgi-bin dir and also Zope CGI, but 
>I'm not clear how to integrate these two so that I can access my Mailman 
>and Vqadmin cgi scripts, which are on the legacy system.

I do not understand what you plan.

But I can tell you that Zope will do nothing (and need not do anything)
with Mailman or Vqadmin cgi scripts.

It is Apache (or another Web Server) that might be ready to
call scripts via CGI. Zope won't



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] uploading text file by FTP: encoding problem?

2006-08-09 Thread Dieter Maurer
Eric Fernandez wrote at 2006-8-9 11:20 +0100:
>I have a problem when I upload an ASCII text file into a zope2 folder. I 
>have a plain-text file with double quotes and line breaks. However, once 
>uploaded, double quotes become " and line breaks become \n. Even if 
>I change the property into text/plain or text/xml, I get the same problem.

The default object type generated for "text/html", "text/xml" or
"text/plain" is a "DTMLDocument" (and not a "File" object as you might
except).

The "__str__" method of "DTMLDocument" performs HTML escaping.
That's why '"' may appear as """.


You can install your own "PUT_factory" (search the mailing list archives
for details) to control the type of object created during various
types of uploads.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: mysql socket problem, MOSX 10.4.7

2006-08-09 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

baiewola wrote:
> Yesterday I finally updated my MOSX Server 10.4.6 to 10.4.7. In
> addition to usual list of 
> hosed configuration files and scripts, we now have a problem with Zope
> 2.7.x connecting to MySQL through a unix socket.
> 
> We can connect with PHP apps, Filemaker Pro, and MySQL client. However,
> all Z MySQL database connections are broken. Here is the error:
> OperationalError: (2002, "Can't connect to local MySQL server through
> socket '/tmp/mysql.sock' (2)")
> 
> After googling and reading this article
> http://www.devshed.com/c/a/MySQL/Troubleshooting-Problems-with-MySQL-Programs/1/
> I think the problem is that the socket file is supposed to be at
> /tmp/mysql.sock but it's not there. How does it get there? Can I copy
> it one from another (working) server and put it in that folder? It
> isn't present on my backup drive (which was supposed to be a complete
> bootable backup of the drive before the upgrade), so I don't know how
> we ever used the unix socket file - but we did!

You need to configure the MySQL server to listen on that socket:  that
will cause the "file" to be created, and Zope will then be able to
connect.  Note that this requires tha MySQL run on the same host as Zope.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE2gk1+gerLs4ltQ4RAjTQAJ4j7O4kCKRpctlk8hywNTxJP96XbACgkhZI
clb/IMxuLUdGwQhAV38R+Uk=
=C5xn
-END PGP SIGNATURE-

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


Re: [Zope] LocalFS/Zope CGI Question

2006-08-09 Thread Andreas Jung



--On 9. August 2006 08:41:57 -0400 beno <[EMAIL PROTECTED]> wrote:


Hi;
I've added a LocalFS folder for my cgi-bin dir and also Zope CGI,


ZopeCGI is deprecated since ages and obsolete. The recommended way is to 
use

Apache  + RewriteRules.

-aj

pgp75f04G4mJ4.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Problem With External Method (was: Second Request:: Where Is This Module???)

2006-08-09 Thread beno

Patrick Decat wrote:

Traceback (innermost last):
 Module ZPublisher.Publish, line 101, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 39, in call_object
 Module App.Management, line 85, in manage_workspace
Redirect: http://202.71.106.119:7080/error_log/manage_main
The problem, apparently, raises it's head in the 3rd line of the 
traceback. The code there reads:


def call_object(object, args, request):
   result=apply(object,args) # Type s to step into published object.
   return result

So, I'm not sending the correct arguments to Zope. This is my first 
External Script in years (and I'd only written a couple before). So, 
please help me with this. The script is below in its (short) entirety. 
It works just fine from the command prompt. The idea is explained in the 
comments. Please help me understand how to pass it arguments.

TIA,
beno




"""
This function is to be used as a wrapper before passing to 
VirtualHostMonster so that I can convert URLs such as this:

http://footprints.2012.vi/War_Parties.Christianity.Americas.North_America.United_States.War.War_Crimes.index.pt?foo=bar
into
http://footprints.2012.vi/War_Parties/Christianity/Americas/North_America/United_States/War/War_Crimes.index.pt?foo=bar
I choose to use the former for purposes of getting my pages ranked by 
Google (since they dislike deep directory structures), but prefer the d

eep dir structure for my use in my Zope instance.
"""

import re
from urlparse import urlparse

def URL_Rewrite(old_url):
item6 = ''
item4 = ''
testPound = re.compile('[a-z_A-Z0-9:\/\.]*[#][a-zA-Z0-9:\/\.]*')
testQuestion = re.compile('[a-z_A-Z0-9:\/\.]*[\?][a-zA-Z0-9:\/\.]*')
testEnding = re.compile('[a-zA-Z_0-9:\/\.#\?]*[p][t]')
if re.match(testPound,old_url):
 item6 = '#'
elif re.match(testQuestion,old_url):
 item6 = '?'
if re.match(testEnding,old_url):
 item4 = '.pt'
parts = urlparse(old_url)
item0 = parts[0]
# The next rule is required because urlparse() deletes the '://'
item0 = item0 + '://'
item1 = parts[1]
item2 = '/x/c/s/j/en-us'
subPartsOf2 = re.split('.pt',parts[2])
item3 = re.sub('\.','/',subPartsOf2[0])
# The other sub-part is an empty string
# The next rule is required because for some reason a ';' gets added by 
urlparse()

item3 = re.sub(';','',item3)
item5 = parts[3]
item7 = parts[4]
item8 = parts[5]
new_url = item0 + item1 + item2 + item3 + item4 + item5 + item6 + item7 
+ item8

return new_url


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Second Request:: Where Is This Module???

2006-08-09 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 9 Aug 2006, at 08:44, beno wrote:


Hi;
I've got an error in my error log, but I can't figure out where  
"App.Management" lives:


You already got several answers, not only about how to find  
App.Management, but also about the fact that this is not a problem  
you should fix there.


jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFE2eJZRAx5nvEhZLIRAtCEAJ9Z3KdRIlyb6ECUZrofouyGefHybwCgmOwa
NcvHUBY/o4NzJ7nL/fqyALs=
=JQSS
-END PGP SIGNATURE-
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Second Request:: Where Is This Module???

2006-08-09 Thread Patrick Decat

Check in zope\lib\python\App, it is there : Management.py

On 8/9/06, beno <[EMAIL PROTECTED]> wrote:

Hi;
I've got an error in my error log, but I can't figure out where
"App.Management" lives:

Traceback (innermost last):
 Module ZPublisher.Publish, line 101, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 39, in call_object
 Module App.Management, line 85, in manage_workspace
Redirect: http://202.71.106.119:7080/error_log/manage_main

Please advise.
TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Second Request:: Where Is This Module???

2006-08-09 Thread beno

Hi;
I've got an error in my error log, but I can't figure out where 
"App.Management" lives:


Traceback (innermost last):
Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module App.Management, line 85, in manage_workspace
Redirect: http://202.71.106.119:7080/error_log/manage_main

Please advise.
TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] LocalFS/Zope CGI Question

2006-08-09 Thread beno

Hi;
I've added a LocalFS folder for my cgi-bin dir and also Zope CGI, but 
I'm not clear how to integrate these two so that I can access my Mailman 
and Vqadmin cgi scripts, which are on the legacy system. Can someone 
give me an example of mapping in ZopeCGI? I think that may resolve the 
problem. Right now, I'm entering "sh" in the "Extension" box and 
"cgi-bin/vqadmin/vqadmin.cgi" in the "Handler" box. I can surf to that 
because it's correctly mapped via the LocalFS folder (called "cgi-bin") 
but the code doesn't render. Please help

beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] mysql socket problem, MOSX 10.4.7

2006-08-09 Thread baiewola
Yesterday I finally updated my MOSX Server 10.4.6 to 10.4.7. In
addition to usual list of 
hosed configuration files and scripts, we now have a problem with Zope
2.7.x connecting to MySQL through a unix socket.

We can connect with PHP apps, Filemaker Pro, and MySQL client. However,
all Z MySQL database connections are broken. Here is the error:
OperationalError: (2002, "Can't connect to local MySQL server through
socket '/tmp/mysql.sock' (2)")

After googling and reading this article
http://www.devshed.com/c/a/MySQL/Troubleshooting-Problems-with-MySQL-Programs/1/
I think the problem is that the socket file is supposed to be at
/tmp/mysql.sock but it's not there. How does it get there? Can I copy
it one from another (working) server and put it in that folder? It
isn't present on my backup drive (which was supposed to be a complete
bootable backup of the drive before the upgrade), so I don't know how
we ever used the unix socket file - but we did!

Thanks in advance!

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] uploading text file by FTP: encoding problem?

2006-08-09 Thread Eric Fernandez

Hi,

I have a problem when I upload an ASCII text file into a zope2 folder. I 
have a plain-text file with double quotes and line breaks. However, once 
uploaded, double quotes become " and line breaks become \n. Even if 
I change the property into text/plain or text/xml, I get the same problem.
Only if I create a file using the manager, then copy my text into it, 
that I keep the original formatting.


Do I do something wrong? How to preserve the original encoding?

Thanks.
Eric
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )