Re: [Zope] NEWBIE HELP can not get Zope to start

2000-09-07 Thread Martijn Pieters

On Thu, Sep 07, 2000 at 10:12:16PM -0400, Douglas Eadline wrote:
> 6. OK, I'll add a user. I go to acl_users and add a user.
>   
> 7. I quit netscape, and restart and attempt to login as
>the new user - DOES NOT WORK
> 
> 8> I check /var/zope/access - no new user added

Only the superuser (more accuratly the bootstrap user now) is defined in
the access file. All other users are defined in User objects in the Object
Database. You will notice that the file var/Data.fs will have grown.

> 9. I quit netscape and re-login as superuser.
>I look at the user I added, now the password field
>has more stars in it than the password I assigned.
>The confirm field has 1 star less than the password field.

For security reasons, the page with the password and confirm fields is not
rendered with the original password; you can view the source to see this,
the password would have to be sent verbatim in order to do that. In stead,
the magic values 'password' and' 'confirm' are used, to indicate that you
didn't want to change the user password, only the other fields.

One possible explanation for the denial of your login is that you filled
something in the domains field, which should only be used if you want to
limit the domains a user can login from, and made a mistake there. The
format is a _space seperated_ list of domains, each of which can use the
'*' wildcard for any part between the dots and can be an ip or a name:

  10.0.0.* localhost *.mydomain.com

If you did fill in that field, clear it, and try again. Also note that
both user id and password are case sensitive. Try a simple username and
password first, like 'test' and 'test'.

Let us know if you succeed!

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

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

2000-09-07 Thread Roch'e Compaan

I've upgraded our Zope Server to 2.2.1 and upgraded squishdot to 7.1.
Whenever I post an article on my squishdot sites I get an attribute error:
_catalog.  It seems like squishdot has trouble putting the article in the
catalog.  I did modify all references to thread[0] to getThread(0):

Traceback (innermost last):
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope/2-2-0/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: addPosting)
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: addPosting)
  File /usr/local/zope/2-2-0/lib/python/Products/Squishdot/Squishdot.py,
line 979, in addPosting
(Object: Traversable)
  File /usr/local/zope/2-2-0/lib/python/Products/Squishdot/Squishdot.py,
line 702, in setItem
(Object: Traversable)
  File /usr/local/zope/2-2-0/lib/python/Products/ZCatalog/ZCatalog.py, line
377, in catalog_object
(Object: Traversable)
AttributeError: (see above)



___
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] [PATCH] doesn't? Please fix... ;-)

2000-09-07 Thread Kip Rugger

Andrew Kenneth Milton  <[EMAIL PROTECTED]> wrote:
>+---[ Kip Rugger ]--
>|
>| [snip]
>| 
>| 
>| crap
>| more crap
>| 
>| Lots of crap
>| 
>| 
>| 
>| by analogy with the common practice of #if 0 in C
>
>Won't work, the container will still be parsed for correctness at 'save' time.
>The problem isn't getting nested comments per se, we already have that. 
>The problem is to completely ignore the contents of the comment tag whilst
>still allowing nested comments.
>
>Th second part of the problem is that ChrisW(hinger) really wants it, but,
>doesn't want to do what is necessary to do it. So the problem is simplified
>to not actually doing anything except talking about doing it. d8)
>
>Thankyou for playing d8)


Since I put my stupid foot into it, I just had to write the patch.
For penitence and to learn about DocumentTemplate.

This should let you nest  arb stuff 
without any syntactical value being ascribed to the contents.

I am too new to Zope to know if this is even desirable :-) so I
just offer it as more of an amusement than anything else.

Patch against 2.2.1 source.

--- DT_String.py.orig   Thu Aug 17 08:46:48 2000
+++ DT_String.pyThu Sep  7 22:27:42 2000
@@ -237,7 +237,11 @@
 if s: result.append(s)
 start=l+len(tag)
 
-if hasattr(command,'blockContinuations'):
+if command == Comment:
+start = self.parse_comment(text, start, result, tagre, tag, l,
+   command, args)
+
+elif hasattr(command,'blockContinuations'):
 start=self.parse_block(text, start, result, tagre,
tag, l, args, command)
 else:
@@ -280,7 +284,11 @@
 try: tag, args, command, coname= self._parseTag(tagre,scommand,sa)
 except ParseError, m: self.parse_error(m[0],m[1], text, l)
 
-if command:
+if command == Comment:
+start=l+len(tag)
+start = self.parse_comment(text, start, result, tagre, tag, l,
+   command, args)
+elif command:
 start=l+len(tag)
 if hasattr(command, 'blockContinuations'):
 # New open tag.  Need to find closing tag.
@@ -325,6 +333,35 @@
 start=self.parse_close(text, start, tagre, tag, l,
command,args)
 elif not coname: return start
+
+def parse_comment(self, text, start, result, tagre,
+stag, sloc, sargs, scommand):
+nest = 1
+while 1:
+
+l=tagre.search(text,start)
+if l < 0: self.parse_error('No closing tag', stag, text, sloc)
+
+tag, name = tagre.group(0, 'name')
+start = l + len(tag)
+if name == 'comment':
+try:
+end = tagre.group('end')
+except:
+try:
+end = tagre.group('fmt')
+if end != ']': end = ''
+except:
+self.parse_error('Delimiter problems',
+ stag, text, sloc)
+if end == '':
+nest = nest + 1
+else:
+nest = nest - 1
+
+if nest == 0:
+start=self.skip_eol(text, start)
+return start
 
 shared_globals__roles__=()
 shared_globals={}

___
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] ZClass for PDFs

2000-09-07 Thread Loren Stafford

From: "Timothy Wilson" <[EMAIL PROTECTED]>


> On Thu, 7 Sep 2000, Tim Cook wrote:
>
> > Timothy Wilson wrote:
> > >
> > > I'd like to make a large number of PDF files available for download
from my
> > > site. HTML versions of the files will also be available for online
viewing.
> > >
> > > I could certainly include the PDF files as regular file objects or I
could
> > > create a ZClass specifically for PDF files.
> > >
> > > I suspect that this question may be of general interest, so I'm asking
for
> > > comments about the pros and cons of either approach.
> > >
> >
> > Does this not do what you want?
> >
> > http://www.zope.org/Members/gaaros/ZpdfDocument
>
> Thanks for the pointer.
>
> It doesn't appear that the ZpdfDocuments is what I'm looking for.
> ZpdfDocument seems to render PDF on the fly from structured text or HTML.
I
> was interested in simply storing an existing PDF file in the ZODB and
making
> it available for download.
>
> Is there a reason to make a PDF ZClass? Would it make things easier?
>
> -Tim
>
>
There's an example of a PDF ZClass at
http://www.zope.org/Members/lstaffor/zProperties. If all you do in the class
is add simple properties as in this example, the arguments are in favor of
making a ZClass boil down to:

1. You can enforce the presence of certain properties.
2. In your navigation methods, you can use the metatype to distinguish PDF
files from other files and thereby treat them differently.
3. You can help content managers handle PDF files in a consistent manner.

...worthwhile, but not all that compelling arguments.

On the other hand, once you have a separate class, it's easier to add
functionality; for example,

1. Automatically catalog the content of the PDF by running it thru some
converter (like XPDF),
2. Extract the document properties from the PDF identification block.
3. Provide an alternative byte-serving access to large PDFs.

-- HTH
-- Loren


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




[Zope] Help: PATH_INFO==>object

2000-09-07 Thread Li Dongfeng

I am writing a service for other pages to
use as form action. How can I reference
the caller object in DTML/python?

I can only think of this: First use PARENTS[-1]
to get to the root object of the site.
Then split the PATH_INFO containing the caller's
path, and go down from the root to every subfolder
in PATH_INFO and then get to the caller object.
But this is not very elegant.

Can anyone give better solution to this?


___
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] ZClass for PDFs

2000-09-07 Thread Tim Cook

Timothy Wilson wrote:

> It doesn't appear that the ZpdfDocuments is what I'm looking for.
> ZpdfDocument seems to render PDF on the fly from structured text or HTML. I
> was interested in simply storing an existing PDF file in the ZODB and making
> it available for download.
> 
> Is there a reason to make a PDF ZClass? Would it make things easier?
> 

I can't think of one. But if you need it then someone else
probably does too. 

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] ZClass for PDFs

2000-09-07 Thread Timothy Wilson

On Thu, 7 Sep 2000, Tim Cook wrote:

> Timothy Wilson wrote:
> > 
> > I'd like to make a large number of PDF files available for download from my
> > site. HTML versions of the files will also be available for online viewing.
> > 
> > I could certainly include the PDF files as regular file objects or I could
> > create a ZClass specifically for PDF files.
> > 
> > I suspect that this question may be of general interest, so I'm asking for
> > comments about the pros and cons of either approach.
> > 
> 
> Does this not do what you want?
> 
> http://www.zope.org/Members/gaaros/ZpdfDocument

Thanks for the pointer.

It doesn't appear that the ZpdfDocuments is what I'm looking for.
ZpdfDocument seems to render PDF on the fly from structured text or HTML. I
was interested in simply storing an existing PDF file in the ZODB and making
it available for download.

Is there a reason to make a PDF ZClass? Would it make things easier?

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] || http://linux.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 )




[Zope] NEWBIE HELP can not get Zope to start

2000-09-07 Thread Douglas Eadline


I have tried this 10 times with several versions of Zope and
I get the same result - Zope will not let me add a user or log in.

Here are my steps:

1. download and install latest RPMS:
 Zope-2.2.1-1.i386.rpm 
 Zope-zserver-2.2.1-1.i386.rpm

2. Start zope:

/etc/rc.d/init.d/zope start

3. login as superuser

superuser
123

4. See first Zope Screen

5. Attempt to run the tutorial as described in the Content Managers Guide

   Zope will not let superuser do this

6. OK, I'll add a user. I go to acl_users and add a user.
  
7. I quit netscape, and restart and attempt to login as
   the new user - DOES NOT WORK

8> I check /var/zope/access - no new user added

9. I quit netscape and re-login as superuser.
   I look at the user I added, now the password field
   has more stars in it than the password I assigned.
   The confirm field has 1 star less than the password field.

I do not get it. Is there something to read that explains 
how to start Zope and try the tutorial?

Or is this some secret only Zope hackers know?

Doug
---
Paralogic, Inc.   | PEAK |  Voice:+610.814.2800
130 Webster Street|   PARALLEL   |Fax:+610.814.5844
Bethlehem, PA 18015 USA   |  PERFORMANCE |http://www.plogic.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 )




[Zope] SiteRoot (SiteAccess) problem

2000-09-07 Thread Joshua Brauer

I'm running a new server with 2.2.1 and Siteaccess 2.0.0 b3 and I don't get a 
"SiteRoot" item in the available items list. I can copy site roots and move them, but 
I cannot create new site roots... After reinstalling SiteAccess (& restarting) I still 
have problems. Any ideas?




General Info:

*   Zope version: Zope 2.2.1 (binary release, python 1.5.2, linux2-x86) 
*   Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 
19990314/Linux (egcs- 
*   System Platform: linux-i386 

Installed Products:
AspSucks (Installed product AspSucks) 
BTreeFolder (Installed product BTreeFolder (BTreeFolder-0.1.1)) 
Calendar (Installed product Calendar (calendar-0-9-0)) 
Confera (Broken product Confera) 
DemoPortal (Through-the-web Sample Portal) 
ExternalMethod (Installed product ExternalMethod (External 
Method-1-0-0)) 
Fortune (Installed product Fortune) 
Glossary (Glossary ZClass) 
Hotfix_06_16_2000 (Installed product Hotfix_06_16_2000) 
Hotfix_2000-08-17 (Installed product Hotfix_2000-08-17) 
IMAPAdapter (Broken product IMAPAdapter) 
KMnetNews (KM|net News) 
KnowledgeKit 
LoginManager (Installed product LoginManager (LoginManager-0-3-0)) 
MIMETools (Installed product MIMETools) 
MailHost (Installed product MailHost (MailHost-1-2-0)) 
NewsSyndicate (Installed product NewsSyndicate (NewsCenter 0.0.5)) 
NotMail (Broken product NotMail) 
OFSP (Installed product OFSP (OFSP-1-0-0)) 
PTKBase (Installed product PTKBase) 
PTKDemo (Installed product PTKDemo) 
Photo (Installed product Photo (Photo-0-4-0)) 
Planner (Planner) 
Poll (Installed product Poll (Poll-0-6-0)) 
PythonMethod (Installed product PythonMethod (PythonMethod-0-1-7)) 
Redirector (Installed product Redirector) 
SiteAccess (Installed product SiteAccess (SiteAccess-2-0-0b3)) 
Squishdot (Installed product Squishdot (Squishdot-0-7-1)) 
TinyCal (Installed product TinyCal (calendar-0-9-0)) 
TinyTable (Installed product TinyTable (TinyTable-0-8-2)) 
WebPages (WebPages Class) 
Wizard 
WorldPilot (Installed product WorldPilot (WorldPilot 1.00.3)) 
XMLDocument (Installed product XMLDocument (XML Document 1.0a6)) 
ZCallable (Installed product ZCallable) 
ZCatalog (Installed product ZCatalog (ZCatalog-2-2-0)) 
ZFDocument (Installed product ZFDocument) 
ZGadflyDA (Installed product ZGadflyDA) 
ZPhotoAlbum (Z Photo Album) 
ZPyGreSQLDA (Installed product ZPyGreSQLDA (ZPyGreSQLDA-0-0-3)) 
ZRTChat (HTML Chat for Zope) 
ZSQLMethods (Installed product ZSQLMethods) 
ZopeTutorial (Installed product ZopeTutorial (Zope Tutorial 1.0)) 
beehiveCal (Installed product beehiveCal (Version 0.2.0)) 
seminarCalendar (Seminar Calendar) 

-- 
-
Joshua Brauer
Computer Support Scientist
Department of Biochemistry and Molecular Biology
Colorado State University
Fort Collins, CO 80523
(970) 491-1080/pager:  (970) 498-7995, #5837
-

___
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] Using Chinese Characters

2000-09-07 Thread David Trudgett

At 2000-09-07 21:18 +0200, Tino Wildenhain <[EMAIL PROTECTED]> wrote:

>Hi Kelvin,
>
>Kelvin Cheong wrote:
> >
> > i was wondering how i can use chinese characters with Zpe on Linux. does
> > anyone know how? According to my "mild" research so far, i found out that
> > Big5is a 2-byte code and is a part of ISO-10646/Unicode. It also seems to
> > be the de-facto for traditional chinese characters. There're also Unicode
> > CJK and GB. But GB is for China, which uses simplified chinese characters.
> > And CJK includes both Big5 and GB.
>
>classic zope is built on python 1.52 and does not naturally support
>unicode.
>But there is a light on the horizont:
>
>http://www.zope.org/Members/htrd/wstring
>
>I have a vision of everything working together for localizing and
>internationalisation ;-)

It's good to finally see some Unicode support coming through. I'm a bit 
surprised that Guido didn't mandate Unicode support from the beginning, 
given that Python is a relative newcomer to the programming scene. I 
imagine Python 2 will have full Unicode support, right? Or is it already in 
Python 1.6?

Bad news is that Unicode is not good enough. It allows for about 64k 
characters, yet Chinese alone (Han ideographs) has over 75,000 (maybe a lot 
more, but that includes old, rare and uncommon characters). When will we 
see support for UCS (Universal Character System, ISO 10646) which uses (up 
to) 32 bit (31 bit?) characters. As far as I know, at present the only UCS 
characters currently defined are those defined by Unicode (about 40,000 of 
them), but we should be supporting it now in readiness for the future.

Food for thought.

Zai jian!  (Too bad email is plain ASCII or I could use the proper characters!)


David Trudgett




___
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] OSError along with FSSession...

2000-09-07 Thread Dieter Maurer

Chien-Pin Wang writes:
 >  Zope complains an error type "OSError" and throws the error value
 > saying [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/'
 > occasionally since a recent upgrade of FSSession product to 0.4.2.
 > Following that error will be a series of TransactionErrors for each and
 > every request Zope received. And only a zope restart could help zope
 > resume its operations. Since this error only comes up occasionally, I'm
 > completely clueless on solving it. 
 > 
 >   File /usr/local/zope/lib/python/Products/FSSession/FSSession.py, line
 > 208, in
 > final_commit
 > (Object: FSSession)
 > OSError: [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/'

Maybe, a bug in "FSSession.final_commit".

Look at line 208 of "FSSession.py".
I expect some lines before, a filename is constructed
for the above directory and session specific data.
For some reason, the session specific data leads to
an empty filename. Therefore, the operation in
line 208 (probably an "os.rename" or other "os" operation)
gets the directory rather than a file path.

You have two options:

 * analyse, why the session data leads to an empty filename
   (this may be difficult)

 * add a
try: ...
except: pass

   around line 208 and wait for the FSSession author
   to analyse and fix the problem.


Dieter


___
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] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread R. David Murray

On Thu, 7 Sep 2000, Tim Hicks wrote:
> So each time there is a change made to the text, I must call
> reindex_object, is that correct?  If so, how do I make it so that each
> time I hit the 'Change' button at the bottom of the text box,
>  is executed?

If you take a close look at the how-to, it also tells you you have
to write your own management 'editForm' method and assign it to the
view tab.  In the action method for that form, you do the
reindex_object.

--RDM


___
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] ZClass for PDFs

2000-09-07 Thread Tim Cook

Timothy Wilson wrote:
> 
> Hi everyone,
> 
> I'd like to make a large number of PDF files available for download from my
> site. HTML versions of the files will also be available for online viewing.
> 
> I could certainly include the PDF files as regular file objects or I could
> create a ZClass specifically for PDF files.
> 
> I suspect that this question may be of general interest, so I'm asking for
> comments about the pros and cons of either approach.
> 

Does this not do what you want?

http://www.zope.org/Members/gaaros/ZpdfDocument

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread Tim Hicks


- Original Message -
From: "R. David Murray" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, September 07, 2000 10:12 PM
Subject: Re: [Zope] Zclass not reindexing (it is CatalogAware)


> On Thu, 7 Sep 2000, Tim Hicks wrote:
> > The question is, do I need to add the equivalent of what is
written in
> > 'How-To: Creating a CatalogAware ZClass' for reindexing zclass
> > properties, but for reindexing the actual text?  How could I do
this?
>
> When is the text created?  After it is, you have to call
reindex_object.
>

So each time there is a change made to the text, I must call
reindex_object, is that correct?  If so, how do I make it so that each
time I hit the 'Change' button at the bottom of the text box,
 is executed?

cheers

tim
> --RDM
>


___
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.1 Solaris 8 dumps core

2000-09-07 Thread Fredrik Aronsson

Hello!

I've had a similar problem, with Zope coredumping, but since I recompiled 
python using the same compiler that I compiled Zope with, Zope works 
correct.

/Fredrik Aronsson

(I've included the smallest script I could find that dumped core. If it
dumps core for you too, perhaps you have the same problem.)

#!/usr/local/bin/python -u
import sys
sys.path.append('/www/zope/lib/python')

print "Content-type: text/plain"
print
print "Everything OK!"

import ExtensionClass

print "Still ok!"





> 
> Hi
> 
> I've downloaded the src of Zope 2.2.1 on my UltraSparc running Solaris
> 8, built it ok, but when I try run ./start it it dumps core with a
> segmentation fault.
> Is this problem known? Anything I can do?
> I am completely new to both Python and Zope ...
> 
> 
> Thanks
>   Michele
> 


___
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] ZClass for PDFs

2000-09-07 Thread Timothy Wilson

Hi everyone,

I'd like to make a large number of PDF files available for download from my
site. HTML versions of the files will also be available for online viewing.

I could certainly include the PDF files as regular file objects or I could
create a ZClass specifically for PDF files.

I suspect that this question may be of general interest, so I'm asking for
comments about the pros and cons of either approach.

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] || http://linux.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 )




[Zope] Re: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header)

2000-09-07 Thread Tim Hicks


- Original Message -
From: "Dieter Maurer" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Sent: Thursday, September 07, 2000 7:00 PM
Subject: Re: ZClass Bug (was: Re: [Zope] How to access id and title of
document calling standard_html_header)


> Hi Tim
>
>  > NameError: theatre_class
>  >
>  > It would seem that  is still raising its head.  Any
ideas?
> I do not think so.
> You get a name error: Zope does not know your "theatre_class" at
> this point.
>
> It seems more likely, that DC changed to way ZClasses are located
> inside the constructor.
>
> Take the generated ZClass constructor and simply add
> the "...REQUEST.set..." before the "createInObjectManager".
>

OK, I'm so sorry about this, you've been an absolute legend so far,
and I really don't want to push my luck, but each time you solve
something, I find something else that has broken.

This is what my theatre_class_add method looks like (well, an excerpt
anyway).




 
 \n\n', '')">




When I try to create a new instance of the zclass in the original
'site' folder (or any of its parent folders except for the root), I
get this error. I do not receive an error and everything works fine
when I create the instance in a new folder on a different 'branch' to
the original.


Traceback (innermost last):
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 222,
in publish_module
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 187,
in publish
(Object: testing)
  File C:\PROGRA~1\Zope221\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: RoleManager)
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 171,
in publish
(Object: testing)
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\mapply.py, line 160,
in mapply
(Object: theatre_class_add)
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 112,
in call_object
(Object: theatre_class_add)
  File C:\PROGRA~1\Zope221\lib\python\OFS\DTMLMethod.py, line 172, in
__call__
(Object: theatre_class_add)
  File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_String.py,
line 528, in __call__
(Object: theatre_class_add)
  File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_With.py,
line 133, in render
(Object: theatre_class.createInObjectManager(REQUEST['id'],
REQUEST))
  File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_Util.py,
line 337, in eval
(Object: theatre_class.createInObjectManager(REQUEST['id'],
REQUEST))
(Info: REQUEST)
  File , line 0, in ?
NameError: theatre_class



When I try to copy and paste a zclass from this original 'site' folder
(or any of its parent folders except for the root), I get this error.
I do not receive an error and everything works fine when I copy and
paste an instance in a new folder on a different 'branch' to the
original.

"One or more items referred to in the clipboard data was not found.
The item may have been moved or deleted after you copied it."


When I try to rename a class that is in the original 'site' folder (or
any of its parent folders except for the root), I get this error. I do
not receive an error and everything works fine when I rename an
instance in a new folder on a different 'branch' to the original.


Traceback (innermost last):
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 222,
in publish_module
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 187,
in publish
  File C:\PROGRA~1\Zope221\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 171,
in publish
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\mapply.py, line 160,
in mapply
(Object: manage_renameObjects)
  File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 112,
in call_object
(Object: manage_renameObjects)
  File C:\PROGRA~1\Zope221\lib\python\OFS\CopySupport.py, line 273, in
manage_renameObjects
(Object: Traversable)
  File C:\PROGRA~1\Zope221\lib\python\OFS\CopySupport.py, line 285, in
manage_renameObject
(Object: Traversable)
  File C:\PROGRA~1\Zope221\lib\python\OFS\ObjectManager.py, line 236,
in _getOb
(Object: Traversable)
AttributeError: (see above)


Like I say, you've been fantastic in helping me.  Thanks to you, I now
have a solution whereby I know I can redo all of the class instances I
have created, and be sure that the error won't reappear.  However, I'm
sure from what you have said so far, there is a way around this that
doesn't involve me 'writing off' all the instances that I have already
created.  My problem is, I'm a little out of my depth here!  I don't
understand the different behaviour between different folders.

If you haven't already got tired of this, thanks very much.

tim



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encod

RE: [Zope] Python, persistent objects and caching

2000-09-07 Thread Dieter Maurer

Brian Lloyd writes:
 > Soren Rough writes
 > > ... application level cache ...
 > > ... application objects flushed (including cache)

 > One approach would be to cache your data in the module's 
 > namespace. For ex:
 > 
 > mycache={}
 > 
 > class MyClassThatKeepsGoingAway:
 >   ...
 >   def get_data(self, id):
 > if mycache.has_key(id):
 >   return mycache[id]
 > else:
 >   ...
 > 
 > Note that my example is a little contrived, since using a module 
 > variable means that you will have to implement this in a way that 
 > is safe for a multi-threaded environment.
You can use a "SharedResource" for this:

URL:http://www.dieter.handshake.de/pyprojects/zope/SharedResource.html


Dieter

___
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] Need help with ZJetDA, Winnt4 and Zope 2.2.1

2000-09-07 Thread Farrell, Troy

As you have no doubt heard my cries for help, I figure that very few are
running NT4.  I am having a permissions difficultie with ZJetDA trying to
modify data in an Access97 database.  On my server, the DA is able to SELECT
* FROM tablename with no problem, but when it comes to INSERT INTO tablename
VALUES (...) or UPDATE, I get a Query Error with a value of INVALID
OPERATION.  I mirror (It is identical, i checked 5+ times) all the objects
on my NT4 laptop and it works ok.  The databases are Identical, I copied the
working one to the non-working server and still no go.  The traceback is as
follows:

Traceback (innermost last):
  File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File C:\PROGRA~1\JESTER\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File C:\PROGRA~1\JESTER\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: browsestates)
  File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: browsestates)
  File C:\PROGRA~1\JESTER\lib\python\OFS\DTMLDocument.py, line 177, in
__call__
(Object: browsestates)
  File C:\PROGRA~1\JESTER\lib\python\DocumentTemplate\DT_String.py, line
528, in __call__
(Object: browsestates)
  File C:\PROGRA~1\JESTER\lib\python\Shared\DC\ZRDB\DA.py, line 450, in
__call__
(Object: bmsdb_jet_select_browse_state_sub_insert_into_temptablebrowse)
  File C:\PROGRA~1\JESTER\lib\python\Products\ZJetDA\db.py, line 130, in
query
Query Error: (see above)

Rant:
I've been working on this for days.  I don't seem to understand the security
model since I didn't have any problems before 2.2.x.  If I cannot get this
resolved, I'll move back to the 2.1.x series.  I really want this to work as
it is my companie's introduction to open source software.  Have a :) day.

Thanks.
Troy
Troy Farrell
Video Operations Technician II
Williams VYVX Services
918.573.3029
918.573.1441 fax
mailto:[EMAIL PROTECTED]
http://www.williams.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] DTML Question on lines

2000-09-07 Thread Tim Cook

"Coleman, Bryan" wrote:
> 
> I am trying to itterate through a lines property in the folder so that the
> options will drop down. I did not think that the following code would work
> but I could not think of anything else.
> 
>   
>   valid_codes> 
>   
> 
 
Try this Bryan,



  
  




-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread R. David Murray

On Thu, 7 Sep 2000, Tim Hicks wrote:
> The question is, do I need to add the equivalent of what is written in
> 'How-To: Creating a CatalogAware ZClass' for reindexing zclass
> properties, but for reindexing the actual text?  How could I do this?

When is the text created?  After it is, you have to call reindex_object.

--RDM


___
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 of ZClasses using FTP: Access denied

2000-09-07 Thread R. David Murray

On Thu, 7 Sep 2000, Harald Koschinski wrote:
> I am trying to edit methods inside a ZClass. The problem is, that the
> ZClasse-folder don´t has any permissions via FTP - so there is no chance
> to come into the folder.
> 
> Where do I have to change the permission??

You don't.

However, if you specify the URL of the method directly (make sure you
use the full URL as shown on the management edit screen), you will
be able to access it.  At least, so it has been reported on this
mailing list in the recent past.

--RDM


___
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] PTK - member can reconfigure portal

2000-09-07 Thread Anders Eriksson

Hello,
I am a beginner on Zope so maybe I'm doing something wrong but...

I have installed the Portal ToolKit 0.8.2 complete, and most things
seem to work except:

I have joined the Portal and when I log in as this member and select
'My Stuff', I get a new menu item: 'Re-configure portal'! Which will
let this user/member change things that only the owner/super should be
able to do!(?)

So what have I done wrong?
(.or can it be a bug.)

I'm running zope 2.2.1 on a Windows NT 4 workstation (SP6a)

-- 
Best regards,
 Anders  mailto:[EMAIL PROTECTED]

The Romans didn't find algebra very challenging, because X was always 10.




___
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] wrapped object

2000-09-07 Thread Bill Anderson

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


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

Then again, it could be something completely different.


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

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




RE: [Zope] Zope 2.2.1 Solaris 8 dumps core

2000-09-07 Thread Brian Lloyd

> I've downloaded the src of Zope 2.2.1 on my UltraSparc running Solaris
> 8, built it ok, but when I try run ./start it it dumps core with a
> segmentation fault.
> Is this problem known? Anything I can do?
> I am completely new to both Python and Zope ...

I don't know of any problems inherent to running on Sol8. 
It seems like maybe it could have something to do with 
your Python installation. One way you could test that is 
to cd to the lib/python dir of your Zope installation, 
start your local Python interpreter and try:

import ExtensionClass



Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909
Digital Creations  www.digicool.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] Zope 2.2 & ZopeAttributionButton

2000-09-07 Thread Dieter Maurer

Ira Hochman writes:
 > Does anyone know how to set security on ZopeAttributionButton?  
I do not know how you can directly set permissions
for ZopeAttributionButton.

But, as a wordaround, you can give "standard_html_footer"
an appropriate proxy role.



Dieter

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




Re: [Zope] The Ascetic Superuser

2000-09-07 Thread Dieter Maurer

ethan mindlace fremen writes:
 > Now every object excecutes according to the permision of the owner,
 > *not* the viewer. It can also run as a proxy role.  The
 > super-bootstrap-user lives outside of "normal" zope authentication & has
 > permission to do anything save that which NotEvenGodShouldDo. 
 > Therefore, it shouldn't own objects.
Am I really expected to understand this "Therefore"?
In fact, I do not!

Does it mean, that a Superuser can execute any method with
*ITS* privileges and not the intersection of its priviledges
with the owners privileges?
I hope (and expect) not!

Why is it much worse when an object is owned by Superuser
than by a manager?
What are the differences with respect to the Trojan Horse
or other security issues?


Dieter

___
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: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header)

2000-09-07 Thread Dieter Maurer

Tim Hicks writes:
 >   I presume that this will only work for all *new* instances of
 > this class however!  I don't suppose you know of a way of remaking all
 > 44 instances of this Zclass I have using this adjusted constructor? I
 > have tried (see below), but I think I come up against the same
 > '' problem that I'm actually trying to counteract!
I do -- in principle :-)

When you rename an instance, the instance gets a correct id.

Now, all operations you can do through the web, can be
done programmatically. Either by an external program
based on "ZPublisher.Client" or by an internal script.

Look in the searchable archive to find a post from me that
explains how to determine the necessary function calls
from the management source (if you do not know it already).
An alternative is to look in the Zope object reference
(--> zdp.zope.org).

You may use "ZopeFind" to locate all your ZClass
objects in order to rename them.

Details are left for you.


Dieter

___
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] Proxy roles don't propagate? - bizzare permissions from ZDChart too

2000-09-07 Thread Dieter Maurer

Brad Clements writes:
 > ... Proxy role does not propagate ...
This has been changed starting with Zope 2.2.
The callee no longer inherits the proxy role from
its caller but must get its own proxy role.


Dieter

___
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] Lock and Transaction in Zope.

2000-09-07 Thread Dieter Maurer

Aitor Grajal writes:
 > --=_9682482706334=_
 > Content-Type: text/plain; charset="ISO-8859-1"
 > Content-Transfer-Encoding: quoted-printable
I hate "multipart" or encoded messages to this list (because the digest
removes MIME headers (what a stupidity!) and does not give my
mail reader a chance to decode them).

 >  ... two requests concurrently accessing the same object ...
 >  The first one crashes, and doesn't finish right
 >  I want to know if there is any way to lock ...
 >  about locking resources in Zope.
You do strange things...

Zope tries hard to avoid locking and uses an optimistic
collision policy instead. Several threads can
run concurrently on separate copies of an object.
If, during commit, a collision is detected, the
affected transaction is aborted and (I think I read that)
restarted.

If you really need locking, you can use Pythons "threading"
module (in a package used from an external method).
You must be careful, though.
Look in the archive for a message from Sean McGrath
about the potential problem involved and my reply
for a solution.

You may also look (as an example) at
URL:http://www.dieter.handshake.de/pyprojects/zope/SharedResource.html
It uses looks to protect resources shared by several threads.


Dieter

___
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] DTML Question on lines

2000-09-07 Thread Rik Hoekstra




> I am trying to itterate through a lines property in the folder so that the
> options will drop down. I did not think that the following code would work
> but I could not think of anything else.
>
>   
>   valid_codes> 
>   
>

try (untested):


    


assuming of course that valid_codes is a list

hth

Rik


___
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] DTML Question on lines

2000-09-07 Thread Coleman, Bryan

I am trying to itterate through a lines property in the folder so that the
options will drop down. I did not think that the following code would work
but I could not think of anything else.

  
  
  


- Bryan Patrick Coleman
  Questcon Technologies
  (336)273-2428 ext-416
  [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 )




[Zope] Call for Python Method opinions

2000-09-07 Thread Evan Simpson

If you want any say in how official Zope Python Methods work, I recommend
heading over to:

http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/StandardPythonMetho
dModule

...soonest.  If you have feedback on any part of the project, please
contribute, but the link above is the squishiest part of the design, and
possibly the most important to many of you.

User-style documentation is still scanty, but getting better.  Comments on
where it needs to be stronger are welcome.

Cheers,

Evan @ digicool & 4-am


___
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] Newbie question: Unhandled requests.

2000-09-07 Thread Hannes


We currently started to run our site using Zope behind Apache using
ProxyPass,
when testing from the outside it
seems that there many (about one-third)  of the  requests that are not
handled by
Zope, the browser seems to recieve nothing,
(means the browser times out),
this behaviour does not depend on the complexity of the document
templates,
it is an overall phenomenon (including management screens etc...).
When pressing reload the things get okay most of the times, but it is
annoying..

Any help would be appreciated.
thanks in advance.

H.Grund.

please replay to
[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] Using Chinese Characters

2000-09-07 Thread Tino Wildenhain

Hi Kelvin,

Kelvin Cheong wrote:
> 
> i was wondering how i can use chinese characters with Zpe on Linux. does
> anyone know how? According to my "mild" research so far, i found out that
> Big5is a 2-byte code and is a part of ISO-10646/Unicode. It also seems to
> be the de-facto for traditional chinese characters. There're also Unicode
> CJK and GB. But GB is for China, which uses simplified chinese characters.
> And CJK includes both Big5 and GB.

classic zope is built on python 1.52 and does not naturally support
unicode.
But there is a light on the horizont:

http://www.zope.org/Members/htrd/wstring

I have a vision of everything working together for localizing and 
internationalisation ;-)

Regards
Tino

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




Re: [Zope] re module & through the web security

2000-09-07 Thread Evan Simpson

From: Dan L. Pierson <[EMAIL PROTECTED]>
>  > http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/GuardedImport
>
> I looked there.

Ah, but I was sneaky and went and updated it just before posting ;-)  You do
have to follow a link or two, but it isn't hard to find (any more).

Cheers,

Evan @ digicool & 4-am


___
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] Java applet with inner classes causing probs in Zope

2000-09-07 Thread Eric L. Walstad

Just a follow-up:

Morten Said:
// Adding files to Zope through FTP doesn't seem to have the same
restrictions.
Actually, it did for me.  FTP was able to upload all the class files except
those with the $ in them (the classes with inner-classes).  That's how I
found out about the problem.

Holger Lehmann said:
// What about putting it all in a jar-file ?
I tried that, too, but Java would choke on running the Jar file that was
served from Zope.  If anyone has a working JAR file applet in Zope, I'd love
to see the syntax they used!

To make my applet work, I had to go into the java code and separate out the
inner classes so that every class was in its own file.  This turned out to
be a lot easier than I expected.

Eric.

Here's the original message...

> Hello all,
>
> The problem is that inner classes have names like "Parent$Inner.class"
> I'm unable to create a Zope file object with a name that includes the
dollar
> sign.  However, the applet won't function without it.
>
> Has any one overcome this?
>
> Yes, the applet functions properly when served from apache (but I need to
> serve it from Zope).
>
> Please respond directly to me and mailing list as I am not currently on
the
> mailing list.
>
> Thanks,
>
> Eric.


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




Re: [Zope] re module & through the web security

2000-09-07 Thread Dan L. Pierson

Evan Simpson writes:
 > From: Dan L. Pierson <[EMAIL PROTECTED]>
 > > Does this work for any module or just a semi-safe subset?
 > >
 > > How are submodules handled?  Just put the full path in the
 > > ModuleSecurityInfo call?  Can you grant permissions for all children
 > > of a parent module (scary!)?
 > 
 > http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/GuardedImport

I looked there.  It says something about how import restrictions will
be implemented but nothing at all about what the limitations will be
or what the syntax for interacting with the restriction mechanism will 
be.  For example, your email is the only reference I can find to
ModuleSecurityInfo. 

 > ...is a good place to start learning about this.  Any module can be made
 > available -- it's up to the Zope administrator (or Product author) to decide
 > what they can safely expose, under what terms.

That seems reasonable.

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




Re: [Zope] re module & through the web security

2000-09-07 Thread Evan Simpson

From: Dan L. Pierson <[EMAIL PROTECTED]>
> Does this work for any module or just a semi-safe subset?
>
> How are submodules handled?  Just put the full path in the
> ModuleSecurityInfo call?  Can you grant permissions for all children
> of a parent module (scary!)?

http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/GuardedImport

...is a good place to start learning about this.  Any module can be made
available -- it's up to the Zope administrator (or Product author) to decide
what they can safely expose, under what terms.

Cheers,

Evan @ digicool & 4-am


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




Re: [Zope] re module & through the web security

2000-09-07 Thread Dan L. Pierson

Evan Simpson writes:
 > Fear not.  In the brand new shiny PythonMethods Product coming soon
 > (really!) to a Zope near you, you will have the ability to say:
 > 
 > ModuleSecurityInfo('re').protect('compile', 'Use the "re" module')
 > 
 > ...and suddenly anyone to whom you grant 'Use the "re" module' permission
 > will be able to 'from re import compile' in their Python Methods.  Anyone
 > else will be able to 'import re', but not access any of its contents.

Thank you!  I was going to follow Chris McDonough's suggestion and add
something to the Wiki about this but your solution is just perfect.
Of course I have a couple of questions since I couldn't find any
mention of this in the Wiki:

Does this work for any module or just a semi-safe subset?

How are submodules handled?  Just put the full path in the
ModuleSecurityInfo call?  Can you grant permissions for all children
of a parent module (scary!)?


___
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] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread Tim Hicks

I have created a Zclass, the the _ZClass_for_CatalogAware base class
as the first added base class (second in the list of base classes).
My zcatalog (named Catalog) is set to 'Find objects of type:
"myClass_metatype"' and therefore, when I add a new instance of my
class, it is automatically added to the catalog.  By that, I mean that
once I have added the instance, I can go the the 'Cataloged Objects'
view and see it listed there. However, if I try a search using the raw
(TextIndex) search outlined in one of the tutorials, the search fails
to find words that I *know* are in the zclass that I just added, and
that I thought had been cataloged.  Clicking on 'Update Catalog' in
the 'Cataloged Objects' view and then researching means that the
search succeeds in finding the word in the new instance.

The question is, do I need to add the equivalent of what is written in
'How-To: Creating a CatalogAware ZClass' for reindexing zclass
properties, but for reindexing the actual text?  How could I do this?









Help much appreciated,

tim


___
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] Folderish Properties

2000-09-07 Thread Tim Cook


I have a folderish ZClass with a set of properties. When I create
an instance via DTML my code doesn't update the properties from
REQUEST.

I use exactly (names changed of course) the same code to
instantiate a document like ZClass and it works fine.  So what's
the difference between Folderish ZClasses & Document ZClasses in
assigning to their properties? (The instance IS created, just the
properties aren't assigned values.)

I used the howto on adding instances via DTML change to the
'_add' methods in both ZClasses.

Here's the code FWIW:

--- Document-'ish' ---














  



 was added.

 Back to Formulary Menu 








--- Folder-'ish' ---




















  



 was added.

 Back to Provider Menu 




As Always - Thanks!

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] ZClass base classes

2000-09-07 Thread Chris McDonough

Hi Nick

(please don't post HTML mail to the list).

I *think* the "Include standard Zope persistent object base classes"
check box gives your ZClass the "ZObject" interface which is similar to
the SimpleItem interface (see the Zope API docs in the help system - I
think it's under Help->Zope Help->API Documentation->ObjectManagerItem).

As far as inheritance order, the first base class you add to the ZClass
base class list will be ZObject if you use check the "standard base
classes" checkbox.  The next one will be the first base class you choose
(the topmost), the next one will be the one under that, etc. 

-Original Message-
From: Nick Trout [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 07, 2000 8:59 AM
To: Zope Mail list
Subject: [Zope] ZClass base classes


I've looked all throught docs but I cant find anywhere an explanation of
what properties the ZClass base classes give you. Also which order to
inherit them, as the Developers Guide claims the order is important. Can
anyone please enlighten me?

Regards,
Nick.

___
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] Editing of ZClasses using FTP: Access denied

2000-09-07 Thread Harald Koschinski

Hallo,

I am trying to edit methods inside a ZClass. The problem is, that the
ZClasse-folder don´t has any permissions via FTP - so there is no chance
to come into the folder.

Where do I have to change the permission??

Help is really appreciate

Thanks

Harald


___
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] ANN: Serving PHP/Perl from Zope update

2000-09-07 Thread Bill Welch

Last bug. Promise.

# user might not have signed in yet
try:
  username, password = req._authUserPW()
except:
  username = password = None




___
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] wrapped object

2000-09-07 Thread Sven Hohage

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

Error Type: ValueError
Error Value: Invalid property value: wrapped object





Troubleshooting Suggestions

The URL may be incorrect.
The parameters passed to this resource may be incorrect.
A resource that this resource relies on may be encountering an error.
For more detailed information about the error, please refer to the HTML
source for this page.

If the error persists please contact the site maintainer. Thank you for
your patience.




Traceback (innermost last):
  File C:\Zopppaaa\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\Zopppaaa\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File C:\Zopppaaa\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File C:\Zopppaaa\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File C:\Zopppaaa\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: testskript)
  File C:\Zopppaaa\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: testskript)
  File C:\Zopppaaa\lib\python\OFS\DTMLMethod.py, line 167, in __call__
(Object: testskript)
  File C:\Zopppaaa\lib\python\DocumentTemplate\DT_String.py, line 502,
in __call__
(Object: testskript)
  File C:\Zopppaaa\lib\python\DocumentTemplate\DT_With.py, line 146, in
render
(Object: manage_addProduct['DBank'])
  File C:\Zopppaaa\lib\python\DocumentTemplate\DT_Util.py, line 337, in
eval
(Object: eingang_DB_add (_.None, _, NoRedir=1))
(Info: eingang_DB_add)
  File , line 0, in ?
  File C:\Zopppaaa\lib\python\OFS\DTMLMethod.py, line 163, in __call__
(Object: eingang_DB_add)
  File C:\Zopppaaa\lib\python\DocumentTemplate\DT_String.py, line 502,
in __call__
(Object: eingang_DB_add)
  File C:\Zopppaaa\lib\python\DocumentTemplate\DT_With.py, line 146, in
render
(Object: eingang_DB.createInObjectManager(REQUEST['id'], REQUEST))
  File C:\Zopppaaa\lib\python\DocumentTemplate\DT_Util.py, line 337, in
eval
(Object:
propertysheets.eingangs_info.manage_editProperties(REQUEST))
(Info: REQUEST)
  File , line 0, in ?
  File C:\Zopppaaa\lib\python\OFS\PropertySheets.py, line 456, in
manage_editProperties
(Object: Traversable)
  File C:\Zopppaaa\lib\python\OFS\PropertySheets.py, line 255, in
_updateProperty
(Object: Traversable)
  File C:\Zopppaaa\lib\python\OFS\PropertySheets.py, line 208, in
_wrapperCheck
(Object: Traversable)
ValueError: (see above)



___
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] ZClass base classes

2000-09-07 Thread Nick Trout

> (please don't post HTML mail to the list).
sorry

> I *think* the "Include standard Zope persistent object base classes"
> check box gives your ZClass the "ZObject" interface which is similar to
> the SimpleItem interface (see the Zope API docs in the help system - I
> think it's under Help->Zope Help->API Documentation->ObjectManagerItem).

I dont seem to have this in my Zope Help System. Where can I obtain this? I
have 2 items in the Contents tab frame: ZeopTutorial and ZopeHelp. The API
Documentation I have is very sparse.

> As far as inheritance order, the first base class you add to the ZClass
> base class list will be ZObject if you use check the "standard base
> classes" checkbox.  The next one will be the first base class you choose
> (the topmost), the next one will be the one under that, etc.

But what I need to know is what properties does the derivation give the new
object and how does the order affect its behaviour.

Ta,
Nick

> I've looked all throught docs but I cant find anywhere an explanation of
> what properties the ZClass base classes give you. Also which order to
> inherit them, as the Developers Guide claims the order is important. Can
> anyone please enlighten me?



___
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] [New User]: Investigating Zope...some preliminary questions

2000-09-07 Thread Vaibhav Goel

Hi all:

I am currently investigating Zope as a possible "tool" to use for
building the back end "engine" for several projects for our company.
Some of the sites we are currently doing involve E-commerce, news, etc.

It is definitely a very powerful system and I think I have not even
scratched the surface.  I tried the QuickStart (ZAcme) tutorial
and got a feel for whats involved.  A few questions came to my mind
and maybe I am not getting the "right picture" so to say but I would very
much appreciate if someone could take the time to answer these:

1.  If we were to go ahead and start using Zope as a "back-end engine"
to build websites, basically a team of 3-4 people would be involved.
Do they have to have knowledge of Zope?  For example, I am the back-end
guycreating, programming the middle tier code for database access
and what not.  The guy who does the front-end (ie html code, layout
) and graphics guys are not very technical.  How will I go about "importing"
the front end code within Zope?  Are there any modules for DreamWeaver
etc (Windows based tools) that integrate with Zope?  

2.  What about stuff like importing legacy websites?  For example,
our main website is built using ASP running IIS.  I was planning to
recode it all in PHP + MySQL.  Are there any "straight forward" ways
to migrate legacy stuff easily?

Again, please accept my apologies if this stuff is covered in the documentation
somewhere.  So far, I have gone through the Zope Content Manager guide
and did not see any details about these questions there.  I am in the
process of browsing through the mailing list archives and I am sure I will
find a lot of info there.

Any tips and suggestions are highly appreciated.

Regards,

VG
-- 
Vaibhav Goel ~ IcelandComplete  | [EMAIL PROTECTED] 
GSM: +354 695 6125  | http://www.icelandcomplete.is
Office Phone: +354 553 9600 | Grensasvegur 7
Fax: +354 553 8608  | 108 Reykjavik, Iceland

___
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] ZODB How To please HELP

2000-09-07 Thread Farrell, Troy

Could you send the SQL you used?  Also, what platform and Database are you
using?

> -Original Message-
> From: Norman Khine [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 07, 2000 7:05 AM
> To:   [EMAIL PROTECTED]
> Subject:  [Zope] ZODB How To  please HELP
> 
> I am trying to follow the How to on ZODB How To, but I get stuck at the
> point of when testing the  sqlInsertProduct
> When I submit the query I get the following error
> 
> Error, exceptions.SyntaxError: unexpected token sequence.near ::
> '_weight)\012VALUES'*'\012widget,\012Histor'
> *** current state = 141 expects: '(',
> ('nomatch1',) current token = ((-8, 'user_defined_name'), 'WIDGET') 
> 
> SQL used:
> Could not render the query template!
> 
> Please help
> 
> Thanks
> 
> Norman

___
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] Python, persistent objects and caching

2000-09-07 Thread Brian Lloyd


> I'm developing a Python-based product that uses persistent objects in
> ZODB to store its configuration. No surprises there, but my product is
> also using volatile attributes to do a bit of caching of its own. The
> thing is, when ZODB takes a sweep every 60 seconds to flush it's own
> cache it will quite often flush my product as well, essentially
> rendering my 15 minute caching ineffective.
> 
> If there a way I can prevent this from happening?
> 
> References:
> http://www.zope.org/Members/MikeP/volatile
> http://www.zope.org/Members/Zen/tips/VolatileAttributes
> 
> Soren Roug

One approach would be to cache your data in the module's 
namespace. For ex:

mycache={}

class MyClassThatKeepsGoingAway:
  ...
  def get_data(self, id):
if mycache.has_key(id):
  return mycache[id]
else:
  ...

Note that my example is a little contrived, since using a module 
variable means that you will have to implement this in a way that 
is safe for a multi-threaded environment. You will also want to 
make sure that your module-level cache doesn't grow forever and 
take up a lot of memory.

Hope this helps!

Brian Lloyd ([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 )




[Zope] ZClass base classes

2000-09-07 Thread Nick Trout



I've looked all throught docs but I cant find 
anywhere an explanation of what properties the ZClass base classes give you. 
Also which order to inherit them, as the Developers Guide claims the order is 
important. Can anyone please enlighten me?
 
Regards,
Nick.
 
 


[Zope] Portal Toolkit and NTUserFolder

2000-09-07 Thread neeloy_saha

Hi all,

Can anybody tell me how to integrate the NTUserFolder and the portal toolkit

-neeloy

___
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] generate static html to webserver?

2000-09-07 Thread Torsten Eymann

Hello,
I want generate a static site from zope-folder and his
subfolders to put that
on an really-internet-server. Can I do that? How?

thanks

torsten


___
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] ZODB How To please HELP

2000-09-07 Thread Norman Khine

I am trying to follow the How to on ZODB How To, but I get stuck at the
point of when testing the  sqlInsertProduct
When I submit the query I get the following error

Error, exceptions.SyntaxError: unexpected token sequence.near ::
'_weight)\012VALUES'*'\012widget,\012Histor' ***
current state = 141 expects: '(', ('nomatch1',) current token = ((-8,
'user_defined_name'), 'WIDGET') 

SQL used:
Could not render the query template!

Please help

Thanks

Norman

 winmail.dat


[Zope] Python, persistent objects and caching

2000-09-07 Thread Soren Roug

Hi,

I'm developing a Python-based product that uses persistent objects in
ZODB to store its configuration. No surprises there, but my product is
also using volatile attributes to do a bit of caching of its own. The
thing is, when ZODB takes a sweep every 60 seconds to flush it's own
cache it will quite often flush my product as well, essentially
rendering my 15 minute caching ineffective.

If there a way I can prevent this from happening?

References:
http://www.zope.org/Members/MikeP/volatile
http://www.zope.org/Members/Zen/tips/VolatileAttributes

Soren Roug

___
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] Zope 2.2.1 Solaris 8 dumps core

2000-09-07 Thread Michele Ravani

Hi

I've downloaded the src of Zope 2.2.1 on my UltraSparc running Solaris
8, built it ok, but when I try run ./start it it dumps core with a
segmentation fault.
Is this problem known? Anything I can do?
I am completely new to both Python and Zope ...


Thanks
  Michele



#0  initExtensionClass () at
./../Components/ExtensionClass/ExtensionClass.c:3508
3508  ECTypeType.ob_type=&PyType_Type;
(gdb) where
#0  initExtensionClass () at
./../Components/ExtensionClass/ExtensionClass.c:3508
#1  0x28ddc in _PyImport_LoadDynamicModule (name=0xefff310b
"ExtensionClass",
pathname=0xefff2c10
"/home/michele/Projects/Zope-2.2.1-src/lib/python/ExtensionClass.so",
fp=0xb2fc0) at ./importdl.c:851
#2  0x26ee4 in load_module (name=0xefff310b "ExtensionClass",
fp=0xb2fc0,
buf=0xefff2c10
"/home/michele/Projects/Zope-2.2.1-src/lib/python/ExtensionClass.so",
type=3) at import.c:1210
#3  0x27cf0 in import_submodule (mod=0x9f1dc, subname=0xefff310b
"ExtensionClass", fullname=0xefff310b "ExtensionClass") at import.c:1755

#4  0x27870 in load_next (mod=0xe6100, altmod=0x9f1dc,
p_name=0xefff310b, buf=0xefff3100 "ZPublisher.ExtensionClass",
p_buflen=0xefff30fc) at import.c:1607
#5  0x2742c in import_module_ex (name=0x0, globals=0x185428,
locals=0x185428, fromlist=0xe78e0) at import.c:1445
#6  0x275cc in PyImport_ImportModuleEx (name=0x1a2004 "ExtensionClass",
globals=0x185428, locals=0x185428, fromlist=0xe78e0) at import.c:1489
#7  0x48dd8 in builtin___import__ (self=0x0, args=0x185ba0) at
bltinmodule.c:65
#8  0x1e1d4 in call_builtin (func=0xb45b0, arg=0x185ba0, kw=0x0) at
ceval.c:2359
#9  0x1e0a0 in PyEval_CallObjectWithKeywords (func=0xb45b0,
arg=0x185ba0, kw=0x0) at ceval.c:2324
#10 0x1c574 in eval_code2 (co=0x1a2570, globals=0x0, locals=0x185428,
args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0,
owner=0x0)
at ceval.c:1445
#11 0x1a390 in PyEval_EvalCode (co=0x1a2570, globals=0x185428,
locals=0x185428) at ceval.c:324
#12 0x26210 in PyImport_ExecCodeModuleEx (name=0xefff42c0
"ZPublisher.BaseRequest", co=0x1a2570,
pathname=0xefff38e0
"/home/michele/Projects/Zope-2.2.1-src/lib/python/ZPublisher/BaseRequest.pyc")
at import.c:485
#13 0x26744 in load_source_module (name=0xefff42c0
"ZPublisher.BaseRequest",
pathname=0xefff38e0
"/home/michele/Projects/Zope-2.2.1-src/lib/python/ZPublisher/BaseRequest.pyc",
fp=0x1a2570) at import.c:724
#14 0x26eb4 in load_module (name=0xefff42c0 "ZPublisher.BaseRequest",
fp=0xb2fb0,
buf=0xefff3dd0
"/home/michele/Projects/Zope-2.2.1-src/lib/python/ZPublisher/BaseRequest.py",
type=1) at import.c:1202
#15 0x27cf0 in import_submodule (mod=0xe6100, subname=0xefff42cb
"BaseRequest", fullname=0xefff42c0 "ZPublisher.BaseRequest") at
import.c:1755
#16 0x2781c in load_next (mod=0xe6100, altmod=0x9f1dc,
p_name=0xefff42cb, buf=0xefff42c0 "ZPublisher.BaseRequest",
p_buflen=0xefff42bc) at import.c:1603
[...]



___
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] Using Chinese Characters

2000-09-07 Thread Kelvin Cheong


i was wondering how i can use chinese characters with Zpe on Linux. does
anyone know how? According to my "mild" research so far, i found out that
Big5is a 2-byte code and is a part of ISO-10646/Unicode. It also seems to
be the de-facto for traditional chinese characters. There're also Unicode
CJK and GB. But GB is for China, which uses simplified chinese characters.
And CJK includes both Big5 and GB.

The most puzzling thing to me is how all this works. Do i need a special
browser, font server, Zope products? And when i can display chinese
characters using any one of the standards, how am i going to input it in
the first place? And last but not least, how does all this ascii and
unicode conversion work together?

I've seen a couple of chinese sites running on Zope, and was wondering if I
could get some help in here. Anyone have any ideas?

VCN - The Leader In Corporate Communication Solutions
Visit our website at http://www.vcn.com.my. 
or http://www.vcnlinux.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 )