[Zope-dev] is INSTANCE_HOME broken on Win32?

2000-09-11 Thread Chris Withers

Hello :-)

I'm trying to make Squishdot work with INSTANCE_HOME nicely.
However, the testing is going wrong on a normal Win32 Install...

I had lots of lines that went something like:

f=open('%s/Products/%s.dtml' % (SOFTWARE_HOME,file)) 

Which generates:

E:\Zope\2.2.0\lib\python/Products/Squishdot/validArticle.dtml

That's not very nice in itself but seems to work with Python's open...

However, when I change them all to be like, for example:

   f=open('%s/Products/%s.dtml' % (INSTANCE_HOME,file)) 

I then get:

'E:\\Zope\\2.2.0/Products/Squishdot/validArticle.dtml'

which is:

- horrible
- wrong
- doesn't work ;-)

Anyway, I'm looking for something like INSTANCE_HOME or SOFTWARE_HOME
that:

- works in an INSTANCE_HOME setup
- works in a non-INSTANCE_HOME setup
- works on both Unix and Windows..

Any ideas?

cheers,

Chris

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




[Zope-dev] Re: ZPatterns: Error: User error! :-/

2000-09-11 Thread Steve Alexander

Steve Alexander wrote:
 
 I have a customizer folder with various data-plugins and customizers.

snipped
 
   File lib/python/Products/ZPatterns/Providers.py, line 178, in
 namesForRegistration
 (Object: PlugInBase)
 TypeError: (see above)
 
 I'll start to look into this.
 
 Any advice would be most welcome.

Found the problem... I did have different versions of ZPatterns on both
machines after all.

ZPatterns-0-4-1snap1
ZPatterns-0-4-2a1

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

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




RE: [Zope-dev] Z SQL Method Patch

2000-09-11 Thread T.J. Mannos

Casey,

I just wanted to thank you very, very, VERY much for that tip!  I've spent
far too many hours debugging very long, complex Z SQL methods.  This will be
an enormous help!  By the way, it works like a charm on ZMySQLDA.

Thanks!
- T.J.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Casey Duncan
Sent: Thursday, September 07, 2000 4:26 PM
To: [EMAIL PROTECTED]
Subject: [Zope-dev] Z SQL Method Patch


In debugging some Z SQL methods I found it quite hard to diagnose certain
errors returned by the database backend because Zope doesn't return the SQL
sent to the server, instead it returns "Could not render the query
template!" which is not really true for this case.

In looking at the source code of DA.py (lib/python/Shared/DC/ZRDB), and I
think I found a simple solution:

in manage_test insert the following indented after line 343 (except:)

try: src=self(REQUEST, src__=1)
except: pass

This re-renders the query template if possible without sending it to the
backend and returns the SQL in src. The result is your backend error message
followed by the SQL generated. This should really save time debugging any
dynamic Z SQL methods.

It was moderately tested on Zope 2.2.1/PostgreSQL 7 via PyGreSQLDA. It
should not be database dependant though.

Enjoy.
-Casey Duncan



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




[Zope-dev] ZPatterns: Error reimporting .zexp containing Folder w/ CustomizerSupportSupport

2000-09-11 Thread Steve Alexander

I have a customizer folder with various data-plugins and customizers.

I just exported it from one zope installation, for importing into one on
a different server.

The installations are more or less identical -- same zope version, same
products.

When I try to reimport it, I get the following error:

  Error Type: TypeError
  Error Value: No data plug-ins available to link to in /emb

Traceback (innermost last):
  File lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File lib/python/ZPublisher/Publish.py, line 187, in publish
  File python/Zope/__init__.py, line 221, in zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File lib/python/ZPublisher/Publish.py, line 171, in publish
  File lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_importObject)
  File lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: manage_importObject)
  File lib/python/OFS/ObjectManager.py, line 535, in manage_importObject
(Object: ApplicationDefaultPermissions)
  File lib/python/OFS/ObjectManager.py, line 290, in _setObject
(Object: ApplicationDefaultPermissions)
  File lib/python/Products/ZPatterns/PlugIns.py, line 211, in
manage_afterAdd
(Object: PlugInBase)
  File lib/python/OFS/ObjectManager.py, line 298, in manage_afterAdd
(Object: PlugInBase)
  File lib/python/Products/ZPatterns/PlugIns.py, line 211, in
manage_afterAdd
(Object: Transactional)
  File lib/python/OFS/ObjectManager.py, line 298, in manage_afterAdd
(Object: Transactional)
  File lib/python/Products/ZPatterns/PlugIns.py, line 64, in
manage_afterAdd
(Object: PlugInBase)
  File lib/python/Products/ZPatterns/PlugIns.py, line 120, in _addPlugIn
(Object: Transactional)
  File lib/python/Products/ZPatterns/PlugIns.py, line 168, in
manage_refreshPlugIns
(Object: Transactional)
  File lib/python/Products/ZPatterns/PlugIns.py, line 332, in
manage_refreshPlugIns
  File lib/python/Products/ZPatterns/Providers.py, line 101, in
_PlugInsChanged
  File lib/python/Products/ZPatterns/Providers.py, line 178, in
namesForRegistration
(Object: PlugInBase)
TypeError: (see above)

I'll start to look into this.

Any advice would be most welcome.

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

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




Re: [Zope-dev] is INSTANCE_HOME broken on Win32?

2000-09-11 Thread Evan Simpson

From: Chris Withers [EMAIL PROTECTED]
 I'm trying to make Squishdot work with INSTANCE_HOME nicely.
 However, the testing is going wrong on a normal Win32 Install...

 I had lots of lines that went something like:

 f=open('%s/Products/%s.dtml' % (SOFTWARE_HOME,file))

 Which generates:

 E:\Zope\2.2.0\lib\python/Products/Squishdot/validArticle.dtml

 That's not very nice in itself but seems to work with Python's open...

 However, when I change them all to be like, for example:

f=open('%s/Products/%s.dtml' % (INSTANCE_HOME,file))

 I then get:

 'E:\\Zope\\2.2.0/Products/Squishdot/validArticle.dtml'

This looks correct to me.  If no explicit INSTANCE_HOME is set, it defaults
to SOFTWARE_HOME minus '/lib/python'.

On the other hand, I wonder why you're constructing '%s/Products/' paths
explicitly like this.  If this code is inside the Product to which you would
like the path, the proper way to get the path is:

from Globals import package_home
path = package_home(globals())
# path now probably equals
'E:\\Zope\\2.2.0\\lib\\python\\Products\\Squishdot' in your example.

I have no idea if or where this is documented, sadly.  I'll definitely put
it in my 'writing INSTANCE_HOME-friendly Products' howto, as soon as I get
around to writing such a thing :-/  Or perhaps you could? ;-)

Cheers,

Evan @ digicool  4-am


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




[Zope-dev] User Info Folder Product Released

2000-09-11 Thread Didier Frick

Hi all,

I just released a Zope product, but since I'm a Zope newbie I'm still wondering
whether there is something fundamentally wrong with my idea or not.

Could someone check that thing and tell me whether I'm completely off base ?

I'm pretty sure there would be a way to solve the same problem using ZPatterns,
but I'm still at the very beginning of the learning curve, so I'd rather do
with something without too many dependencies.

Anyway, here's the product's blurb:

User Info Folders maintain a collection of ZClasses synchronized
with a user folder. You can specify the name of the product and the
name of the ZClass in this product. The User Info Folder will then
automatically maintain one instance of the specified ZClass for each
user in the "nearest" User Folder in the hierarchy 
(the acquired 'acl_users' object).
This can be very useful if you want to create ZClasses
representing user-specific information: an instance
of this ZClass will be automatically maintained by the
User Info Folder for each user, allowing it to be referenced
by URLs.

The URL for the product is
http://www.zope.org/Members/did/UserInfoFolder

Thanks for your feedback,

 Didier
-- 
Didier Frick  
Freelance Software Developer  Consultant
http://www.dfr.ch/

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




Re: [Zope-dev] PATH_TRANSLATED delimted with backslash ?

2000-09-11 Thread Dieter Maurer

Steve Alexander writes:
  
  When I look at the DTML Document through the web, the "self" object
  passed to the breadcrumbs external method is the folder that contains
  the DTML Document.
  (I thought that should only be the case for DTML Methods!)
I expect, it is the folder containing the external method, too.
Therefore, you get this folder as "self".

You can provide the "self" explicitly in your call:

dtml-call "breadcumbs(this(),further parameters)"


Dieter

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




[Zope-dev] Back from the dead xmlc

2000-09-11 Thread Jason Spisak

Zope Devers,

THis is going to seem strange coming from someone who hasn't been on the
list in a long time, but I was at the Linux Expo in San Jose, and sat in on
a Web app talk.  Lutris was in charge of the panel, and they talked about
xmlc.  I went to their booth and asked about it. I think it could be the
best way to get hard-core python people to jump on zope's band-wagon, and
stop the dtml frowning.

If you who are in the know about zope have time, please read a quick bit on
what it is.

http://xmlc.enhydra.org

Especially the tutorial:

http://staff.plugged.net.au/dwood/xmlc/index.html

Is there any obvious reason why Zope wouldn't benefit tremendously from
this design and programming separation and pure python boost?

All my best,


Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

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




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

2000-09-11 Thread Jason Cunliffe

Ron

yes +thanks for paying keen attention here..

  What Manila has done is to provide some reasonable default templates for
  getting useful site development work done 'out of the box' - they have
  provided a structure template, and well defined access to changing the
  obvious things people want to change.

 I see.  Having higher level drop-in Web sites, IMO, is a job for add-on
Zope
 products that could be created by DC or the community to meet various
needs
 (as in Squishdot like projects).  As the Zope community grows, I have no
 doubt that more add-on products for "Web sites in a can" will pop up.


Exactly.
My concern is to get the right kind of discussion going because it is going
to need some differnt kinds of minds to work together.

 I can only guess that most Zope users are either not designers or are so
 filled with awe over its power that they forget to put effort into beauty.
 :-)  I think Zope lends itself more to the programmer and content provider
 types, and leaves the designer with nothing special to desire.  I don't
say
 that in a bad way, but Zope isn't a design tool, so designers have no
 special interest in learning to use it.  As Zope makes its way into more
 businesses with design teams, pretty design will make its way into more
Zope
 sites.

Problem is am not sure Zopie will make its way into more businesses wiht
design teams if it is such a pain in the $# to get sites sketched out.

A really valuable  feature which Zope could offer is Site-Sketching
You do the back of napkin whiteboard 'design' of the main site architecture
hierharchy functioning. Now you need to map it out in 'dummy' mode so
everyone can get to work playing with it and working on the bits they are
all best at.
You know you are going to make changes and so you want to benfit from object
abstraction from the get go
You know in house team and design [visual + code] will force changes not to
mention clients..
Then start throwing database at it - look and feel vs. satabase search
menchaisms etc. This can be expensive time consumign stuff.. things people
need to apply samrt reusable components to.. but which also allow them to
get down very fingraoned and adjust = zope
I think there is a big demand for this kind of up and running toolset.

A zope folder full images or navigation widgets or search form elements are
the type of things yu want to do a single copy paste or import on.

I am a designer who has a special interest in learning to use.
I do not see many other tools with this potential, but in its present state
and my present programming skills, I am still a little short of being able
to take Zope where I see it can go on my own. I hope this changes soon..


 My understanding is that DC has been putting so much of their resources
into
 the Zope core, much needed documentation, and probably their consulting
 business, that their own Web site has been left with a lower priority.  I
 don't fault them for that.  I think they've done a great job at
 prioritizing.

Granted.
The price is right and there is some hairy stuff under the hood.
I just hope DC can step back a bit more from time to time to see where they
fit in from other perspectives also.
I realize their income comes from consulting.
They could apply their expertise [or others] to package off useful stuff for
a reasonable price.
Zope products coudl be very cost efefctive all around - those with teh time
and skills can develope their own.
Perhaos you are right adn it is still a little early yet.. maybe next year..

  And if you select yes you will get 'index_html' and 'acl_users'
included..
  THIS is the entry point I am talking about
  The 'Add a Folder' page needs to offer more so that it can default to
the
  immediate bones of a useful site, methods and links. The irony to

 I think the "bones of a useful site" belong in a different object than a
 Folder, though I agree that specialized products/objects for canned sites
 would be a nice addition to the Zope products list, whether from DC or the
 community.

Yes.  How about :
- 'Add Bones object'
- 'Add Navigation Object'
- Add Styles object'
- 'Add Report Object'
- 'Add WebSite Object'

Any one else interested to go further with this?

kind regards
- Jason


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

2000-09-11 Thread Kelvin Cheong


Hi all!

Now that I have managed to display Chinese characters, i'm stuck with my
next problem. How do i input Chinese characters into Zope?

Thanx in advance to all of ya!

Later,
amoebia

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 )




Re: [Zope] newbie dtml-if/expr ?

2000-09-11 Thread Tim Cook

Daniel Chudnov wrote:
 
 (zope-2.1.6, rh6-linux)
 
 How come I can't do this:
 
   dtml-if "var1 and var2"
dtml-call somefuncNeedingVar1AndVar2
   /dtml-if
 

Your problem is probably related to namespaces and aquisition.
Aquisition is best monster you'll ever meet. s

What you're calling can't find var1  var2. You could use the
-with tag in most cases (see DMTL Guide  ZQR).

I found reading these helped...  
http://www.zope.org/Members/Hoekstra/ChangingZopeContexts
http://www.zope.org/Documentation/How-To/AdvancedDTML
http://www.zope.org/Members/chrisw/showaq
http://www.zope.org/Members/cybertad/how_to/working_with_tree

...then I read almost the entire mailing list archives, then all
of the HowTos
Just kidding, it's not that bad. 

Now you're ready for:
http://www.zope.org/Members/jim/Info/IPC8/AcquisitionAlgebra/siframes.htm
(but I bet the talk was better than just the slides g).

HTH,
-- Tim Cook --
Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
* Specializing in Open Source Business Systems *
FreePM Project Coordinator http://www.freepm.org
OSHCA Founding 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] Using Chinese Characters

2000-09-11 Thread Kelvin Cheong


Christian, 

Thanks for the tip. Your help is much appreciated. Further to your reply, I
would like to ask what the differences of UTF-8 are compared to Big5 Code.
Apparently (from my research on Big5) it is the most commonly used unicode
for chinese characters. Kindly advice.


Thank you once again.


Regards,
amoebia.


Christian Wittern writes:

 Hi there,
 
 I am using Zope successfully with Chinese (Traditional) on Windows. For
 forward compatibility, I am storing it as UTF-8, which is one storage format
 for Unicode/ISO 10646 (aka as UCS). It used to work nice until Zope 2.2,
 where some of the display got mangled. I submitted a patch to the Collector
 to fix this problem some weeks ago, so hopefully this will go away in the
 future. Anothere thing is being able to use ZCatalog: I privately patched
 the splitter program, which is used to split strings into words. I am not
 yet satisfied with the solution, that's why I did not go public with it.
 It's also only tested on my windows box.
 
 All the best,
 
 Christian
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
  Of Tino Wildenhain
  Sent: Friday, September 08, 2000 3:18 AM
  To: Kelvin Cheong
  Cc: [EMAIL PROTECTED]
  Subject: Re: [Zope] Using Chinese Characters
 
 
  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 )
 
 
 
 

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 )




Re: [Zope] locale and Splitter.c on FreeBSD - where is the bug ?

2000-09-11 Thread Aleksander Salwa


On Sun, 10 Sep 2000, Dieter Maurer wrote:

 Put it into the collector (URL:http://classic.zope.org/Collector).
   
   8080

Anyway, Collector doesn't work :(  - "Temporarily Unavailable".

[EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/


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




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

2000-09-11 Thread Ron Bickers


 What Manila has done is to provide some reasonable default templates for
 getting useful site development work done 'out of the box' - they have
 provided a structure template, and well defined access to changing the
 obvious things people want to change.

I see.  Having higher level drop-in Web sites, IMO, is a job for add-on Zope
products that could be created by DC or the community to meet various needs
(as in Squishdot like projects).  As the Zope community grows, I have no
doubt that more add-on products for "Web sites in a can" will pop up.

  to do so.  Zope (in my experience) does nothing to limit the ability to
 make
  a site attractive, but it does do buckets for increasing manageability.

 Yes. I quite agree..But why are there no attractive Zope sites?

I can only guess that most Zope users are either not designers or are so
filled with awe over its power that they forget to put effort into beauty.
:-)  I think Zope lends itself more to the programmer and content provider
types, and leaves the designer with nothing special to desire.  I don't say
that in a bad way, but Zope isn't a design tool, so designers have no
special interest in learning to use it.  As Zope makes its way into more
businesses with design teams, pretty design will make its way into more Zope
sites.

  world examples of Zope's power.  Using any of the already available
  calendar-like products for Zope, DC could easily create a calendar to
 browse
  through stuff.  Again, it's not a limitation of Zope, the
 developers just
  didn't do it.

 Yes and I am continuously curious why they did not?

My understanding is that DC has been putting so much of their resources into
the Zope core, much needed documentation, and probably their consulting
business, that their own Web site has been left with a lower priority.  I
don't fault them for that.  I think they've done a great job at
prioritizing.

 And if you select yes you will get 'index_html' and 'acl_users' included..
 THIS is the entry point I am talking about
 The 'Add a Folder' page needs to offer more so that it can default to the
 immediate bones of a useful site, methods and links. The irony to

I think the "bones of a useful site" belong in a different object than a
Folder, though I agree that specialized products/objects for canned sites
would be a nice addition to the Zope products list, whether from DC or the
community.

___

Ron Bickers
Logic Etc, Inc.
[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] Looking for Zope vs. Others at-a-glance comparison

2000-09-11 Thread JTC Murphy


Oooh, now there's an interesting thought...

One would like to - but there often aren't enough hours in the day.
Actually one is frequently lucky to even get the option to try to pick
something at all, never mind doing the research - some combination of
"we've already got it" or "its "free" (it never is)" or "its got
microsoft written on the outside of the box" or "we already know insert
name of something relevant" tends to get in the way.

Sometimes you get lucky, and in the meantime you take an interest in
the stuff going on around you so that you can make a bid for use of a
better mousetrap when the opportunity arises...

Have fun, Murph

 Nils Kassube [EMAIL PROTECTED] 10/09/00 14:44:50 

I'm only an innocent Computer Science student who still thinks
that in Real Life (tm) outside university you research competing
solutions before selecting a product :-)



___
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 should be :-)

2000-09-11 Thread Chris Withers

[EMAIL PROTECTED] wrote:
 use at work = I will recommeend using it and do the work of setting it up
 on an NT  (ugh) box and claim it can be relied upon for a medium level (I
 don't know how much really) of traffic.

Yeah, it should be... let me know if it isn't and I'll fix it ;-)

cheers,

Chris

___
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] Import Zope Security

2000-09-11 Thread Chris Withers

Martijn Pieters wrote:
 No it isn't. Web access to class instances is handled by permissions.
 Unpickling will cause class instantiation in the python process, where you
 have no control over what get's created. 

Surely you could pipe this process through the Zope security process?

 You can create a custom
 unpickling class, but one that would handle the Zope range of objects
 would be, in Jim's words "tricky".

...then again, maybe not :-(

*sigh*

Chris :-)

___
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] Emacs and dtml-mode +/-

2000-09-11 Thread Alastair Burt

"Nestor A. Diaz L." [EMAIL PROTECTED] writes:

 I have installed the dtml-mode that provided
 http://www.zope.org/Members/alburt under Debian potato, emacs20 and
 psgml it work so nice but i have a little question, and i don't know if it
 is possible to resolve, consider the following html code:
 
 !-- -*- dtml -*- --
 html
   head
 title/title
   /head
   body
 select
   !-- one of (OPTION OPTGROUP) --
   dtml-with
   !-- I can't insert tag option here --
   /dtml-with
 
 /select
 dtml-var
   /body
 /html
 
 Check out that i can not insert a option tag inside the dtml-with tag,
 ok what i want to know (if there is any dtd guru here) is: there is
 posible to define a rule in this dtd to see that the dtml-with is inside
 a select and it shows as a correct element the option tag?
 Another question?

Yes, although I wrote the hacked DTD for the mode, I am no DTD guru.
Maybe, there is a way to do it with a better DTD.

There was once a rumour that there was going to be an XML compliant
specification of DTML.  This would presumably make the problem go away.  It
is a long time since I heard any more about this.  Does anyone know what
became of the idea?
 
 Thats anybody know about a "html indenter" i mean something like the
 program indent avaialable under Linux ? for html? i know emacs indent but
 i have to press the tab on each line, or i'm missing some macro?
 
 It would be nice that this program can run under zope to show the html
 code generated beautifully for debug reasons, dont you think so? and
 desactivate it under a production environment.

I use HTML Tidy from Dave Ragget [1].  I have, of course, got Emacs code to
tidy up and indent HTML code in the buffer currently being edited.  Ii is
only a few lines but I will make it available if there is interest.

I also had wondered whether it would be worthwhile binding HTML Tidy into
Zope. The way dynamic web sites generate HTML code out of bits, often
leaves the resulting HTML code illegible and, not incidentally,
syntactically incorrect.

--- Alastair

Footnotes: 
[1]  http://www.w3.org/People/Raggett/tidy/



___
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] ZServer Statistics

2000-09-11 Thread J. Atwood

 Is there way to determine how many (and which)pages
 ZServer serves? I am running ZServer as my primary
 
 Have a look into
 
 /path_to_your_zope/var/Z2.log

And run a log analyzer like Analog (http://www.analog.cx) on it.

J


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




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

2000-09-11 Thread albert boulanger




   Exactly.
   My concern is to get the right kind of discussion going because it is going
   to need some differnt kinds of minds to work together.

This meshes with my thinking recently. I think many in the Zope
community are "early-adopters" kind of people -- willing to put up
with spending time to know the ins and outs of DTML or python
programmers who would do most in python. A python programmer or early
adopter does not a typical web design team make. Personally. I like the
notion of a DTML an that you can do a little business logic there if
you choose to. This issue with DTML in my mind is that its
syntax/semantics design throws people for loops that can waste their
time for sometimes days. Early adopters will go through this trial by
fire. I did and now on the other side I know the gotchas.  Early
adopters are a special breed of people that will give a new product a
ring of success but this pool saturates easily, leading a new company
to the chasm.

To cross the chasm, and reach a broader audience, this trial by fire
phase of becoming a productive Zope user has to be reduced -- in
addition to addressing other productivity parts of the bigger product
pie mentioned in prior messages.

If you are interested in understanding the business of Crossing the
Chasm, I would recommend a book by the same name.  I think the Zope
story is still unfolding on how an open source product will cross the
chasm.

Regards,
Albert Boulanger
[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 property sheets and lists of values

2000-09-11 Thread Brian and JoAnn Burton

Is there a way to have 2 property sheets in a ZClass where one property in
one sheet uses a property in another sheet to fill out its list?  This way,
I can manage who can control what is in the list.  How do I refer to the
property that contains the list?  I tried things like
../othersheet/listproperty but that did not work.


___
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] Abstract ZClasses and containing classes

2000-09-11 Thread Brian and JoAnn Burton

Scenario: here is a hierarchy of ZClasses.


AbsDogPoundOrganization - abstract class
ForProfitOrganization - subclass of AbsDogPoundOrganization
NonProfitOrganization - subclass of AbsDogPoundOrganization


Now I want AbsDogPoundOrganization to contain the class of Location (not
an abstract class).  First, what is the correct way to define an abstract
ZClass.  Do you make one that has no constructors?  The problem I see is
that then the subclasses of AbsDogPoundOrganization don't allow me to create
instances of Location within them.









___
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] The Zope (ZopeDev) service terminated with service-specific error1. 1.

2000-09-11 Thread Jean Jordaan

Hi all

For the record, I'm getting this in the NT Event Log:

  The Zope (ZopeDev) service terminated with service-specific 
  error 1. 

No Zope. Let's see if I can get it running again .. 

-- 
Jean Jordaan   --technical writer--
Mosaic Software--Zope 2.1.6 on WinNT and W2K

___
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] Manager Authentication Failure: How to debug?

2000-09-11 Thread Kimmo Kansanen

Hi all,

I just installed the latest Zope available for Debian (2.2.1) on Potato.
However, after logging in as superuser and creating the manager account,
I cannot log in with that account. The logs produced (that I found) only
indicate the ZServer getting the http request, but nothing on the
authentication failure.

How should I proceed debugging the problem?

Kimmo Kansanen
-- 
Kimmo Kansanen   
Private: [EMAIL PROTECTED]http://www.iki.fi/cosmo 08 - 5208 611
 Work: [EMAIL PROTECTED]http://ee.oulu.fi/~kmo  08 - 553 2833
  Banana: 040 - 5329 386   Finger [EMAIL PROTECTED] for PGP public key.
* Frankly, my dear, I don't give a paska-kraasukka *

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




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

2000-09-11 Thread Jason Cunliffe

Exactly.
My concern is to get the right kind of discussion going because it is
going
to need some differnt kinds of minds to work together.

 This meshes with my thinking recently. I think many in the Zope
 community are "early-adopters" kind of people -- willing to put up
 with spending time to know the ins and outs of DTML or python
 programmers who would do most in python. A python programmer or early
 adopter does not a typical web design team make. Personally. I like the
 notion of a DTML an that you can do a little business logic there if
 you choose to. This issue with DTML in my mind is that its
 syntax/semantics design throws people for loops that can waste their
 time for sometimes days. Early adopters will go through this trial by
 fire. I did and now on the other side I know the gotchas.  Early
 adopters are a special breed of people that will give a new product a
 ring of success but this pool saturates easily, leading a new company
 to the chasm.


Well put.

 To cross the chasm, and reach a broader audience, this trial by fire
 phase of becoming a productive Zope user has to be reduced -- in
 addition to addressing other productivity parts of the bigger product
 pie mentioned in prior messages.

 If you are interested in understanding the business of Crossing the
 Chasm, I would recommend a book by the same name.  I think the Zope
 story is still unfolding on how an open source product will cross the
 chasm.

 Regards,
 Albert Boulanger
 [EMAIL PROTECTED]

Thanks for this. It looks interesting. Google came up with:
http://www.testing.com/writings/reviews/moore-chasm.html
http://www.mit.edu/people/wdc/chasm.html

and a lot of other funny stuff

I recommend Don Norman's "The Invisble Computer".
It belongs on teh same shelf next to 'Crossing the Chasm'.

regards
- JASon


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




[Zope] Re: [Zope-dev] Size of Data.fs - and crypto.

2000-09-11 Thread Marcin Kasperski

 
 Another thing.  Have anyone tried to encrypt all data inside the
 Data.fs file?  I mean, encrypted the data so that not even root can
 access it, only if you have the right passphrase (or whatever) in the
 management interface are you allowed access to the data.
 

You got some suggestions to rewrite pickling routines.

I have another simple idea: what about leaving zope intact and putting
Data.fs on cryptographic filesystem? There are some implementations
freely available within Linux kernel...

By the way: whichever method to encrypt data you would use, you will
face the same problem:
- either you must manually enter some password after each system or zope
startup 
- or you must put the password (key,seed,.. whatever) somewhere on the
filesystem - where it can be easily read at least by the root.

-- Serwis dla programistw, kcik mieszkaniowy: http://www.mk.w.pl
|
| You have the right to see progress in a running system, proven to work
| by passing repeatable tests that you specify. (Ken Beck's Second  
| Customer Right)

___
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] Copy/Paste DTML method raises exception does not support this operation

2000-09-11 Thread Brad Clements

I think my Zodb is messed up, I'm running Zope 2.2.1 (binary release, python 1.5.2, 
win32-x86) 

I copied a DTML Method, and tried to paste it into the same folder. I get 
this exception:

The object ReportBanner does not support this operation 

Traceback (innermost last):
  File E:\Zope\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File E:\Zope\lib\python\ZPublisher\Publish.py, line 187, in publish
  File E:\Zope\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook
(Object: Traversable)
  File E:\Zope\lib\python\ZPublisher\Publish.py, line 171, in publish
  File e:\Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: manage_pasteObjects)
  File E:\Zope\lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: manage_pasteObjects)
  File E:\Zope\lib\python\OFS\CopySupport.py, line 203, in manage_pasteObjects
(Object: Traversable)
  File E:\Zope\lib\python\OFS\CopySupport.py, line 406, in _verifyObjectPaste
(Object: Traversable)
Copy Error: (see above)


The DTML Method was un-owned, I took ownership and retried 
copy/paste, get the same error again.

I can't paste it into a different folder either.

How can I figure out what's happening? I'm worried that my ZODB has 
become corrupted. I'm logged in as manager.



Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

___
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] Stranger than Property

2000-09-11 Thread Sven Hohage

Hallo,
I've got a very strange error.
I'm working with external methods and folder proprties. The methods are
iterating over properties
and adding or deleting items.
Until friday everything was fine.Now I got this error when I try to view
the properties.
I'm not understanding why there is a mistake only by viewing the
properties.

-
Error Type: TypeError
Error Value: len() of unsized object



Traceback (innermost last):
  File C:\Zope\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\Zope\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\Zope\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File C:\Zope\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: manage_propertiesForm)
  File C:\Zope\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: manage_propertiesForm)
  File C:\Zope\lib\python\App\special_dtml.py, line 121, in __call__
(Object: manage_propertiesForm)
(Info: C:\Zope\lib\python\OFS/properties.dtml)
  File C:\Zope\lib\python\DocumentTemplate\DT_String.py, line 502, in
__call__
(Object: manage_propertiesForm)
  File C:\Zope\lib\python\DocumentTemplate\DT_In.py, line 691, in
renderwob
(Object: propertyMap)
  File C:\Zope\lib\python\DocumentTemplate\DT_In.py, line 657, in
renderwob
(Object: getProperty(id))
TypeError: (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] Looking for Zope vs. Others at-a-glance comparison

2000-09-11 Thread J. Atwood

Sorry.. the second link should have been...

http://www.zope.org/Members/BwanaZulia/zope.html

J

 From: J. Atwood [EMAIL PROTECTED]
 Date: Mon, 11 Sep 2000 11:44:33 -0400
 To: Jason Cunliffe [EMAIL PROTECTED]
 Subject: Re: [Zope] Looking for Zope vs. Others at-a-glance comparison
 
 Try 
 
 http://www.camworld.com/cms/
 
 And more at
 
 http://www.camworld.com/misc/cms.html
 
 Cheers,
 J
 
 From: "Jason Cunliffe" [EMAIL PROTECTED]
 Date: Sat, 9 Sep 2000 09:17:43 -0400
 To: [EMAIL PROTECTED]
 Subject: [Zope] Looking for Zope vs. Others at-a-glance comparison
 
 Hello
 
 I need to present the arguments for why we haev chosen Zope vs. Others.
 
 Does anyone know of a clear at-a-glance table or anything with the main
 contenders, features, price, licensing etc.
 
 Thanks
 - Jason
 
 Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director
 
 
 
 ___
 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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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

2000-09-11 Thread J. Atwood

Try 

http://www.camworld.com/cms/

And more at

http://www.camworld.com/misc/cms.html

Cheers,
J

 From: "Jason Cunliffe" [EMAIL PROTECTED]
 Date: Sat, 9 Sep 2000 09:17:43 -0400
 To: [EMAIL PROTECTED]
 Subject: [Zope] Looking for Zope vs. Others at-a-glance comparison
 
 Hello
 
 I need to present the arguments for why we haev chosen Zope vs. Others.
 
 Does anyone know of a clear at-a-glance table or anything with the main
 contenders, features, price, licensing etc.
 
 Thanks
 - Jason
 
 Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director
 
 
 
 ___
 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 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] How to Pass values to a DTML method ??

2000-09-11 Thread Stuart Foster

I have a DTML method that is called from a document. I need to pass a value
to it like a parameter would be passed to a function.

dtml-var some_method(param=value)

Thanks


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

2000-09-11 Thread Toby Dickenson

On Mon, 11 Sep 2000 06:03:42 GMT, "Kelvin Cheong" [EMAIL PROTECTED]
wrote:

I have some patches to Zope at

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

that let you use Unicode strings in Zope as easily as 8-bit strings.
You will need python 2.0 for its unicode support - this is currently
in beta, but very stable.

Now that I have managed to display Chinese characters, i'm stuck with my
next problem. How do i input Chinese characters into Zope?

Thanx in advance to all of ya!

Later,
amoebia

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 )


Toby Dickenson
[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] Oedipus / Zope / python / product / XML ++

2000-09-11 Thread Jørgen Skogstad

Hi there .. 

I've been looking into something this weekend. I need somehting
that can handle my link database etc. and list them through Zope
on a regular basis.

I was looking at Oedipus which can create "semi-xml" DMOZ like
directories which would suffice for v0.1b of my product. I was
thinking of using Oedipus and store them in the database there
and generate a new xml-like-structure every day through some
cron script.

.. what I was hoping for is to use the LocalFS product for Zope
and some kind of python "product" (which I need to make to fit
into Zope) which can parse this .. sort of like the *.cgi 
script which followed with the Oedipus installation.

By doing this; I can generate DMOZ/Link databases that show 
information about the site; when it was checked last, updated
etc. etc.

My questions are as follows;
* How do I generate a package of some pythong scripts?
* Are there any better ways of parsing and putting this 
  xml-like file under "Zope control" .. 

* Are there any XML products for Zope that can get a file
  from an url .. and parse this with some python scripts to
  generate a yahoo type listing?

Would apriciate any input!

-- 


Med vennlig hilsen,
Jørgen Skogstad


  /\System Specialist
 \\ \   
\ \\ /  Sun Microsystems AS
   / \/ / / Gjerdrums vei 12  
  / /   \//\N-0486 Oslo, NORWAY  
  \//\   / /  
   / / /\ / Phone:+ 47 22 02 39 00 
/ \\ \  Cellular: + 47 92 41 30 23
 \ \\   Fax:  + 47 22 02 39 99  
  \/EMail:[EMAIL PROTECTED]
Web:  www.sun.no  

BTW; Opinions formed by myself in informal mailings are 
 mine and not of my employer.

___
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 login window: how to change the 'Zope' realm/resource??

2000-09-11 Thread Gilles Lavaux

Hello,

Question about Zope 2.2.1:
- I have a 'administration' folder which contains administration methods and
is restricted to the 'project_admin'  role.
- The user 'toto' has the role 'project_admin'.

  When I access this folder, the login window prompt for a 'Zope' resource
(IE4, Opera4..).
  I want to replace this 'Zope' by 'project_admin', or whatever role needed
by the folder.

Any idee??



Gilles Lavaux


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




Re: [Zope] newbie dtml-if/expr ?

2000-09-11 Thread Daniel Chudnov



On Mon, 11 Sep 2000, Tim Cook wrote:

  Your problem is probably related to namespaces and aquisition.
  Aquisition is best monster you'll ever meet. s

snip/
  
  FreePM Project Coordinator http://www.freepm.org
  OSHCA Founding Supporter http://www.oshca.org


...hey thanks for the reading list.  I will go through them all.  Darn
zope docs are getting worse as I learn more. :)

Btw I've seen the projects you're working on before as I've done some work
in medical data standards (hl7, corbamed, etc.) and such in a past life
and work towards more free software in the present.  How's the openhealth
effort going?  Have you had much direct contact with the O'Reilly folks
who are thinking along the same lines?


  Regards,

  -Dan


Daniel Chudnov
Systems Architect
Cushing/Whitney Medical Library
Yale University School of Medicine
(203) 785-4347


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




Re: [Zope] How to Pass values to a DTML method ??

2000-09-11 Thread Rik Hoekstra




 I have a DTML method that is called from a document. I need to pass a
value
 to it like a parameter would be passed to a function.

 dtml-var some_method(param=value)


try something like:

dtml-var "method_name(_.None, _, param=value)"

or:

dtml-var "method_name(_.None, _, arg1=value1, arg2=value2)"

for a longer expose see the faq:
http://zdp.zope.org/projects/zfaq/faq/DTML/955111628

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 )




Re: [Zope] Manager Authentication Failure: How to debug?

2000-09-11 Thread Martijn Pieters

On Mon, Sep 11, 2000 at 04:44:24PM +0300, Kimmo Kansanen wrote:
 I just installed the latest Zope available for Debian (2.2.1) on Potato.
 However, after logging in as superuser and creating the manager account,
 I cannot log in with that account. The logs produced (that I found) only
 indicate the ZServer getting the http request, but nothing on the
 authentication failure.

There are generally two things that could have gone wrong here:

- You didn't specify the Manager Role for the User. The list of Roles on
  the User manage page is _not_ the assigned list, but the possible list
  of Roles. Select the Manager Role from that list (the Role name will
  show in a contrasting colour).

- You filled something in the domains field, but you don't log in from a
  machine that matches any of the domain masks you specified or you used
  the wrong format. Leave empty the first time.

Let us know if you have any more problems.

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




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

2000-09-11 Thread Bill Anderson

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

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

...

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

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

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

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

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

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

See the ActiveImage (?) product that does this.

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

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

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

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

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

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

2000-09-11 Thread Bill Anderson

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

What is a 'Bones' Object??

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

 - Add Styles object'

ZStylesheet

 - 'Add Report Object'

ListMate,MetaPublisher,Add Search Interface

 - 'Add WebSite Object'

Such as Squishdot, ZopePTK ...



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

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




Re: [Zope] How to Pass values to a DTML method ??

2000-09-11 Thread Philipp Auersperg

enclose the expression in quotes and you're happy:

dtml-var "some_method(param=value)"

phil

*** REPLY SEPARATOR  ***

On 11.09.2000 at 09:01 Stuart Foster wrote:

I have a DTML method that is called from a document. I need to pass a value
to it like a parameter would be passed to a function.

dtml-var some_method(param=value)

Thanks


___
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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] How to Pass values to a DTML method ??

2000-09-11 Thread Daniel Rusch

dtml-var "some_method(param='Test')"

'Test' is single quoted if it is a string, if it is a variable then
don't quote it. Notice also the double quotes
"some_method(param='Test')"

Dan

Stuart Foster wrote:
 
 I have a DTML method that is called from a document. I need to pass a value
 to it like a parameter would be passed to a function.
 
 dtml-var some_method(param=value)
 
 Thanks
 
 ___
 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 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] Uh-oh, my Zope site is going down the toilet! (NameError in DT_Util.py)

2000-09-11 Thread Brad Clements

Earlier I reported a problem with copy/pasting a DTML method.

Now I'm getting a NameError exception in DT_Util.py, line 337 (in eval). This 
appears to be either an acquisition problem, a security problem or a 
combiniation in conjunction with LoginManager.

(the traceback is at the bottom of this message)

Zope version: Zope 2.2.1 (binary release, python 1.5.2, win32-x86) 
LoginManager-0-8-7a1


Here's my layout 

/

  Strader (folder)
   DateRange  (External Method)
   Outbound  (folder)
  InTransit  (DTML Doc)
  ReportBanner (Dtml Method)
  Reports (DTML Doc)
  ReportForm (DTML Doc)
   acl_users (LoginManager)
acl_users (user folder)


ReportBanner and ReportForm both use dtml-var "DateRange(value)[0]"

ReportBanner is called from InTransit, and it works. It works when authenticated 
via LoginManager or by the root acl_users folder 

When ReportForm is called from Reports, I get a NameError exception if 
authenticated solely via LoginManager. However when logged in on another 
machine, authenticated via Loginmanager, it works. I suspect that copy of the 
browser is also sending Basic Auth credentials, but I can't be sure.

Earlier today I reported that I couldn't copy/paste ReportBanner. It seems that 
this object, and ReportForm are owned by a user in LoginManager, though I 
don't know how that happened.. cookie exchange probably.

I'm wondering if there's something strange happening with LoginManager, 
ownership, acquisition and so on. It seems like I can't take ownership of these 
objects either, and the "make ownership implicit" button doesn't seem to have 
any effect.


So anyway, I'd expect an attributeError or a UnAuthenticated error, but 
NameError is unexpected and looks very suspicious to me. My customer has 
spent a *lot* of money on this project so far, and I'm worried that I have some 
strange bug running through the system now due to these  two unexpected 
problems (copy/paste and now nameerror) I can't think of a workaround for 
NameError.

Thoughts?

Traceback (innermost last):
 File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 222, in 
publish_module
 File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 187, in publish
 File E:\ZOPEST~1\lib\python\Zope\__init__.py, line 221, in 
zpublisher_exception_hook
   (Object: Traversable)
 File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 171, in publish
 File E:\ZOPEST~1\lib\python\ZPublisher\mapply.py, line 160, in mapply
   (Object: Reports)
 File E:\ZOPEST~1\lib\python\ZPublisher\Publish.py, line 112, in 
call_object
   (Object: Reports)
 File E:\ZOPEST~1\lib\python\OFS\DTMLDocument.py, line 177, in __call__
   (Object: Reports)
 File E:\ZOPEST~1\lib\python\DocumentTemplate\DT_String.py, line 528, in 
__call__
   (Object: Reports)
 File E:\ZOPEST~1\lib\python\OFS\DTMLDocument.py, line 173, in __call__
   (Object: ReportForm)
 File E:\ZOPEST~1\lib\python\DocumentTemplate\DT_String.py, line 528, in 
__call__
   (Object: ReportForm)
 File E:\ZOPEST~1\lib\python\DocumentTemplate\DT_In.py, line 692, in 
renderwob
   (Object: _[rangetablename])
 File E:\ZOPEST~1\lib\python\DocumentTemplate\DT_Var.py, line 278, in 
render
   (Object: DateRange(value)[0])
 File E:\ZOPEST~1\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval
   (Object: DateRange(value)[0])
   (Info: DateRange)
 File string, line 0, in ?
   NameError: DateRange



Brad Clements,[EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com  (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com   AOL-IM: BKClements

___
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] ZServer Statistics

2000-09-11 Thread rgines


 Is there way to determine how many (and which)pages
 ZServer serves? I am running ZServer as my primary

 Have a look into

 /path_to_your_zope/var/Z2.log

And run a log analyzer like Analog (http://www.analog.cx) on it.

Analog is a great tool and I have used it under other Web Servers.

I wonder if anyone has a working config file which can read the Zope
logs and would be willing to share with everyone.

I'd be happy to write one, but being realistic since it has been on my
to-do list for six months  ( I believe that it is item number 351 ;-$ ) I
would
be fooling myself to think that I could do it in a reasonable time for
everyone.





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




Re: [Zope] Best way to handle SQL update with variable number of fields?

2000-09-11 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  The problem - I would like to populate the form with the existing 
  values and then allow the user to change the ones they want to. Some 
  of the fields in the database are empty and it will always be that 
  way. The length of the update statement will change.
I do not understand, why you would want a varying length update.

If you populated the form with the current values and
the user changes some of them, then the form contains the
current values with respect to all fields it shows.
Thus, you can update them in a single fixed length update.

In cases, when I do require (or want) variable length updates
(or inserts) I use code like the following
(the code uses a naming scheme to select form variables that
should update the database: variables with names ending in "_"):

DTML:
dtml-let update_list="[]"
  dtml-in "REQUEST.form.items()" !-- or some other sequence --
dtml-let name=sequence-key value=sequence-item
  dtml-if "name[-1:] == '_'" !-- or a different test --
dtml-call "update_dict.append((name,value))
  /dtml-if
/dtml-let
  /dtml-in
  dtml-call "SQLupdate(items=update_dict)"
/dtml-let

SQLupdate:
Arguments:  items
Template:
dtml-unless itemsdtml-return "0"/dtml-unless
update TABLE set
  dtml-in items
dtml-var sequence-key = dtml-sqlvar sequence-item type=string
  !-- this works only for string fields
   for other type, you either may branch according to
   type or use an external method that presents
   the value in a correct way based on its type --
dtml-unless sequence-end, /dtml-unless
  /dtml-in


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] ZClasses - Base classes

2000-09-11 Thread Dieter Maurer

Philipp Auersperg writes:
  I know that one cannot change the base classes of a ZClass after it has een=
   created, but my question:
  
  How can I just find out / enmerate the base classes of a ZClass?
You see mangled names of your base classes in the
ZClass' "Basic" Tab.

When you look at the DTML source generating this tab, you
can find out, how to get this information programmatically.


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

2000-09-11 Thread Chris McDonough

test, please ignore


___
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] ZServer Statistics

2000-09-11 Thread J. Atwood

I have Analog running on a bunch of Zope servers (some behind Apache some
not) here are the only lines that make a difference.

LOGFILE /usr/local/zope/var/Z2.log

DIRSUFFIX index_html

I know that seems simple but that is all the is custom in my analog.cfg that
I took from the examples/big.cfg and made those two changes to (and a lot of
others that are site specific).

The best thing to do is get down and dirty with the fairly-good
documentation.

J


 From: [EMAIL PROTECTED]
 Date: Mon, 11 Sep 2000 14:54:26 -0500
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope] ZServer Statistics
 
 
 Is there way to determine how many (and which)pages
 ZServer serves? I am running ZServer as my primary
 
 Have a look into
 
 /path_to_your_zope/var/Z2.log
 
 And run a log analyzer like Analog (http://www.analog.cx) on it.
 
 Analog is a great tool and I have used it under other Web Servers.
 
 I wonder if anyone has a working config file which can read the Zope
 logs and would be willing to share with everyone.
 
 I'd be happy to write one, but being realistic since it has been on my
 to-do list for six months  ( I believe that it is item number 351 ;-$ ) I
 would
 be fooling myself to think that I could do it in a reasonable time for
 everyone.
 
 
 
 
 
 ___
 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 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] ZGDChart/GDChart on Linux

2000-09-11 Thread Hung Jung Lu

Hmmm... I don't remember anymore how to build GDChart on Linux. To simplify 
the situation, let us say that we want to focus on GDChart alone, not 
ZGDChart.

I downloaded from

   http://athani.pair.com/msteed/software/gdchart/index.html

and did the "make -f makepy.linux" thing. But when I opened a Python 
interpreter, it says:

  import gdchart
  Traceback (innermost last):
File "stdin", line 1, in ?
  ImportError: ./gdchart.so: undefined symbol: gdImagePng

I have suceeded (don't remember how) to get passed this error, but then I 
get something similar for gdImageJpeg.

Has anyone succeeded in installing gdchart module on Linux?
(I thought I was successful once!)

regards,

Hung Jung

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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] manage_afterAdd - need enlightenment

2000-09-11 Thread Aleksander Salwa


I decided to convert my ZClasses to CatalogAware. I added CatalogAware as
first base class.
If I add dtml-call "index_object()" in my MyZClass_add method, then
new object is automatically indexed as expected.
But in CatalogAwareness.py I see method manage_afterAdd, which does the
same. Is this method called automatically (probably not), or have I to
call it - where, what arguments ? I tried to call it after call to _add
method - I got strange error:
Error Type:  AttributeError
Error Value: _u
This ZClass base classes are CatalogAware and DTMLDocument.
Without mentioned call to "index_object", object is not indexed.

I need some enlightenment on manage_afterAdd - how (and why) to use it,
and CatalogAware in general :)

Of course, I can put "index_object()" in every _add method, but probably
it's not the right way of doing things.

[EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/


___
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] locale and Splitter.c on FreeBSD - where is the bug ?

2000-09-11 Thread Aleksander Salwa


On Sun, 10 Sep 2000, Dieter Maurer wrote:

 Nevertheless, you patch to "splitter" should be welcome
 as it solves a usability problem on FreeBSD systems.
 Put it into the collector (URL:http://classic.zope.org/Collector).

Done.

 You may file a problem report to the FreeBSD maintainers in
 parallel.

Before sending it to the FreeBSD maintainers:
Are here any users of newer releases of FreeBSD ? (I have tested it on
FreeBSD 3.5) If so, could you test the behaviour of function isalpha with
locales ? Does it process properly negative values for national
characters ?

[EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/





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




Re: [Zope] newbie dtml-if/expr ?

2000-09-11 Thread Dieter Maurer

Daniel Chudnov writes:
dtml-if "var1 and var2"
 dtml-call somefuncNeedingVar1AndVar2
/dtml-if
dtml-if var is equivalent to dtml-if "_.has_key('var') and var".

Thus, for dtml-if var1 and var2, you should use:

dtml-if "(_.has_key('var1') and var1) and (_.has_key('var2') and var2)"


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] How to Pass values to a DTML method ??

2000-09-11 Thread Dieter Maurer

Stuart Foster writes:
  I have a DTML method that is called from a document. I need to pass a value
  to it like a parameter would be passed to a function.
  
  dtml-var some_method(param=value)
That does not look too bad, but you forgot the "..." around the call.

You should include two positional parameters as well:

dtml-var "some_method(_.None,_,param=value)"

Otherwise, you cut the namespace propagation.


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] 'showREQUEST' or 'show_REQUEST' ?

2000-09-11 Thread Steve Alexander

Chris Withers wrote:

 Jason Cunliffe wrote:
  PS. Be warned: 8-()
   if you try put the code above in a DTML methods named 'showREQUEST' or
  'show_REQUEST' it will not work = 'Id already in use'
 
 That's a little weird...
 
 Can anyone shed any light on this?

I get an error when I try to add a DTML Method with REQUEST anywhere in 
the id.

Actually,  the method gets added, but I cannot edit it.

I haven't found out why yet.

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


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




Re: [Zope] 'showREQUEST' or 'show_REQUEST' ?

2000-09-11 Thread Evan Simpson

From: Steve Alexander [EMAIL PROTECTED]
 I get an error when I try to add a DTML Method with REQUEST anywhere in
 the id.

This is fruit of a needlessly broad restriction on REQUEST traversal, and is
fixed in CVS.

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] My Z Class

2000-09-11 Thread Karl Munroe

I have constructed a z class which contians other products. Is it possible
for me to have access and edit the properties of the objects contained in
the z class.
For example. MYZClass contains an image object...how do I change the and
edit the photo contained in the class


___
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 GUF (generic user folder) under 2.2.x?

2000-09-11 Thread Nathan Bell



Is there a way to get GUF to work under the new 
version of zope? I know it worked quite easily under older versions, but I can't 
get it to run at all under 2.2.1.

Sincerely,Nathan 
Bell));


[Zope] GDChart on Linux

2000-09-11 Thread Hung Jung Lu

OKie, I now remember I did succeed in building GDChart on Linux. :)

Let me repost here a message exchange with Mike Steed a while back in the 
Python mailing list, so in the future I won't get lost again. :)

Hung Jung
==

From: Mike Steed  [EMAIL PROTECTED]
Date: Sat Aug 12, 2000 4:01am
Subject: Re: GDChart

Hung Jung Lu wrote:

Hi,

Does anyone have experience with GDChart (Python interface to GD)?

http://www.fred.net/brv/chart/

I tried to install it on Linux, the make process seems fine, but I get the
following error in Python:

 import gdchart
Traceback (innermost last):
   File "stdin", line 1, in ?
ImportError: ./gdchart.so: undefined symbol: gdImagePng

Any help is appreciated.

I became aware of this problem several days ago, but being the slacker
that I am, I have not yet put an updated archive on the web.

Here's the fix.  In gd-1.8.1/Makefile, change line 18 from:

CFLAGS=-O

to:

CFLAGS=-O -DHAVE_JPEG

And change line 25 from:

LIBS=-lm -lgd -lpng -lz

to:

LIBS=-lm -lgd -lpng -lz -ljpeg

Then if you rebuild libgd and the Python interface, it should all work.
Sorry for the hassle.

regards,

Hung  Jung


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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] (no subject)

2000-09-11 Thread Matthew Burleigh

ignore
-- 
- Matthew Burleigh
- Systems Administrator, Digital Creations - publishers of Zope.
- (888)344-4332 -- http://www.digicool.com - http://www.zope.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 )




[Zope] dtml-in theentiresite

2000-09-11 Thread peter be

In the root
A DTML Method

Some objects (mostly DTML Documents) have a property (boolean) that tells
whether this is a helppage or not.
What I want to do is to loop though eash and every object in the entire site
(not very big) and check if the object has this property.

pseudo code
dtml-in "objectItems(['*'])"
  dtml-if ahelppage
a href="dtml-var id"dtml-var document_title/a
  /dtml-if
/dtml-in

Any other good solutions are welcomed!

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




RE: [Zope] How to Pass values to a DTML method ??

2000-09-11 Thread Stuart Foster

This is the way I had to do it what's up with the two extra params?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Dieter Maurer
Sent: Monday, September 11, 2000 2:24 PM
To: Stuart Foster
Cc: Zope List
Subject: Re: [Zope] How to Pass values to a DTML method ??


Stuart Foster writes:
  I have a DTML method that is called from a document. I need to pass a
value
  to it like a parameter would be passed to a function.
 
  dtml-var some_method(param=value)
That does not look too bad, but you forgot the "..." around the call.

You should include two positional parameters as well:

dtml-var "some_method(_.None,_,param=value)"

Otherwise, you cut the namespace propagation.


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 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-11 Thread icottee



With reference to inputting chinese characters I have similar issues within
handling Japanese. My two solutions are either use Internet Explorer (if you
have a windows machine) and use their add on extensions (download 5.5 and look
at the extra options during download setup) or use emacs with MULE. Obviously
there are limitations with the emacs method with what you can and can not edit.

Some distributions of Linux will allow you to setup your environment in both
Japanese and English and toggle between the. I think the same is true for
Chinese. Try Kondara at http://www.kondara.com - I saw a demo of their new
version at the Linux Expo which seemed to work well. Apart from playing with a
Japanese distribution for fun I haven't done any serious work with these.

Note that if you ever want to start storing your characters in external
databases you will need to make sure that it can handle your encoding as well.
MySQL has to be compiled with a certain config flag and I believe the same is
true with Postgres. Otherwise strange things will happen :-)

Ian



___
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] keeping Java Servlets session ids based on url rewriti ng

2000-09-11 Thread Chris McDonough

Albert,

I've put this in the collector as a possible bug... hopefully it will
get fixed with the next release if it proves not to be the proper
behavior.  In the meantime, you want want to try messing around with
that regex to get the appropriate behavior for your environment.

[EMAIL PROTECTED] wrote:
 
   I've done a little poking around in ZPublisher's HTTPRequest.py and
   BaseRequest.py and I don't think that's where the ';*' gets stripped.  I
   can't find *where* it gets stripped.  It must be possible to make Zope
   de-ignore things split on a ";", but right now I can't find out where to
   do so.
 
Um from looking at the code I think it may be Zserver not Zpublisher
doing it. I think there is code which set up the CGI env vars at
Zpublisher pick em up and works with them, so it is the code that sets
those GCI vars that is dropping it. Isn't it tru that if you use
APACHE, they are set by APACHE and is you use Zserver w/o frontending
it with APACHE something in Zserver has to be setting them?
 
 I think this is where the stripping occurs:
 
 From default_handler in the medusa directory...
 
 # split a uri
 # path;params?query#fragment
 path_regex = regex.compile (
 #pathparamsquery   fragment
 '\\([^;?#]*\\)\\(;[^?#]*\\)?\\(\\?[^#]*\)?\(#.*\)?'
 )
 
 def split_path (path):
 if path_regex.match (path) != len(path):
 raise ValueError, "bad path"
 else:
 return map (lambda i,r=path_regex: r.group(i), range(1,5))
 
 Which is called by HTTPServer.py:
 
 def get_environment(self, request,
 # These are strictly performance hackery...
 split=string.split,
 strip=string.strip,
 join =string.join,
 upper=string.upper,
 lower=string.lower,
 h2ehas=header2env.has_key,
 h2eget=header2env.get,
 workdir=os.getcwd(),
 ospath=os.path,
 ):
 [path, params, query, fragment] = split_path(request.uri)
 while path and path[0] == '/':
 path = path[1:]
 if '%' in path:
 path = unquote(path)
 if query:
 # ZPublisher doesn't want the leading '?'
 query = query[1:]
 
 server=request.channel.server
 env = {}
 env['REQUEST_METHOD']=upper(request.command)
 env['SERVER_PORT']=str(server.port)
 env['SERVER_NAME']=server.server_name
 env['SERVER_SOFTWARE']=server.SERVER_IDENT
 env['SERVER_PROTOCOL']=request.version
 env['channel.creation_time']=request.channel.creation_time
 if self.uri_base=='/':
 env['SCRIPT_NAME']=''
 env['PATH_INFO']='/' + path
 else:
 env['SCRIPT_NAME'] = self.uri_base
 try:
 path_info=split(path,self.uri_base[1:],1)[1]
 except:
 path_info=''
 env['PATH_INFO']=path_info
 env['PATH_TRANSLATED']=ospath.normpath(ospath.join(
 workdir, env['PATH_INFO']))
 if query:
 env['QUERY_STRING'] = query
 env['GATEWAY_INTERFACE']='CGI/1.1'
 env['REMOTE_ADDR']=request.channel.addr[0]
 
 # If we're using a resolving logger, try to get the
 # remote host from the resolver's cache.
 if hasattr(server.logger, 'resolver'):
 dns_cache=server.logger.resolver.cache
 if dns_cache.has_key(env['REMOTE_ADDR']):
 remote_host=dns_cache[env['REMOTE_ADDR']][2]
 if remote_host is not None:
 env['REMOTE_HOST']=remote_host
 
 env_has=env.has_key
 for header in request.header:
 key,value=split(header,":",1)
 key=lower(key)
 value=strip(value)
 if h2ehas(key) and value:
 env[h2eget(key)]=value
 else:
 key='HTTP_%s' % upper(join(split(key, "-"), "_"))
 if value and not env_has(key):
 env[key]=value
 env.update(self.env_override)
 return env
 
 Also from rfc1738
 
 http://rfc.fh-koeln.de/rfc/html/rfc1738.html
 
 "Reserved:
 
Many URL schemes reserve certain characters for a special meaning:
their appearance in the scheme-specific part of the URL has a
designated semantics. If the character corresponding to an octet is
reserved in a scheme, the octet must be encoded.  The characters ";",
 
"/", "?", ":", "@", "=" and "" are the characters which may be
reserved for special meaning within a scheme. No other characters may
 
be reserved within a scheme.
 
Usually a URL has the same interpretation when an octet is
represented by a character and when 

[Zope] Xron TypeError revisited

2000-09-11 Thread Dwayne Morrison

Hello,

I posted earlier about Xron 0.0.9 event scheduling woes.  One of my stabs 
in the dark seems to work. I removed the 'this()' parameter entirely and 
now am able to schedule events via DTML. I also had to add the 'US/Eastern' 
parameter to the DateTime call to get a current value for DateTime.  It was 
returning 12/31/1969.

Xron documentation (works on Zope 2.1.3):

dtml-with "manage_addProduct['Xron']"
   dtml-call expr="manage_addXronDTMLMethod(
 this(),
 'SchedMethodId1',
 'Scheduled Method 1 Title',
 file = 'Content-Type: text/plain\n\nBANG!!!',
 executeAt = _.DateTime()+14
   )"
/dtml-with


Here's what works for me on 2.2.0:

dtml-with "manage_addProduct['Xron']"
   dtml-call expr="manage_addXronDTMLMethod(
 'SchedMethodId1',
 'Scheduled Method 1 Title',
 file = 'Content-Type: text/plain\n\nBANG!!!',
 executeAt = _.DateTime('US/Eastern')+14
   )"
/dtml-with


I'd appreciate any insight as to why this works without the 'this()' 
parameter in 2.2.0.

Thanks,

Dwayne Morrison
[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 )