[Zope] view DTML source

2000-11-24 Thread Anders Eriksson

Hello zopistas,

On the zope.org there is a 'method' called view_source, which lets you
see the DTML source of a page. I 'borrowed' this code, by using
view_source on itself and got this:

!--#var standard_html_header--
pre
!--#var "document_src(REQUEST,RESPONSE)" html_quote--
/pre
!--#call "RESPONSE.setHeader('content-type','text/html')"--
!--#var standard_html_footer--

I then created a DMTL-document called 'view_source' with this content.
But when I run, using http://swescout.myip.org/index_html/view_source
it I get this traceback:

Traceback (innermost last):
  File D:\SweScout\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File D:\SweScout\lib\python\ZPublisher\Publish.py, line 187, in publish
  File D:\SweScout\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook
(Object: index_html)
  File D:\SweScout\lib\python\ZPublisher\Publish.py, line 171, in publish
  File D:\SweScout\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: view_source)
  File D:\SweScout\lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: view_source)
  File D:\SweScout\lib\python\OFS\DTMLDocument.py, line 177, in __call__
(Object: view_source)
  File D:\SweScout\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__
(Object: view_source)
  File D:\SweScout\lib\python\OFS\DTMLMethod.py, line 168, in __call__
(Object: standard_html_header)
  File D:\SweScout\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__
(Object: standard_html_header)
AttributeError: __call__

This is my data:
Zope version: Zope 2.2.2 (binary release, python 1.5.2, win32-x86)
Python version: 1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)] 
System Platform: win32 


Anyone that know why I get this error and how I fix it?


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

Science is everything we understand well enough to explain to a computer. 
Art is everything else. - David Knuth



___
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[2]: [Zope] view DTML source

2000-11-24 Thread Anders Eriksson

Hello Dieter,

Friday, November 24, 2000, 10:06:22 PM, you wrote:

DM Anders Eriksson writes:
DM   ... view source traceback ...
DM   (Object: standard_html_header)
DM   AttributeError: __call__
DM That is very strange as "standard_html_header" does have
DM a "__call__" method.
DM Thus, I can not tell you, why you see this behaviour.

Maybe I have something wrong in my standard_html_header? It's kind of
complex (.I have copied it.) I will remove it and try again.

DM However, you may use "document_src" directly in the
DM URL. I.e. you do not need a special DTML method 'view_source".
DM Try something like this:
DM http:/index_html/document_src
DM I know, it would be nicer to use "view_source" but 

AFAIU there is two problems with using document_src directly
1) I can't use the html_quote param
2) Anonymously users can't use this on 'standard' Zope. I tried on
zope.org but it want me to log in. Using view_source I don't need to
do this.

This can of cause be me misunderstanding ;-)

Thanks for your reply!
-- 
Best regards,
 Andersmailto:[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] Letting a user create something

2000-11-16 Thread Anders Eriksson

Hello,

I have installed the Yihaw product and it work just fine. But I have
one problem, and I guess this is kind of a general question.

How do I let the user do something? e.g. Create a folder.

In  this particular case it's a Yihaw folder (or any of the other
Yihaw entities. I understand that the user must have the rights to do
it (which I have done) but somehow there must be some
method/function/special character that I can include in my dtml 'code'

The standard dropdown box is just fine but I want to have it in my own
page that has my coloring scheme, etc ...

I guess that this is a stupid question but PLEASE PLEASE answer this
question so I can continue my adventure into the world of Zope!

  

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

To me, boxing is like couples having sex, except there's no foreplay,
no naked people and the people are hitting each other with big red gloves.



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




[Zope] Editing images

2000-11-12 Thread Anders Eriksson

Hello zopistas,

I have some images in an image folder within Zope. Now I need to edit
these images but I can't figure out how?

I guess that the images are withing the Data.fs but how to get them
out? If I do an export they wind up in a .zexp which I don't now how
to expand outside of Zope...

Please help!!

  

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

Science is everything we understand well enough to explain to a computer. Art is 
everything else. - David Knuth



___
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] Yihaw product Catalog error

2000-11-09 Thread Anders Eriksson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello peter,

Wednesday, November 08, 2000, 8:46:49 PM, you wrote:

pb I have installed the Yihaw product, because I am going to use the
Contact
pb class.
pb I can add a contact, but after having done that and I click the
newly
pb created Contact I get a NameError.

pb Error Type: NameError
pb Error Value: Catalog

Just a guess! You didn't create a ZCatalog named Catalog in the root.

- --
Best regards,
 Andersmailto:[EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: PGP 6.5i

iQA/AwUBOgrT1aTtRA/JSm7JEQJmLQCgu64yfkb1Ouj3MWtDQouPuF9S17EAoKSc
gBPBWB0Z2mBp/kuVTzt3Z2SU
=CIsL
-END PGP SIGNATURE-



___
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

2000-11-04 Thread Anders Eriksson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Max,

Sunday, November 05, 2000, 2:20:09 AM, you wrote:

MMS My problem is whenever I try to use to management console, as to
add a
MMS directory named for my domain, to start out on the content
developer
MMS tutorial, I get a message something like superuser cannot own
object.
MMS Although I have tried a few things, at the moment my zope
account is the
MMS Administrator, since that seems like a good superuser account. 
I claim I am
MMS logged in as another user on the win2k box, who is a member of
the
MMS administrator group.

I had this 'problem' also, and it turned out to be (as usual) me not
reading the manual correctly.

When You install Zope you're asked for a name and password for an
superuser account. THIS USER CAN'T OWN ANY OBJECTS! So the first
thing
you need to do when the installation is done is to start Zope and log
in as superuser and CREATE A USER! When You do this observe that you
need to select the Role you want for the user Manager and/or Owner. I
you don't select the can't do 'anything'...

- --
Best regards,
 Andersmailto:[EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: PGP 6.5i

iQA/AwUBOgSsZqTtRA/JSm7JEQLhlwCdFxmUiIk+WifeV3evwJl8LFuzU6MAoJx4
lEq6zETOZzFcKLswvV0N3h9p
=9UXU
-END PGP SIGNATURE-



___
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] Combining products

2000-11-03 Thread Anders Eriksson

Hello Zopistas,

As a newbee I have some difficulties understanding everything about
Zope (.but I'm getting there.)

What if I want to combine two of the larger products, The Portal
ToolKit and the Squishdot. How would one go about to do this?

I would like to have the membership and the other parts from PTK added
to the Squishdot (or the other way around - which ever is easiest).

I also wonder: Is there someway I can install the PTK or the Squishdot
in the Zope root folder? This so that I can use the domain URL without
any subfolders. e.g. www.mydomain.org instead of www.mydomain.org/ptk


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

Science is everything we understand well enough to explain to a computer. Art is 
everything else. - David Knuth



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




[Zope] PTK - member can reconfigure portal

2000-09-07 Thread Anders Eriksson

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

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

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

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

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

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

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




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