[Zope-dev] zc.authorizedotnet needs a new key

2008-04-24 Thread Kevin Dangoor
authorize.net has changed their CA for test.authorize.net and attempts  
to connect there with zc.authorizedotnet currently fail. The key  
that's needed is at the end of this message.


Thanks!
Kevin

-BEGIN CERTIFICATE-
MIIE2DCCBEGgAwIBAgIEN0rSQzANBgkqhkiG9w0BAQUFADCBwzELMAkGA1UEBhMC
VVMxFDASBgNVBAoTC0VudHJ1c3QubmV0MTswOQYDVQQLEzJ3d3cuZW50cnVzdC5u
ZXQvQ1BTIGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTElMCMGA1UECxMc
KGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDE6MDgGA1UEAxMxRW50cnVzdC5u
ZXQgU2VjdXJlIFNlcnZlciBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw05OTA1
MjUxNjA5NDBaFw0xOTA1MjUxNjM5NDBaMIHDMQswCQYDVQQGEwJVUzEUMBIGA1UE
ChMLRW50cnVzdC5uZXQxOzA5BgNVBAsTMnd3dy5lbnRydXN0Lm5ldC9DUFMgaW5j
b3JwLiBieSByZWYuIChsaW1pdHMgbGlhYi4pMSUwIwYDVQQLExwoYykgMTk5OSBF
bnRydXN0Lm5ldCBMaW1pdGVkMTowOAYDVQQDEzFFbnRydXN0Lm5ldCBTZWN1cmUg
U2VydmVyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGdMA0GCSqGSIb3DQEBAQUA
A4GLADCBhwKBgQDNKIM0VBuJ8w+vN5Ex/68xYMmo6LIQaO2f55M28Qpku0f1BBc/
I0dNxScZgSYMVHINiC3ZH5oSn7yzcdOAGT9HZnuMNSjSuQrfJNqc1lB5gXpa0zf3
wkrYKZImZNHkmGw6AIr1NJtl+O3jEP/9uElY3KDegjlrgbEWGWG5VLbmQwIBA6OC
AdcwggHTMBEGCWCGSAGG+EIBAQQEAwIABzCCARkGA1UdHwSCARAwggEMMIHeoIHb
oIHYpIHVMIHSMQswCQYDVQQGEwJVUzEUMBIGA1UEChMLRW50cnVzdC5uZXQxOzA5
BgNVBAsTMnd3dy5lbnRydXN0Lm5ldC9DUFMgaW5jb3JwLiBieSByZWYuIChsaW1p
dHMgbGlhYi4pMSUwIwYDVQQLExwoYykgMTk5OSBFbnRydXN0Lm5ldCBMaW1pdGVk
MTowOAYDVQQDEzFFbnRydXN0Lm5ldCBTZWN1cmUgU2VydmVyIENlcnRpZmljYXRp
b24gQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMCmgJ6AlhiNodHRwOi8vd3d3LmVu
dHJ1c3QubmV0L0NSTC9uZXQxLmNybDArBgNVHRAEJDAigA8xOTk5MDUyNTE2MDk0
MFqBDzIwMTkwNTI1MTYwOTQwWjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAU8Bdi
E1U9s/8KAGv7UISX8+1i0BowHQYDVR0OBBYEFPAXYhNVPbP/CgBr+1CEl/PtYtAa
MAwGA1UdEwQFMAMBAf8wGQYJKoZIhvZ9B0EABAwwChsEVjQuMAMCBJAwDQYJKoZI
hvcNAQEFBQADgYEAkNwwAvpkdMKnCqV8IY00F6j7Rw7/JXyNEwr75Ji174z4xRAN
95K+8cPV1ZVqBLssziY2ZcgxxufuP+NXdYR6Ee9GTxj005i7qIcyunL2POI9n9cd
2cNgQ4xYDiKWL2KjLB+6rQXvqzJ4h6BUcxm1XAX5Uj5tLUUL9wqT6u0G+bI=
-END CERTIFICATE-

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

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


[Zope-dev] paver and buildout

2008-04-24 Thread Kevin Dangoor

Hi,

So, I saw Martijn's paver: buildout is utterly doomed message on  
Tuesday, but I haven't had a chance to respond to it until now.


As Kent points out immediately following, I plan to use zc.buildout's  
machinery. I actively use zc.buildout now, and I'm looking forward to  
getting my buildout merged into my pavement.py.


I totally agree with Martijn that buildout needs a better website and  
I'm glad to see that Baiju is going forward with that.


Ultimately, though, I think that people will choose to use buildout  
alone or paver+buildout (or maybe paver+virtualenv, depending on their  
tastes) completely based on what fits their brains better.


I emailed a fair bit with Zed Shaw about his Vellum tool. He adamantly  
opposes having his builds defined in a full-blown language (ie  
Python), whereas for my needs I really want to define my builds in  
Python. But I want it to be easier to do than what you get with the  
Python standard library.


People who prefer to keep there build information in a data format  
will no doubt stick with buildout. I have no problem with that. My  
goal is just to share the workload with other people who have similar  
build and deployment problems to the ones I have.


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

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


Re: [Zope-dev] RE: Barriers to Zope popularity: Part 2: source control

2001-09-25 Thread Kevin Dangoor


- Original Message -
From: Jay, Dylan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 24, 2001 11:01 PM
Subject: [Zope-dev] RE: Barriers to Zope popularity: Part 2: source control


  -Original Message-
  From: Kenichi Sato
  Sent: Monday, 24 September 2001 5:49 PM
  To: djay
  Subject: Barriers to Zope popularity: Part 2: source control

  Zope looks nice but I found it has two potential problems.
 
   1. WYSIWYG editing
   2. Source control (by ClearCase)

 1. I have not used Zope Page Templates but these are supposed to solve the
 wysiwyg problem. They are an alternative to DMTLDocuments. They allow for
 much better seperation of code and presentation. Get you graphics people
to
 use webdav to edit the html with whatever editor they want and the coding
 people argment the html rather than rip it appart.
 http://www.zope.org/Documentation/Articles/ZPT1

I think ZPT rocks. It's an excellent system... and combined with WebDAV or
FTP (as you mention) it does solve the WYSIWYG problem.

 2. Hasn't really been solved. There are sort of attempts that work now
with
 CVS (I havn't tried it)
 http://www.zope.org/Members/sspickle/ZCVSMixin

Source control for through the web Products has been tricky. But, the
proposed Component architecture is supposed to:

1) Make it easier than ever to write file system-based Products that can be
pieced together and configured through the web
2) Perform some amount of unification between through the web and filesystem
development (though I haven't seen much detail about that)

For larger development projects, it's probably wise to do them in the
filesystem. If you do that, you'll get access to all of your favorite tools
(editors, source control, etc.)

Kevin


___
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: Re: [Zope-dev] WebDav Bug? -- And some comments on how great WebDAV is ;-)

2001-09-20 Thread Kevin Dangoor

- Original Message -
From: Brian Lloyd [EMAIL PROTECTED]
To: Robert Rottermann [EMAIL PROTECTED]; Joachim Werner
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 10:49 AM
Subject: RE: Re: [Zope-dev] WebDav Bug? -- And some comments on how great
WebDAV is ;-)


  Hi Brian,
  that proposal sounds very good to me.
  Could it be enhanced in a way that we can add an add automatic
extension
  when served by webdav.
  What I mean by that is that an object without extension is seen
  as having
  say .html appended to it when it is access by webdav.
  So we can use all these extension based web authoring  tools without
  changing the python way of doing things.

 This is an idea that has been kicking around for a while - I am
 somewhat resistant to it because I have been trying hard to fight
 for less magic in Zope. It is very hard to implement DWIM (Do What
 I Mean) and have it do the right thing in all situations - it often
 turns out to be fragile and easily broken as the system evolves.

Less magic is good.

Longer term, it seems like this can be addressed by the Component
architecture, can't it? Ideally the WebDAV Presentation Component would be
given some clues about how to represent the object in WebDAV. Or maybe there
will be a selection of WebDAV components that provide a variety of ways to
deal with it.

 soapbox

 IMHO, I'd rather see the things that make using file extensions
 a pain in the first place go away. The death to index_html part
 of my proposal is a first step toward that. If web-oriented
 tools expect to be able to use file extensions, then Zope needs
 to do what people expect.

...while still balancing the desire to easily access objects and methods via
Python. Tricky.

Kevin


___
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] ANNOUNCE: KM|Net News 1.1.1

2000-09-16 Thread Kevin Dangoor

Hi,

I've had a few reports of trouble with KM|Net News and Zope 2.2. I have
fixed the reported problem, but have not extensively tested KMNN with Zope
2.2. If you're using KMNN with Zope 2.2, you can pick up the new release
here:

http://www.zope.org/Members/taz/kmnn

Kevin


___
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] KM|net News help

2000-06-28 Thread Kevin Dangoor

--- Wesley ---
Being a newbie, I've decided to use the KM|net News product as a base to get
my magazine/newspaper site off the ground. I've
found it OK so far, but one of the problems I'm having is adding old (ie
archived) articles to the database. I go in and create a new KMYear (1999)
and a new month (1). When I get to the "add KMArticle" and try and enter an
Id (even with 9 numbers), I get an Invalid date/time string error. How can I
create valid Id's? Once I have a valid Id, I assume I'll be able to create
an article (incoming.html?)
---

You've hit upon an "unimplemented" feature. I didn't need to be able to
create articles via the management interface, so I never added that
capability. Patches accepted :)

--- Wesley ---
I'd also like to get rid of the "By" (my authors don't identify themselves)
and the date/time stamp. Where do I find the code for this?
Also, is there any way of getting around the fact that you have to approve
an article. In the 'Editing Articles" section of the documentation, you're
told you "will recieve a message with a link to the edit page of that
article. As I don't have SMTP access, I can't specify the mailhost which
means I can't approve the article.
---

The "index.html" method is currently located in the Product itself, and that
controls the byline and date/time stamp display. This should probably be
moved into the KMArticleStore so that people can change it.

--- Wesley ---
Lastly, once I have the articles in there, how do I make them "belong" to a
particular section?
---

There is a category field on the article editing page. You set up your
categories in the KMArticleStore. When you go to the edit method of the
article, you can just select the category from the pull down menu.

Kevin


___
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-dev] 2.2 or Membership Component alpha problem, and suggestions for thelatterlatter

2000-06-19 Thread Kevin Dangoor

- Original Message -
From: "Bill Anderson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 16, 2000 9:06 PM
Subject: [Zope-dev] 2.2 or Membership Component alpha problem, and
suggestions for thelatterlatter


 Problem:
 If you try to add a membership system to your root folder, and it has an
 acl_users folder, you will not succeed in adding it, ecause it will
 complain about mismatched passwords (or at least it did for me).

 Solution:
 Delete the acl_users fodler first.

This one is fixed in 0.6.

 Now, onto the current issue. I have some DTML that adds ZClass
 instances. The Member user has the appropriate roles, yet is refused.

 The forbidden page tells me I need Manager role. Now, why is this? In
 particular, I am using the MeetingManagement product. It works fine in
 2.1.6. I think it is related to the security changes in 2.2. Problem is,
 even adding proxy roles for the methods in the chain changes nothing.

One possibility: Version 0.5 created the Member role, but did not create any
permissions for it. Version 0.6 creates all three roles and sets up
permissions just like the Portal.py file.

 Now, a suggestion for Kevin:
 It would be nice if there was user management for the Membership
 component's default setup. I am sure you're thinking about it, but
 thought I'd let you know it is needed :)  Specifically, there should be
 some way that the site manager can modify theroles of the users, reset
 passwords, and DELETE them as needed. Any ideas/work being done for
 this?

This shouldn't be too difficult. To be completely functional, this probably
would need a Catalog, so that you can search by email address... but, making
a couple forms to change a user with a known user name should be quite easy.

Kevin


___
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] html templates?

2000-06-19 Thread Kevin Dangoor

- Original Message -
From: "Christian Scholz" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 19, 2000 3:35 PM
Subject: [Zope] html templates?


 Imagine writing simple html templates with some custom tags which are
quite
 abstract like addresslist. Then write some Python Product (or there
might
 be one Product to make this happen a little simpler) which implements
these
 tags.

Is there an advantage to this over:
dtml-var addresslist

(other than saving a few characters typing dtml-var)?

addresslist could be a property or another DTML method...

Kevin


___
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] ZPatterns, Hello, world.

2000-06-19 Thread Kevin Dangoor

Hi,

I don't know of a ZPatterns "Hello, World". I remember feeling quite
pleased when I managed to get a ZClass instance added to a Rack. Of course,
how one would define "Hello, world" in the context of ZPatterns, I'm not
sure. I haven't yet had a chance to use 0.4, so this example won't mention
DataSkins. You could do something like this:

create a ZClass
add a Specialist
add a Rack
set the storage for that Rack to your ZClass
add a PythonMethod to the Specialist that calls newItem(ObjID) and then sets
some properties on that ZClass

Then, you can go to http://yoursite/Specialist/ObjID and take a look at your
ZClass. Congratulations! You've now replicated the functionality of a Folder
:)

(Of course, the Rack uses BTrees, so you can store any number of objects in
there, unlike a Folder.)

Once you have objects in your Rack, you can start playing with attribute
providers and such. Plug-ins still need to be written in Python.

HTH,

Kevin

- Original Message -
From: "Jeff K. Hoffman" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 19, 2000 4:35 PM
Subject: [Zope] ZPatterns, "Hello, world."


 I am trying to wrap my head around ZPatterns--I am hoping to use it in a
 project I am currently working on. Unfortunately, I'm not doing too well.
 :-)

 Is there a, "Hello ZPatterns World." example out there, anywhere, that
 shows the simplest usage of the framework? It would do me tremendous good
 to see a working example.



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




Re: [Zope] ZODB or not ZODB?

2000-06-18 Thread Kevin Dangoor

- Original Message -
From: "Casey Duncan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 16, 2000 6:35 PM
Subject: [Zope] ZODB or not ZODB?


 My question is where is the best place to store the documents themselves?
 They will be static HTML documents ranging from 1-50Kb in size roughly.
 There will probably be at least 10,000-15,000 of these documents in the
 library once all is said and done.

 In my mind I have three options:

 1. Store them on the filesystem.
 2. Store them in a PgSQL table as blobs.
 3. Store them as DTML Docs in the ZODB.

 Is ZODB up to the task of storing this quantity of objects? What problems
 might I run into? Is it a wise idea, could a data.fs file of this size
 (~3-400MB) become too easily corrupted? Should I use a separate data.fs
file
 just to store the documents (ie using mountedFileStorage)? Or is it better
 to use method #1 or #2? Information from anyone with experience in this
 regard is greatly appreciated.

There are people who have experience with giant ZODBs... some people have
run into the 2GB ext2fs file size limit. My Data.fs has been around ~100MB.
FileSystem Storage is really quite stable, and is not likely to get
corrupted no matter what the size. If you need to store the docs in multiple
drives, you can use the mountable storages to set up another file on the
other disk.

One thing to be aware of: 10-15K documents is too much for a single Folder.
You either want to break the docs up into multiple folders, or hang on for
the BTreeFolder product.

One other nice thing about storing in the ZODB: it's pretty easy to make
your documents automatically add themselves to the ZCatalog. No need to
manually update the indexes. (This would be true of PgSQL, but not the fs.)

Kevin


___
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-dev] Logging for ZScheduler?

2000-06-15 Thread Kevin Dangoor

- Original Message -
From: "Loren Stafford" [EMAIL PROTECTED]
To: "Phillip J. Eby" [EMAIL PROTECTED]; [EMAIL PROTECTED]; "Loren
Stafford" [EMAIL PROTECTED]
Cc: "zope-dev" [EMAIL PROTECTED]
Sent: Thursday, June 15, 2000 4:40 PM
Subject: RE: [Zope-dev] Logging for ZScheduler?


 Cool! Then the logging operation would become a part of the scheduled
event
 thread and transaction instead of part of the Dispatcher's thread (a
 possibly transaction). I'll have to think about the implications of that.

 Where is Observer-Observable in the development plan? ZPatterns 0.4?

Actually, it's in Zope 2.2... It was checked into CVS a few days back.

Kevin


___
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: Problem importing Membership alpha

2000-06-14 Thread Kevin Dangoor

I created it using the CVS version of Zope... I didn't *think* there was
anything 2.2 specific going on, but apparently there is.

I just took a look around. It appears that the current version of
LoginManager uses the Owned module to import "UnownableOwner". I guess
that's so it can create the default methods.

It looks like the current LoginManager is 2.2 only then.

Kevin

- Original Message -
From: "Bill Anderson" [EMAIL PROTECTED]
To: "Kevin Dangoor" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, June 14, 2000 12:25 AM
Subject: Problem importing Membership alpha


 By any chance is this for Zope 2.2?
 (Traceback didn't reveal much of anything, FWICS)

 8===
 Zope Error
 Zope has encountered an error while publishing this resource.
 Error Type: ImportError
 Error Value: No module named Owned



___
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] Re: Problem importing Membership alpha

2000-06-14 Thread Kevin Dangoor

- Original Message -
From: "Ty Sarna" [EMAIL PROTECTED]
Newsgroups: zope.dev
To: [EMAIL PROTECTED]
Sent: Wednesday, June 14, 2000 1:05 PM
Subject: Re: [Zope-dev] Re: Problem importing Membership alpha


 In article 001301bfd606$ad3a7320$7b5addc7@laptop,
 Kevin Dangoor [EMAIL PROTECTED] wrote:
  I created it using the CVS version of Zope... I didn't *think* there was
  anything 2.2 specific going on, but apparently there is.
 
  I just took a look around. It appears that the current version of
  LoginManager uses the Owned module to import "UnownableOwner". I guess
  that's so it can create the default methods.
 
  It looks like the current LoginManager is 2.2 only then.

 ?? It does:

 # Support Zope-2.2a1 onwership foo
 try:
 from AccessControl.Owned import UnownableOwner
 except ImportError:
 UnownableOwner=None

 Specifically to be compatible with both, and we're using it on 2.1.6!

D'oh! That's what I get for doing a grep and not looking at the context...

I had looked at the .zexp file using less, and didn't see "Owned"
anywhere... using vi I found a reference to AccessControl.Owned, however...

So, it looks like it's the MembershipZ Product that requires 2.2.
Unfortunately, I don't know that there is any way to change this, despite
the fact that I'm not really using 2.2 features...

I've updated the page for the Product to reflect this requirement.

Kevin


___
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] ZODB Storage Question

2000-06-14 Thread Kevin Dangoor

- Original Message -
From: "Pete Kazmier" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 13, 2000 4:31 PM
Subject: [Zope] ZODB Storage Question


 I've been reading through the docs, howtos, etc but haven't found an
 answer to this question.  I was hoping someone could help me out.  Is
 it possible to use the default ZODB store for everything EXCEPT a
 custom built ZClass?  or, even better is it possible to tell Zope not
 to store more than one copy of my custom ZClass?

Zope 2.2 includes a feature that allows you to mount other ZODB storages at
specific points in your hierarchy (much like you mount things in Unix). You
can store those objects in a mounted BerkeleyStorage, which doesn't do
versions. It's important to note that all of that stuff is fairly new, but
it is available to try it out.

Kevin



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




Re: [Zope] ZClass newbie problem...

2000-06-14 Thread Kevin Dangoor

- Original Message -
From: "Eric L. Walstad" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 13, 2000 12:30 AM
Subject: [Zope] ZClass newbie problem...


 I'm stuck. I would like to build a "shiny new ZClass" that has the
following
 structure:

 WebSimProduct
   WebSim Class
 'Properties' Property Sheet
   string RunID
 Calc Class Object
   'Properties' Property Sheet
 PathToInputFile
 PathToWxFolder
   Results Class Object
 'Properties' Property Sheet
   float gashtg
   float elchtg
   float elcclg
   float euihtg
   float euiclg

 I haven't seen anything in the Zope documentation on using Zclass
instances
 as members of a super class.  In other programming languages I would
 instantiate default objects when the WebSim class is initialized.  That
way,
 to use a WebSim object, all I would need to do is instantiate one, then
fill
 the properties of the automatiacally-created Calc object and Results
object.
 However, I'm not sure how to build these default objects in Zope.

 My next question is: do I have to build a bunch of products (one for the
 Calc class and one for the Results class, for example)?  I can imagine
this
 would result in a huge number of products under the control panel if this
is
 the case.  I would like to have just a WebSim product and have all the
other
 classes defined within this product.  Does Zope work this way?  If not,
how
 is this class structure (or one similar) achieved?

You can certainly have multiple ZClasses within a single Product. Some
people recommend not nesting ZClasses, because when you do so you can only
use the nested classes within the top level class... ZClasses can't be
cut-and-pasted, so you're stuck with that hierarchy. If you're sure you only
want to add those classes in that particular way, you can pretty easily do
what you want.

In the WebSim_add method, you would do something like:

dtml-with "createInObjectManager..."this line is already there
 dtml-with "Calc_add(_.None, _)"
  ...set your properties here...
   dtml-with "Results_add(_.None, _)"
 ...set your Results properties here...
/dtml-with
  /dtml-with
/dtml-with

HTH,

Kevin


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




Re: [Zope] Traversable DTML methods

2000-06-11 Thread Kevin Dangoor

- Original Message -
From: "Ian Sparks" [EMAIL PROTECTED]
To: "Anthony Baxter" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, June 11, 2000 9:18 AM
Subject: Re: [Zope] Traversable DTML methods


 
 Use a pythonmethod with the traverse_subpath argument...
 

 Thanks for the advice Anthony, this has been suggested to my by others.
 Could you point me to some Docs or Howto on this subject?

 My view is that you shouldn't have to go to Python to make this happen
 (though I am glad that you can!) and that DTML Methods should be
traversable
 out of the box.

Hmm... what does it mean, exactly, to "traverse a DTML method"? DTML Methods
don't have subobjects, so it seems like you're basically trying to look up
other objects or information via information passed in the URL. That seems
like the kind of program logic that is much cleaner in python and that
people are trying to keep out of DTML. DTML really does start getting ugly
and hairy when you try to put complex logic in it.

Kevin


___
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] closed Portal

2000-06-11 Thread Kevin Dangoor

- Original Message -
From: "Graham Chiu" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 10, 2000 4:19 PM
Subject: [Zope] closed Portal


 I just downloaded and installed the latest checkout from the PTK for the
 first time.

 It seems that if I want to have a closed Portal, I can't use Zope's
 authentication mechanisms to allow users into the folder that contains
 the Portal as the Portal then complains that the user has already been
 authenticated outside the Portal.

 Is that correct?

Yes, I believe that is correct. I think the Portal is expecting the user
object to have some extra methods and properties that wouldn't necessarily
be in a standard Zope user object.

I'm in the process of decoupling the Membership system from the Portal
object. I'll probably have an early alpha within the next couple of days. My
hope is that when I integrate the Membership component back into the Portal
package, you'll be able to install Membership at your Zope root if you wish,
and use those users within a Portal.

Kevin


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




Re: [Zope] Traversable DTML methods

2000-06-11 Thread Kevin Dangoor

- Original Message -
From: "Ian Sparks" [EMAIL PROTECTED]
To: "Dieter Maurer" [EMAIL PROTECTED]; "Kevin Dangoor"
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, June 11, 2000 6:05 PM
Subject: Re: [Zope] Traversable DTML methods


 Dieter is right, DTML methods can get parameters from the URL but they
don't
 do it in the same way as SQLMethods and that, to answer Kevins question,
is
 what I mean by making DTML Methods "traversable" (apologies if my
 terminology is off).

 I'd like to be able to pass a parameter to a "members" DTML method with a
 syntax like :

Ahh... Your terminology was correct. I was thinking more in terms of the
traversing functionality offered by PythonMethods. If it's doing nothing
more than passing parameters, that seems fine to me. I was thinking more of
getting into these ugly scenarios where you do things like:

dtml-call "REQUEST.set('params', _.string.split('/', url_remainder))"
dtml-if "params[0] == 'foo'"
...do something
/dtml-if

etc.

That would get evil fast.

The one reason that may still exist for not making DTML Methods traversable
as you're suggesting would be if you want to call a DTML Method within the
acquisition context of another... something that some people may want to do
(I never have though). If a DTML Method chops off everything that follows in
the URL, then that remaining part of the URL can't be used for acquiring
other methods.

Kevin


___
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-dev] Can't add propertysheets to ZClasses in 2.2

2000-06-08 Thread Kevin Dangoor

I've already submitted this to the collector, but I wanted to make sure that
I'm not the only one with this problem. Using the CVS Zope, if I create a
ZClass, I am unable to add a Property Sheet because of an error (missing
"__len__").

I find it hard to believe that I'm the first person to try to add a ZClass
in 2.2, but I didn't see this in the collector.

Kevin
http://www.byproducts.com - Humor and Novelties


___
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] creating object from method

2000-06-08 Thread Kevin Dangoor

Take a look at:
http://www.zope.org/Members/taz/addZClasses

Kevin

- Original Message - 
From: "Pierre Rougier" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 08, 2000 6:57 AM
Subject: [Zope] creating object from method


 Well, I didn't find it in the ZQR,
 I have a product which is able to create instantiate an object of a
 ZClass (using a factory).
 (so, I can add my special object from the Add list)
 
 In a dtml method, I want to create (instantiate) a new object of this
 ZClass..
 I tried manage_addProduct... a little by hazard, but I don't find the
 right primitive to do that
 isn't there something like
 manage_addObject(ZClass, id...)?




___
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-dev] Getting to container from a method called by the factory

2000-06-07 Thread Kevin Dangoor

- Original Message -
From: "Itamar Shtull-Trauring" [EMAIL PROTECTED]
To: "Kevin Dangoor" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000 3:44 AM
Subject: Re: [Zope-dev] Getting to container from a method called by the
factory


 Kevin Dangoor wrote:
  I'm trying to check if the container from which the user selected a
  product from the add menu has an "acl_users" folder. When the user
selects
  the option from the add menu, they get a form. When they submit the
form,
  the method (a PythonMethod) does this:
 
  folder=self.Destination()
  if hasattr(folder, 'acl_users'):
...do something...
  else:
...complain...
 
  Even though I know the folder has an acl_users (and having this function
  return folder.objectIds() proves it), the above code will always
complain.
  Is there a problem with using hasattr in this context?

 Well, first of all, because of acquisition, if there's a acl_users at the
 top level this will always return true.

I didn't think hasattr() used acquisition... I thought hasattr would tell
you if something is within that object itself.

  Next, PythonMethods have trouble
 with hasattr AFAIK - so instead do:

I didn't realize this.


 folder=self.Destination()
 if 'acl_users' in folder.objectIds():
...do something...
 else:
...complain...

Yep. I thought of that one, too. I figured hasattr might be more efficient
in large folders. In this particular context, that little bit of efficiency
is not important and your example would work fine.

Thanks for the tip.

Kevin


___
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] Recursively adding ZClasses (continued)

2000-06-07 Thread Kevin Dangoor

- Original Message -
From: "Rik Hoekstra" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000 4:28 AM
Subject: [Zope-dev] Recursively adding ZClasses (continued)


 First I had a problem with nested ZClasses, which got me into trouble
 when I wanted to add ZClasses to each other. So I followed the 'common
 wisdom' of adding all ZClasses at the top level of the product. THis
 generally works OK, and you can add ZClass instances to each other from
 the management interface. So far so good. WHere things go wrong is by
 recursively adding ZClasses, as in:

 the following pseudo code for ParticularZClass with some NestedZClasses
 inside:

 (Particular ZClass constructor has the following action sequence):
 create ParticularZClass instance
 set some properties
 in somelist
set some other properties into REQUEST
create NestedZClass instances
 whatever

 reading and following every piece of documentation I could get on this
 (not much), I never got any further than adding the NestedZClasses
 instances on the _same_ level as the ParticularZClass. No dtml-with
 "manage_addProduct['whatever']" (which contrary to documentation should
 have the containing product and not the ZClass as the 'whatever'
 argument) could help me out.

I'm using nested ZClasses in KM|Net News. Take a look at the AddArticle
method. In KMNN, these ZClasses are set up as nested ZClasses, so that may
change things somewhat. However, it may still work. Rather than doing
manage_addProduct[], you *might* be able to just directly call
ZClass_add(_.None, _), because it could be in your acquisition path at the
top of the product. In KMNN, that's all I had to do, but in that case the
ZClass_add method was located within the ZClass that was to contain it.

That sounded kind of rambling, so I hope it makes sense...

Kevin


___
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] LM and user objects

2000-06-07 Thread Kevin Dangoor

- Original Message -
From: "Dan L. Pierson" [EMAIL PROTECTED]
To: "Chip Vanek" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000 12:47 PM
Subject: RE: [Zope-dev] LM and user objects


 Chip Vanek writes:
   I also tried to get the patch working with 2.2CVS PTK CVS and had
little luck.
   I also needed to manually apply the patch and worked through the errors
until
   I got a security violation with the PTK.  I was no longer in any way
able to
   access any of my test portals using the management interface.  I needed
to
   back the patch out and get to plain 2.21a and PTK cvs to even get a
ZODB
   portal working.

 Interesting.  I've been avoiding 2.2 until the new security model gets
 some more bugs worked out.  Unfortunately, this means I'm not
 surprised that you had problems...

LM seems to be pretty happy on the whole with 2.2 at this point.

 We seem to have consensus on this.  Looks like Kevin's taken over the
 lead on getting to the next step which is a coherent interface for PTK
 Membership to use to specify how to set up its LoginManager (e.g. how
 do I create a Membership instance using a Postgressql based UserSource
 here, and another Membership instance using NT domain logins there).

Actually, my short term goal is to make everything the PTK currently offers
available as separate components (and as the PTK bundle), and to make things
ZPatterns-aware. So, the Membership part that I'll be releasing will
basically just set up a LoginManager with the high level interfaces... I'm
not going to spend any time worrying about other UserSources and such at the
moment. Those probably want be a big deal anyhow, given LM's pluggable
architecture...

   So my vote is to check your patch into the main stream and harden
   it.

 That's three in favor and none opposed so far.  I'll do it after
 fighting a higher priority fire this afternoon.

Yep. For some reason, I had been thinking your patch was in the CVS PTK, so
I'm actually not even looking at your patched code, I guess :(

Kevin


___
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] Dynamically Picking which object to display

2000-06-07 Thread Kevin Dangoor

- Original Message -
From: "Jason Lee" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000 3:50 PM
Subject: [Zope] Dynamically Picking which object to display


 I'm fairly new to Zope, so this may be a dumb question, and my vocabulary
could
 be wrong, so please bear with me.

 I'm in the middle of building an e-commerce solution for my company, and
we're
 evaluating Zope (and PHP and Servlets, but that's immaterial) as the
platform on
 which to base this solution.  That doesn't necessarily mean anything other
than
 to give you context.  One of the problems I'm facing right now is how to
display
 a particular object based on a value.  For example, let's say a user tries
to
 access www.foo.com/MyAccount/CCInfo.  If the user has authenticated, I
need to
 show him the obviously sensitive data he has requested.  If he is not
 authenticated, however, I need to give him a login screen which, for
argument's
 sake, is in the DTML document Login in the root folder.  How would I go
about
 doing that?  Am I making sense?  Thanks...

You're asking quite a reasonable question. If you use one of the alternate
authentication systems (like LoginManager or Generic User Folder), you can
make a login scheme that uses cookies with a custom login screen. I'm hoping
to soon have a package that works with LoginManager to be a little more plug
and play.

The way it works is pretty straightforward. You just set the permissions
such that the user would have to authenticate in order to view that data.
Zope's authentication machinery will kick in, and LoginManager would then
put your login screen up.

Kevin


___
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-dev] LM and user objects

2000-06-06 Thread Kevin Dangoor

- Original Message -
From: "Bill Anderson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 06, 2000 4:21 PM
Subject: [Zope-dev] LM and user objects


 Once I get that set up, I add property sheets for the user where? The
 ZClass?
 Once I get that set up, how do I add a user? Would one method be to go
 into the acl_users(LM) and add a User? What about adding them
 programmatically? I looled at the API.txt, but it wasn't helpful in this
 regard. :(

If you're not in a blazing hurry on this, I'm working right now on breaking
Membership out of the PTK (after which, I'll put it back in :)
This will basically come in the form of a product that adds a LoginManager
and configures it with high level methods. No ETA at the moment, because I'm
wrestling with syntax within my method that is called by the factory. I
expect things to move fairly quickly, though, because Mike Pelletier and Dan
Pierson already did the hard work to get things to where they are now.

Kevin


___
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] Getting to container from a method called by the factory

2000-06-06 Thread Kevin Dangoor

I'm trying to check if the container from which the user selected a
product from the add menu has an "acl_users" folder. When the user selects
the option from the add menu, they get a form. When they submit the form,
the method (a PythonMethod) does this:

folder=self.Destination()
if hasattr(folder, 'acl_users'):
  ...do something...
else:
  ...complain...

Even though I know the folder has an acl_users (and having this function
return folder.objectIds() proves it), the above code will always complain.
Is there a problem with using hasattr in this context?

Kevin
http://www.byproducts.com - Humor and Novelties


___
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] Too many Roles?

2000-06-05 Thread Kevin Dangoor

- Original Message -
From: "David Ornstein" [EMAIL PROTECTED]
To: "zope-admin" [EMAIL PROTECTED]
Sent: Monday, June 05, 2000 11:25 PM
Subject: [Zope] Too many Roles?


  Is it crazy to have 20 or 30 roles in my Zope system? 

 I've got members of the site who sit on this working group or that working
 group and various subgroups and I need to be able to control access to the
 various areas of the site based on this membership.  Roles seem like the
 right choice here, but I'm wondering if this is crzay.  Does this rub any
of
 the Zopexperts the wrong way?

You might want to look at Local Roles. I believe using Local Roles, you
could create a role like "WGMember", and then designate that certain people
have the WGMember role in certain folders... this may work out to be cleaner
than building separate roles for working group...

Kevin


___
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-dev] The future of Zope with XML

2000-06-02 Thread Kevin Dangoor

Hello,

Thanks for getting this document going. It's good to see where XML is
going in Zope.

I do have a question, though. For me, the main value in XML has been in
its usefulness as a flexible interchange format. Right now, I can store data
as objects (either straight Python or ZClasses) in Zope and transform those
into XML if I need to share it with the outside world (eg RSS). Similarly,
though I haven't done this, I believe I can take XML from the outside world,
parse it and store it in objects in the database. Are there advantages to
storing the data in Zope as XML vs. storing my data as objects?

Thanks,
Kevin

- Original Message -
From: Glenn Gasmen
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, June 01, 2000 11:05 PM
Subject: [Zope-dev] The future of Zope with XML


http://www.zope.org/Wikis/zope-xml/Unified%20Vision



___
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] The future of Zope with XML( what does ZDOM do for us? )

2000-06-02 Thread Kevin Dangoor

Hi, Josh

Thanks for the insight! I also just noticed that there is a whole lot of
good information already up there in the Wiki. This does look like great
stuff. I see how it complements Zope's current data storage capabilities. It
provides good ways to move XML data in and out of the ZODB via XSLT and to
store and manipulate XML data efficiently using XML Documents. These are
excellent capabilities indeed.

Have a great weekend!

Kevin

- Original Message -
From: "Josh Zeidner" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, June 02, 2000 10:54 AM
Subject: Re: [Zope-dev] The future of Zope with XML( what does ZDOM do for
us? )



 Hi Kevin,

   What FourThought/DC are currently doing with Zope will allow for fast
 transformations to memory-resident structured data( ZDOM or whatever ) to
 exportable XML documents( which are simply strings of characters ).  This
 introduces( to the Zope world ) cutting edge metaphors in web-application
 design.  All data to be served to a client is some form of XML: including
 HTML ( a better term: structured data ).  The internal structure, or
 representation( or "deep structure" if you are into Chomsky ),  is the
 data/knowledge as the web site managers see it- and most likely the most
 accurate and flexible when dealing with the particular
ormation-domain( 
 this is what theyre paid for :) ).  Each user has custom needs- and wants to 
 see this information the way they( or the applications working on thier 
 behalf ) are accustomed to.  So, architectually speaking, we need a way to 
 easily and quickly construct XML documents from some meta-type( our internal 
 structure ).  This is what ZDOM is accomplishing for us.
 
   Parsing is a expensive endeavor.  It is not practical to parse character 
 streams every time we want to get at our data.  So the solution is to 
 represent the data as something more computationally digestible.  Again : 
 this is 
what ZDOM is accomplishing for us.

   Does this answer your question?

   have a good weekend,

   Josh Zeidner



 -"zippa-dee-doo-da" , uncle remus

 Hello,
 
  Thanks for getting this document going. It's good to see where XML
is
 going in Zope.
 
  I do have a question, though. For me, the main value in XML has been
 in
 its usefulness as a flexible interchange format. Right now, I can store
 data
 as objects (either straight Python or ZClasses) in Zope and transform
those
 into XML if I need to share it with the outside world (eg RSS).
Similarly,
 though I haven't done this, I believe I can take XML from the outside
 world,
 parse it and store it in objects in the database. Are there advantages to
 storing the data in Zope as XML vs. storing my data as objects?
 
 Thanks,
 Kevin
 
 - Original Message -
 From: Glenn Gasmen
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, June 01, 2000 11:05 PM
 Subject: [Zope-dev] The future of Zope with XML
 
 
 http://www.zope.org/Wikis/zope-xml/Unified%20Vision



___
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] Python and Zope Question

2000-06-02 Thread Kevin Dangoor

If object1 has a unique name in your acquisition path, you can get to it
simply through
self.object1.object2.object3

Otherwise, you can use PARENTS. I *think* you can get to the PARENTS list
via the REQUEST variable (so make sure you have REQUEST as a parameter in
your method).

REQUEST['PARENTS'][-1].object1.object2.object3

Kevin

- Original Message -
From: "Scott Burton" [EMAIL PROTECTED]
To: "Kevin Dangoor" [EMAIL PROTECTED]
Sent: Friday, June 02, 2000 12:21 AM
Subject: Re: [Zope] Python and Zope Question


 Thanks for the quick responses Kevin and R. David Murray! That did the
 trick. Now here is another quick one. How would I access an object from
the
 root-level? As in root.object1.object2.object3?



___
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-dev] Zope 2.1.6: ZCatalog's Reindex unintuitive?

2000-06-01 Thread Kevin Dangoor

- Original Message -
From: "Dieter Maurer" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 01, 2000 5:31 AM
Subject: [Zope-dev] Zope 2.1.6: ZCatalog's Reindex unintuitive?


 I know, of cause, that a DMTL method could do this job.
 However, a general method "manage_catalogRefind" might be
 generally useful. It would remember the parameters for
 the last find operation and reapply the find.

I like the other solutions that exist/are coming into existence/are
proposed. They are:

1) CatalogAwareness for ZClasses. I like this one least, but it exists
today. Your custom ZClasses can just subclass CatalogAware and they will
automatically add themselves to the catalog when they are created and remove
themselves when they are deleted. Drawbacks: it's a pain to catalog them to
anything but something called "Catalog", and it only works for your custom
objects.

2) ZPatterns 0.4 (http://www.zope.org/Members/pje/Wikis/ZPatterns/HomePage):
This allows you to create objects that use DataSkins to determine how they
are stored. Additionally, you can set up methods that get called for adds
and deletes, so you can automatically catalog things however you would
like... plus, you can set that up on a folder by folder basis. Drawbacks:
not available yet, only works for your custom objects.

3) ObserverAndNotification Interface
(http://www.zope.org/Members/michel/Projects/Interfaces/ObserverAndNotificat
ion): Objects can be notified of events. This is a very generic interface
and should allow for all sorts of stuff. Drawbacks: I don't know if any work
has been done on implementation (work is still going on on the interfaces, I
think), and I don't know if you'll be able to create an observer that
automatically catalogs objects like DTML Methods even though the DTML Method
has no knowledge of the observer. I kind of get the feeling that you'll be
able to do such things...

I like all of these solutions, because they are automatic. Having a
catalogRefind implies that someone needs to actively do something to make
the catalog get updated...

Kevin



___
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] Python and Zope Question

2000-06-01 Thread Kevin Dangoor

- Original Message -
From: "Scott Burton" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 01, 2000 6:58 PM
Subject: [Zope] Python and Zope Question


 Major newbie here. I am wanting to create a python method that
 iterates over items in a folder object in Zope. I am struggling with
 how to access objects in the ZODB in python. Here's the script in the
 simplest form.
 for x in folderObject :
   return x

You need to put self as a parameter to your method and then do
for x in self.folderObject.objectValues():
  return x

You use "self" to get at all of the stuff in the ZODB. Note that self is
bound to the container of the PythonMethod. So, if you want the PM to work
on the current folder, you can just do:

for x in self.objectValues():
  return x

(Of course, this will just return the first value, but that was your example
:)

Kevin


___
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-dev] Import (was: Zope 2.2.0 alpha 1 released... )

2000-05-31 Thread Kevin Dangoor

- Original Message -
From: "Heiko Stoermer" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 31, 2000 4:40 AM
Subject: Re: [Zope-dev] Import (was: Zope 2.2.0 alpha 1 released... )


 Digicool: do you plan to offer an upload functionality for .zexp import
 just like we have a download for the export now ? this would be _very_
 handy, because I do not want all my customers to be able to access the
 import dir on my harddrive. (maybe it exists already and I just don't
 know?)

I believe this is considered to be a security hazard, because you would then
be able to send more or less arbitrary pickles through the web. Anything
that allows that is generally not allowed through the web.

Kevin


___
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] Proposal for mail-in to Zope

2000-05-31 Thread Kevin Dangoor

- Original Message -
From: "Simon Coles" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 31, 2000 11:54 AM
Subject: [Zope] Proposal for mail-in to Zope


 So:
 - Within Exim, use the "pipe" transport to get email for a particular
   host sent to a program on the standard input. If the program called
   returns certain codes then Exim will queue the message and try again.

 - This program takes the email message and puts it into Zope, probably
   by calling a DTML Method or something. This would probably be
   configured by objects in the Zope ZODB which say effectively "When
   you get email for this address, then call this Method".

Hmm... "takes the email message and puts it into Zope". Using ZClient or
XML-RPC? ZClient is probably the easiest way to go. You'd probably want a
simple script configured in the file system to send the message on to method
in Zope via ZClient. That method will be part of a MailHandler object (or
some such) that can have rules based on the email address that the message
is going to. These rules will likely pass the message on to another method
(probably a PythonMethod, since this is programming we're talking about). It
might be nice if the MailHandler broke the message up into usable fields
instead of a plain text stream. I think there's a python module for doing
that.

Kevin


___
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] Tweaking the management interface

2000-05-31 Thread Kevin Dangoor

- Original Message -
From: "peter" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 31, 2000 3:18 PM
Subject: [Zope] Tweaking the management interface


 So I can change this simply in zoperoot\lib\python\App\manage.dtml
 I save a file called extramenu.dtml in the same location as menu.dtml and
 main.dtml, zoperoot\lib\python\App\ and zoperoot\lib\python\Ofs
respectivly.

 All I get is an 'Resource not found' error in frame 3.

 So, where should I save my extramenu.dtml and should at all call it
 extramenu.dtml or manage_extramenu.dtml?
 And do I have to change any Python code?

One way to do this would be to just create the DTML method in the root of
your ZODB. That would probably be more convenient for you to experiment with
anyway. Otherwise, you'll need to make a change to Management.py... here's a
grep:

Management.py:manage_menu =HTMLFile('menu', globals())
Management.py:('View management screens', ('manage',
'manage_menu',)),

Just do
manage_extramenu=HTMLFile('extramenu', globals())

and add 'manage_extramenu' to the tuple for View management screens to set
up the permissions...

Kevin


___
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-expr second thoughts

2000-05-31 Thread Kevin Dangoor

A couple days ago, I sent a message proposing that creating a
dtml-expr tag could eliminate a lot of the confusion that new Zope users
face. It seems that almost every new Zope user gets hung up on the
difference between dtml-var foo and dtml-var "foo". It just now occurred
to me that creating dtml-expr "foo" does not solve the problem, because
there are still dtml-if "foo" and dtml-in "foo".

While I am certainly in favor of keeping expressions in DTML, it looks
like dtml-expr is not a good way to eliminate the confusion for new users.
Perhaps the best thing is to just make sure that the introductory docs cover
that topic very well.

Kevin
http://www.byproducts.com - Humor and Novelties


___
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-dev] Ending up with a wrapped object through the web?

2000-05-30 Thread Kevin Dangoor

 If you are using CVS, you need to do an update in ZODB to update
 the coptimizations.c file then rebuild the coptimizations module.
 That should fix the problem...

That did the trick. One oddity, though: I had to reauthenticate as the
superuser to do it. Shouldn't a Manager be able to import to
Control_Panel/Products?

Kevin


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

2000-05-30 Thread Kevin Dangoor

- Original Message -
From: "Lalo Martins" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 29, 2000 11:40 PM
Subject: Re: [Zope] Use of lambda expression in DTML


 On Mon, May 29, 2000 at 10:58:54PM -0400, Chris McDonough wrote:
 
   dtml-in "_.map (lambda item: Catalog.getobject
(item.data_record_id_),
   Catalog (REQUEST)"
 
 
  How could someone understand this when you're finished with it?

 Perfectly clearly for anyone used to functional programming;
 I'd even say, clear on first sight. A lot easier to understand
 and maintain than a separate method.

Assuming I'm reading this correctly, I think I'd probably express this as:

dtml-in "Catalog(REQUEST)"
  dtml-with "Catalog.getobject(data_record_id_)"
...foo...
  /dtml-with
/dtml-in

BTW, I agree that exprs should be a part of DTML. You don't want to put
significant program logic in DTML, but there are many places in which exprs
are useful:

Total: dtml-var "subtotal + shipping"

I'll grant that you can set up all of the variables you need via a
PythonMethod beforehand, but things like this can be nice and convenient...

Any power that can be given to PythonMethods securely is a boon.

Kevin


___
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] file import

2000-05-30 Thread Kevin Dangoor

- Original Message -
From: "Rick Pasotto" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 30, 2000 4:21 PM
Subject: [Zope] file import


 Second (unrelated) question: When I create and then select a new version
 I get a screen that says the version is not active and to press the
 button to activate it. Pressing the button returns me to the same
 screen saying that no version is active. What have I missed in using
 versions?

Not sure about your first question. As for this one, do you have cookies
turned off in your browser? Zope uses a cookie to keep track of which
version you're working in.

Kevin


___
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] product installation voodoo

2000-05-30 Thread Kevin Dangoor

- Original Message -
From: "michael angelo ruberto" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 30, 2000 4:11 PM
Subject: [Zope] product installation voodoo


 why do some products install fine on their own and others require voodoo
 incantations and sacrificial goats?

Usually, products written completely in Python can be installed just by
untarring the file. Products built through the web (ZClasses) usually comes
as a .zexp file, which is essentially the pickled objects that make up the
ZClasses, DTML Methods, etc. These need to be imported from the Products
Control Panel. Is that the voodoo you're talking about?

The difference is basically whether the product is just distributed as files
that go in your file system, or as objects that need to live somewhere in
your ZODB.

 can somebody tell me what the
 permissions for products should look like?

I'm not sure that it really matters as long as your webserver process can
read the files.

Kevin


___
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-dev] Calling DTML methods from Python

2000-05-29 Thread Kevin Dangoor

I believe this is in the Collector... My guess is that no one has yet
figured out a good way to make the client and namespace be passed in
automatically. This may not be desirable anyhow, because there may be times
when you want to change the client... I've actually done this once or twice.

I guess there could be something like dtml-var fooMethod params="x,y,z".
This is another one of those things that trips up newbies almost
universally, so a good solution here could really help...

Kevin

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Zope-Dev Mailing List" [EMAIL PROTECTED]
Sent: Monday, May 29, 2000 12:32 PM
Subject: Re: [Zope-dev] Calling DTML methods from Python


 On more of a ranting rather than a genuine question note,

 Why does this _horrible_ syntax for calling methods with parameters
 still have to be used?

 dtml-[whatever] "someFunc(_.None,_,[parameters])"

 *blech*

 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 )




Re: [Zope] Another question

2000-05-29 Thread Kevin Dangoor

This, or some variation of this, may do the trick (untested):

dtml-with toys
dtml-with "manage_addProduct['YourProduct']"
dtml-call "REQUEST.set('id', 'newid')"
dtml-call "YourZClass_add(_.None, _)"
/dtml-with
/dtml-with

Kevin

- Original Message - 
From: "Patrick J.M. Keane" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, May 28, 2000 6:33 PM
Subject: [Zope] Another question


 
 By default, when a new instance of a ZClass is created, it is dropped
 into the same directory as the calling forms and instance creation
 methods... Is there an easy way to designate the final location for the
 instance.  Say, as an example that I had administrative methods and
 documents all under foo/admin, but wanted new products to be placed in a
 parallel directory such as foo/toys, so that the permissions could be
 properly set for admin, allow just managers to access those methods,
 while letting the results show publicly in foo/toys?
 
 Thanks
 pk
 
 
 
 ___
 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] Deprecation of dtml-var ?

2000-05-29 Thread Kevin Dangoor

I sent Brian a message on this, and I just added it to the collector with
the 1 line patch necessary to add dtml-expr as a synonym for dtml-var:

http://classic.zope.org:8080/Collector/1279/view

Kevin

- Original Message -
From: "Paul Everitt" [EMAIL PROTECTED]
To: "Chris Withers" [EMAIL PROTECTED]
Cc: "Kevin Dangoor" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, May 29, 2000 10:04 AM
Subject: Re: [Zope] Deprecation of dtml-var ""?



 Suggestion: lobby Brian Lloyd about this.  As Chris mentioned, reducing
 the "coefficient of complexity" is something he and I are focused on.

 Shorthand notations are convenient, but when they get inconsistent, you
 wind up with the other P language. :^)

 --Paul

 Chris Withers wrote:
 
  Kevin Dangoor wrote:
   Or, how about a dtml-expr tag (which could even start out as a
simple
   synonym for dtml-var) so that people won't be confused about what is
   python and what is a variable lookup with the special calling
properties.
 
  This is a great idea :-)
 
  New  Old---
  dtml-var x dtml-var x dtml-var name="x"
  dtml-expr "x"  dtml-var expr="x" dtml-var "x"
 
  cheers,
 
  Chris
 
  PS: didn't Paul Everitt comment on this in the Perl thread?
 
  ___
  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] Deprecation of dtml-var ?

2000-05-28 Thread Kevin Dangoor

I've noticed that just about every new Zope user gets bitten by
dtml-var foo == dtml-var name="foo" and dtml-var "foo" == dtml-var
expr="foo". Messages reflecting this confusion come to the Zope list
frequently.

Everyone appreciates the shorthand, and everyone does eventually learn
the difference between dtml-var foo and dtml-var "foo". Perhaps it would
be better to use dtml-var name="foo" and dtml-var expr="foo" more often
on the list for the sake of newcomers? Or perhaps there should be a whole
(but short) chapter in the DTML that is nothing but boldface "dtml-var
"foo" is actually running a python expression".

Or, how about a dtml-expr tag (which could even start out as a simple
synonym for dtml-var) so that people won't be confused about what is
python and what is a variable lookup with the special calling properties.

I think DTML is quite nice and works very well, but I see a lot of
people get caught on this, and almost anything that can be done to remove
the barriers of entry to Zope is a good thing.

Kevin
http://www.byproducts.com - Humor and Novelties


___
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-dev] Ending up with a wrapped object through the web?

2000-05-25 Thread Kevin Dangoor

I'm trying to import KM|Net News into the latest Zope CVS. I am unable to
import the .zexp or XML files into the latest (tracebacks at the end).

When importing the .zexp, I get an "Attempt to store a wrapped persistent
object" error. This is really puzzling, because I'm not sure how a
completely through-the-web Product would have a wrapped object stored in it.
I tried removing the PythonMethods to see if they were stored in an unusual
way, and this did not change the behavior...

Does anyone have any ideas about this? It's very odd and could be a major
nuisance for people who are trying to move things between 2.1.x and 2.2...

Kevin

The .zexp gives this error:

  STRONGError Type: InvalidObjectReference/STRONGBR
  STRONGError Value: Attempt to store a wrapped persistent
object/STRONGBR
Traceback (innermost last):
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 224, in
publish_module
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 189, in
publish
  File /home/kid/Zope2/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 179, in
publish
  File /home/kid/Zope2/lib/python/ZODB/Transaction.py, line 237, in commit
  File /home/kid/Zope2/lib/python/ZODB/Connection.py, line 347, in commit
(Info: (('OFS.Application', 'Application'),
'\000\000\000\000\000\000\000\002', ''))
InvalidObjectReference: (see above)


The XML generated by 2.1.6 gives this error:
  STRONGError Type: TypeError/STRONGBR
  STRONGError Value: ('not enough arguments; expected 2, got 1',
extension class ZClasses.Method.MW at 834bc68, ())/STRONGBR
Traceback (innermost last):
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 224, in
publish_module
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 189, in
publish
  File /home/kid/Zope2/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 175, in
publish
  File /home/kid/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_importObject)
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: manage_importObject)
  File /home/kid/Zope2/lib/python/OFS/ObjectManager.py, line 506, in
manage_importObject
(Object: ElementWithAttributes)
  File /home/kid/Zope2/lib/python/ZODB/ExportImport.py, line 216, in
importFile
  File /home/kid/Zope2/lib/python/ZODB/ExportImport.py, line 318, in
importXML
  File /home/kid/Zope2/lib/python/ZODB/ExportImport.py, line 283, in
importFile
TypeError: (see above)

http://www.byproducts.com - Humor and Novelties


___
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] ANN: Perl For Zope

2000-05-25 Thread Kevin Dangoor

- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: "Zope Mailing List" [EMAIL PROTECTED]
Sent: Thursday, May 25, 2000 10:15 AM
Subject: Re: [Zope] ANN: Perl For Zope


 Zope has DTML and Python, both of which will stay.  You will have the
 option of using Perl and XSLT methods pretty soon.  If you don't need
 them or don't want them, don't use them.  There are lots of people for
 whom this will be a natural entry point in to Zope.  You happen not to
 be one of them.

I was a little puzzled when I first read the announcement, but after reading
the FAQ I think it sounds like a great idea! People who are comfortable with
perl will be able to create complete through the web Products in perl/dtml.
People who are big fans of python aren't forced to use those Products, but I
think you can bring a lot of people into the Zope fold with this.

 Sheesh, it's like we'd recommended Microsoft in here or something.  :-)

Can Active Server Pages and VBScript be far behind? :)

Kevin


___
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 write Hello Zope! portal?

2000-05-25 Thread Kevin Dangoor

Have you had a chance to look at the Zope Content Manager's Guide?
http://www.zope.org/Documentation/Guides/ZCMG-HTML/ZCMG.html

This one steps you through creating basic objects in Zope...

Kevin

- Original Message - 
From: "Jilani Khaldi" [EMAIL PROTECTED]
To: "Zope ML" [EMAIL PROTECTED]
Sent: Thursday, May 25, 2000 2:04 AM
Subject: [Zope] How to write "Hello Zope!" portal?


 Hi All and be patient, I am new to Zope,
 After I have installed Zope on my Linux box and read almost all
 documentation, I can't find a little example how to create:
 1- a single main page as I usualy do with HTML (index.html -- the main
 one);
 2- how to call another page (page1.html) from the main one;
 3- how to insert an image;
 
 Where can I find all the steps I need to create a mini portal?



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




Re: [Zope] ANN: Perl For Zope

2000-05-25 Thread Kevin Dangoor

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Kevin Dangoor" [EMAIL PROTECTED]
Cc: "Chris McDonough" [EMAIL PROTECTED]; [EMAIL PROTECTED]; "Zope
Mailing List" [EMAIL PROTECTED]
Sent: Thursday, May 25, 2000 11:05 AM
Subject: Re: [Zope] ANN: Perl For Zope


 Kevin Dangoor wrote:
  perl will be able to create complete through the web Products in
perl/dtml.

 No!!!

 Keep perl and DTML seperate. If people want to play in Perl fine, but
 keep it seperate from everything else. Perl-only methods and external
 methods, no DTML mangling and no perl expression in dtml tags. Newbies
 get confused enough with python...

Sorry, I didn't mean to make it sound like THAT! (Which would indeed be
appalling.) What I meant was that a typical through the web product
developed today would be a combination of PythonMethods and DTML... people
coming from the perl world could make their products using PerlMethods and
DTML. Expressions in DTML are still python, which shouldn't be *too* painful
for perl folks.

Kevin


___
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] new to zope basic questions

2000-05-25 Thread Kevin Dangoor

- Original Message -
From: "Michael Douglass" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 25, 2000 12:04 PM
Subject: [Zope] new to zope basic questions


 just started working through the zcmg document from the zope site  have
 already found a question i cant answer. completed the first tutorial but
my
 screen does not have such things as the control panel etc down the left
 side. i am wondering if i accessed the interface correctly. the process i
 followed was
 1. logged into the members part of zope.org
 2. then accessed the 'Manage items in your personal folder' link
 this seemed to give me the appropriate interface without control panel
etc.
 have gone to add a user  there is no acl users link etc.
 sorry about asking such basic questions but am stumped.

I believe the ZCMG is intended for your own installation of Zope. Zope.org
provides a restricted subset of Zope's features... To really play with Zope
(and add-on Products, etc.), I'd recommend downloading and installing it.
You'll find you can get Zope up and running on most platforms very easily.

Kevin


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




Re: [Zope] Zope Email (syndication)

2000-05-25 Thread Kevin Dangoor

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Kevin Dangoor" [EMAIL PROTECTED]
Cc: "Zope Mailing List" [EMAIL PROTECTED]
Sent: Thursday, May 25, 2000 12:43 PM
Subject: Re: [Zope] Zope Email (syndication)


 I think plain mailhosts will do the sending thing quite well, they
 handle mail sending using an external mail server :-)

True, they do use an external server. But can they handle a really large
volume of mail? I seem to remember getting an error just sending about 35
messages a month ago, but I could have something misconfigured...

  I think it may also be nice to provide the ability to delegate the mail
  sending from a different machine than the Zope web server... Whatever
the
  mail sending architecture is, it needs to be able to send messages to
  hundreds of thousands of users without bogging down people coming to the
  site. That's a tall order...

 Not really, ZEO would solve this problem no matter what the
 architecture...

You're right about that. ZEO is probably a good way to do this delegation...

 Please chuck your thoughts/comments in the Wiki though, I'd love to see
 this go somewhere :-)

Will do... Maybe I'm raising a non-issue, if mailhosts can handle the load
and ZEO will deal with the delegation...

Kevin


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




Re: [Zope] Re: [Zope-Annce] ANN: Perl For Zope - why I'm bummed

2000-05-25 Thread Kevin Dangoor

- Original Message -
From: "Roman Milner" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 25, 2000 1:48 PM
Subject: [Zope] Re: [Zope-Annce] ANN: Perl For Zope - why I'm bummed


 Here is why I'm bummed about this.  Like other people who have posted
 - after years of coding perl for money, I have vowed never to do it
 again.  (I find that it produces encourages unmaintainable code.)
 Also, I think my main marketable skill now is Zope.  So, were I to
 want to find a different job now coding Zope - perl will be expected
 to be in my skill set.  Other companies using zope will almost
 certainly have perl methods laying around that need to be maintained.
 So, basically, in order to find a job using zope - I'll have to
 relearn, and code in perl at that job.

 So, I believe this is enough reason for me to start considering other
 web technologies for me, and my company.

I think Zope offers a ton of features that I wouldn't want to give up. (And
I've been watching what the other servers out there are doing, and I still
appreciate the power given by Zope.)

It's a fact of web programming that there are lots of tools written in
different languages. CORBA, XML-RPC and SOAP all provide glue between
languages today. It's certainly possible you could come across someone who
has applications written in several different languages that use one or more
of these technologies to talk to each other... Adding PerlMethods just adds
another interface... one that can potentially expand the Zope user base
quite dramatically. Not to mention the possibility of tying in to some of
the vast amounts Perl code that already exists out there.

I haven't heard of anyone standing up and saying "I'm not going to use
Linux, because people might write tools in perl [or awk, or C, or lisp, or
sh, or yacc or postscript, or ...]" Perhaps that's a better way to look at
Zope... not as a python web application, but as a high-level OS extension
for dynamic web applications.

Kevin


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




Re: [Zope] ANN: Perl For Zope

2000-05-25 Thread Kevin Dangoor

- Original Message -
From: "Eric W. Sink" [EMAIL PROTECTED]
To: "Paul Everitt" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, May 25, 2000 4:05 PM
Subject: Re: [Zope] ANN: Perl For Zope


[snip]
 Maybe it's about "scripting languages vs. Java".

 Sad to say, a majority of IT people in the world think that the terms
 "application server" and "Java" are nearly synonymous.  Next time you
 have a chance to visit a major Internet tradeshow, look around at all
 the Java-based application servers.  You can't swing a dead cat
 without hitting one of them.
[snip]
 think.  In other words, let's just suppose that Zope really wants to
 be 'The Scripting-Language Application Server'.

Or maybe just "The Application Server/Content Management System"? Here's a
tally of what we've got (* = to be released):
HTTP
WebDAV
XML-RPC
SOAP*
Python
C (if you really want to :)
XML/XSLT*
Perl*
SQL (Oracle, Sybase, PostgreSQL, ...)

That's a pretty broad range of support. You can attach to all sorts of good
things with a system like that. Someone might look at that list and say
"man, that's one powerful, flexible application platform!" Those IT folks
you're referring to might say, "but we just invested $500,000 in Java based
stuff".

Now, I have no idea what all might be in the works at DC... but, I wouldn't
be surprised if they happened to find the right partner that they might
integrate some Java in with Zope. In fact, through the wonder of Open
Source, they could create JavascriptMethods by borrowing from Mozilla and
use some of the Apache group's work to get servlets and the like to play
nice with Zope objects.

I'm not trying to scare people with this made-up talk of Java. My point is
that Zope is a very powerful framework that is already fairly language
agnostic. It will probably benefit by having better ties to the other widely
used languages.

I don't know Java. But, I wouldn't be afraid to hook into a servlet that
provides useful functionality. I use tools all the time that I have no
desire to look inside of.

Yes, I agree that Zope needs more newbie docs and APIs need to be better
documented (and I do believe that those things are moving forward). But,
evolution of the Zope platform is important as well... and keep in mind that
DC is not doing all of the work alone here. ActiveState is involved as well
(just as DC has a partnership for the XSLT stuff that is underway).

Kevin


___
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-dev] Problems with LoginManager form-based login

2000-05-24 Thread Kevin Dangoor

- Original Message -
From: "Phillip J. Eby" [EMAIL PROTECTED]
To: "Itamar Shtull-Trauring" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, May 24, 2000 9:59 AM
Subject: Re: [Zope-dev] Problems with LoginManager form-based login


 Make your root acl_users a LoginManager, with the loginForm there.
 LoginManager will only allow "Anonymous" to log in if it is the root
 acl_users.  This is how standard user folders behave, and *have to*
because
 of the way manage_workspace works, unfortunately.  Until/unless a new
login
 protocol is worked out in Zope, this is the workaround.

Can you make the root acl_users a LoginManager now? (Is that in 2.1.6 or the
CVS version?) I know that the new ownership stuff made this impossible to do
in the CVS version (unless that's already been changed...)

Kevin


___
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] still trying to get Catalog to work in my python product

2000-05-24 Thread Kevin Dangoor

- Original Message -
From: "ed colmar" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 23, 2000 11:54 AM
Subject: [Zope] still trying to get Catalog to work in my python product


 After looking over the PTK snapshot, I've tried to duplicate the catlog
 that is implemented there.  I could not find any search utilities built
in,
 so I'm assuming this is still done by adding the ZsearchInterface from the
 management screen.  Is this right, or is there some built-in PTK searching
 tool?

ZSearchInterface is basically just a quickie tool to generate DTML Methods.
You can always make the DTML on your own... it's really not too difficult to
do searching of a ZCatalog (there are a couple related howtos on zope.org).

Kevin


___
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] Importing a 2.1 .zexp file into 2.2

2000-05-24 Thread Kevin Dangoor

I'm trying to import the KM|net News product into my CVS Zope (just
updated it a moment ago, with no luck). I get the following error:

  STRONGError Type: InvalidObjectReference/STRONGBR
  STRONGError Value: Attempt to store a wrapped persistent
object/STRONGBR

Traceback (innermost last):
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 224, in
publish_module
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 189, in
publish
  File /home/kid/Zope2/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 179, in
publish
  File /home/kid/Zope2/lib/python/ZODB/Transaction.py, line 237, in commit
  File /home/kid/Zope2/lib/python/ZODB/Connection.py, line 332, in commit
(Info: (('OFS.Application', 'Application'),
'\000\000\000\000\000\000\000\002', ''))
InvalidObjectReference: (see above)

Any ideas? Is anyone able to import this?

Kevin
http://www.byproducts.com - Humor and Novelties


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




Re: [Zope] ZClass acting up?

2000-05-22 Thread Kevin Dangoor

- Original Message -
From: "Erik Enge" [EMAIL PROTECTED]
To: "Kevin Dangoor" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, May 22, 2000 12:08 PM
Subject: Re: [Zope] ZClass acting up?


 "Kevin Dangoor" [EMAIL PROTECTED] writes:

  This seems like odd behavior to me. Did you check your Subobjects tab to
  make sure that the appropriate subobjects are still selected?

 There is no way to select a Z Class that is a child of another Z
 Class in the subobject list.  Should I be able to do that? Seems to
 that this was never possible.  All I can select is test_product, but
 that isn't what I want.  Got a clue?  Is it a bug or functionality
 that just isn't supposed to be there?

You're correct, there is no way to select a ZClass that is the child of
another in the subobject list. (It is assumed to be available).

I misread your original note. I didn't realize that test_project not only
had test_folder as a base class, but is a class created underneath
test_folder. I've never tried to do that, and it may not be a case that was
considered when they built ZClasses...

Kevin


___
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] Refresh adds objects to Add list again

2000-05-20 Thread Kevin Dangoor

Hi,

I'm working with a very simple Product. Whenever I Refresh it, it shows
up an additional time in the Add list. Is this expected behavior? I don't
think I'm doing anything odd at all in the __init__.py or in the product
itself. The __init__.py consists of basically just a single
context.registerClass...

Kevin
http://www.byproducts.com - Humor and Novelties


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