grendelAI | 1 Sep 2003 04:45
Picon
Favicon

CMFFormController & TALES

Just started trying to implement a simple form page with CMFFormController.
Manage to get it up and working; however, I cannot figure out how to
implement a simple CANCEL button. Specifically, I want the action to
redirect to the container of the page. I tried using the below TALES
expression
but receive an global error on an undefined here variable.

python:here.navigationParent(here, template.getId())

Is it possible to use the here variable inside the metadata properties? Or
must I use a transfer action to a script that will perform the expression?

What is the common methodology for implementing the CANCEL button?

Help is much appreciated.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Ryan | 1 Sep 2003 11:08
Picon
Picon

Adding Comments

Can anyone tell me how I can allow users who are not logged in, to add comments to content pages within plone. I know you have to ‘enable discussion’ in the pages properties but this only allows people who are logged in to add comments. I have also tried looking at the security permissions through the Manage interface but the only permission I can find is ‘Add CMFWiki Comment’ which when enabled for Anonymous user still does not solve the problem. Do I have to find the right permission, uncheck the ‘acquire’ checkbox and then check the ‘Anonymous’ box?

 

Can anyone help?

 

--------------------------------------------------------------

Ryan Hargreaves

MIMAS Support Officer

 

 

Hrant Arakelyan | 1 Sep 2003 13:40
Picon
Favicon

Problem when installing archetypes, please help!!!

Hello, I have some experience in Plone already, now I wanted to create new 
content types using archetypes. I've downloaded everything necessary from 
sourceforge.net, then read the documentations regarding the installations of 
archetypes in plone.org. i think I've done everything right, but when 
creating the external method to register he archetypes, when i click add, it 
gives me the following error:
ImportError

Sorry, a site error occurred.

Traceback (innermost last):

Module ZPublisher.Publish, line 150, in publish_module
Module Products.Localizer, line 58, in new_publish
Module ZPublisher.Publish, line 114, in publish
Module Zope.App.startup, line 182, in zpublisher_exception_hook
Module ZPublisher.Publish, line 98, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.ExternalMethod.ExternalMethod, line 59, in 
manage_addExternalMethod
Module Products.ExternalMethod.ExternalMethod, line 110, in __init__
Module Products.ExternalMethod.ExternalMethod, line 133, in manage_edit
Module Products.ExternalMethod.ExternalMethod, line 140, in getFunction
Module App.Extensions, line 144, in getObject
__traceback_info__: ('C:\\Program 
Files\\Plone\\Zope\\lib\\python\\Products\\Archetypes\\Extensions\\Install.py', 
'Archetypes.Install')
Module C:\Program 
Files\Plone\Zope\lib\python\Products\Archetypes\Extensions\Install.py, line 
2, in ?
ImportError: cannot import name listTypes (Also, an error occurred while 
attempting to render the standard error message.)

Somebody, please help me, tell me how to solve the problem!!! As far as i 
can see in python scripts, listTypes exists right where the program tries to 
import it from. I don't understand what's the problem. I'd really be very 
thankful if anybody could help me, I need it very much. I'm running plone on 
Win2000.
Thank You!!

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
jvlb | 1 Sep 2003 13:52
Picon
Favicon

Re: Newbie question regarding Python under Plone

Hi 

 It worked! :) i tried other things but not return context.fim...
 One more obstacle down :)

 I really like Plone but sometimes is difficult to not feel frustrated...

 Always learning :)

Citando Raphael Ritz <ritz@...>:

 

 jvlb@... wrote:

 > You can simple return the called DTML Method, like this:
 > 
 >     return yourDTMLMethod(context,context.REQUEST)
 > 
 >
 > Just to explain a little more the situation : 
 >I use a DTML-Method to show a form to a user so he can select a group of 
 >records to delete then pass it to a script who calls a ZSQL-Method in order
 to 
 >delete them and then I would like to call a DTML-Method to present a message

 >to the user.
 >
 > I tried return fim(context,context.REQUEST) 
 >
 Did you try

 return context.fim(context,context.REQUEST) 

 Raphael

 
 >and I got the following error:
 >
 > Error Type
 >  NameError
 >
 > Error Value
 >  global name 'fim' is not defined
 >
 >fim is my DTML-Method and he's in the same folder.What am I doing 
 >wrong/missing?
 >
 > Thx for your help
 >
 > João
 >
 >__________________________________________________________
 >O email preferido dos portugueses agora com 
 >100Mb de espaço e acesso gratuito à Internet
 >http://www.portugalmail.com/gold/
 >
 >
 >-------------------------------------------------------
 >This sf.net email is sponsored by:ThinkGeek
 >Welcome to geek heaven.
 >http://thinkgeek.com/sf
 >_______________________________________________
 >Plone-users mailing list
 >Plone-users@...
 >https://lists.sourceforge.net/lists/listinfo/plone-users
 >
 >  
 >

__________________________________________________________
Porque insiste em pagar o dobro? Adira à ligação Portugalmail.
http://acesso.portugalmail.pt/maisbarato

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Geoff Davis | 1 Sep 2003 14:28

Re: CMFFormController & TALES

The TALES expressions are set up with variables that parallel those
available to the variables in actions.  "here" is unavailable, but here's
what you get:

            'object_url':   object_url,
            'folder_url':   folder.absolute_url(),
            'portal_url':   portal.absolute_url(),
            'object':       context,
            'folder':       folder,
            'portal':       portal,
            'nothing':      None,
            'request':      getattr( context, 'REQUEST', None ),
            'modules':      SecureModuleImporter,
            'member':       member,
            'state':        controller_state,

Try python:context.getParentNode().absolute_url()

Geoff

"grendelAI" <grendelAI@...> wrote in message
news:biubrg$1oh$1 <at> sea.gmane.org...
> Just started trying to implement a simple form page with
CMFFormController.
> Manage to get it up and working; however, I cannot figure out how to
> implement a simple CANCEL button. Specifically, I want the action to
> redirect to the container of the page. I tried using the below TALES
> expression
> but receive an global error on an undefined here variable.
>
> python:here.navigationParent(here, template.getId())
>
> Is it possible to use the here variable inside the metadata properties? Or
> must I use a transfer action to a script that will perform the expression?
>
> What is the common methodology for implementing the CANCEL button?
>
> Help is much appreciated.
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Geoff Davis | 1 Sep 2003 14:30

Re: Problem when installing archetypes, please help!!!

You need to put the validation, transform, and generator modules in
~zope/lib/python and not in the Products folder.

"Hrant Arakelyan" <hrantjan@...> wrote
in message news:BAY9-F65L2jpWkfb81I00009a97@...
> Hello, I have some experience in Plone already, now I wanted to create new
> content types using archetypes. I've downloaded everything necessary from
> sourceforge.net, then read the documentations regarding the installations
of
> archetypes in plone.org. i think I've done everything right, but when
> creating the external method to register he archetypes, when i click add,
it
> gives me the following error:
> ImportError
>
> Sorry, a site error occurred.
>
> Traceback (innermost last):
>
> Module ZPublisher.Publish, line 150, in publish_module
> Module Products.Localizer, line 58, in new_publish
> Module ZPublisher.Publish, line 114, in publish
> Module Zope.App.startup, line 182, in zpublisher_exception_hook
> Module ZPublisher.Publish, line 98, in publish
> Module ZPublisher.mapply, line 88, in mapply
> Module ZPublisher.Publish, line 39, in call_object
> Module Products.ExternalMethod.ExternalMethod, line 59, in
> manage_addExternalMethod
> Module Products.ExternalMethod.ExternalMethod, line 110, in __init__
> Module Products.ExternalMethod.ExternalMethod, line 133, in manage_edit
> Module Products.ExternalMethod.ExternalMethod, line 140, in getFunction
> Module App.Extensions, line 144, in getObject
> __traceback_info__: ('C:\\Program
>
Files\\Plone\\Zope\\lib\\python\\Products\\Archetypes\\Extensions\\Install.p
y',
> 'Archetypes.Install')
> Module C:\Program
> Files\Plone\Zope\lib\python\Products\Archetypes\Extensions\Install.py,
line
> 2, in ?
> ImportError: cannot import name listTypes (Also, an error occurred while
> attempting to render the standard error message.)
>
> Somebody, please help me, tell me how to solve the problem!!! As far as i
> can see in python scripts, listTypes exists right where the program tries
to
> import it from. I don't understand what's the problem. I'd really be very
> thankful if anybody could help me, I need it very much. I'm running plone
on
> Win2000.
> Thank You!!
>
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Elliot Clifton | 1 Sep 2003 15:47

Modifying TTWTypes

Hi,

I want to disable the ID field in the add/edit views of a TTWType 
object, so that its ID cannot be changed by the user. Presumably this is 
possible using skinning, but how?

Thanks,

Elliot

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Santi BiL/BUB | 1 Sep 2003 17:35
Favicon

Plone, IIS and port 80

Hi all,

we are currently running a plone beta site on port 81. Plone is installed in 
Windows 2000 Server with an already working IIS (port 80). We need to "share" 
the server, the existing IIS on port 80 and Zope (could it be possible in port 80 
too?), but we don't know how to solve this problem, is there an easy reliable 
solution?

We have read How to front Zope with Microsoft IIS, 
<http://www.zope.org/Members/hiperlogica/ASP404> but we don't know how to 
make it work. In a default Win installation, let's say 
C:\Plone
       \Data
       \Python 
       \Zope
where do we have to put default.asp? which is the directory to be served from 
IIS?

Any suggestion, explanation, would be really appreciated. 

Thanks a lot,

--

-- 
Santi Balagué i Linares
Unitat de Tecnologies de la Informació
Biblioteca de la Universitat de Barcelona
Telf. 93 403 45 89

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Tim Terlegård | 1 Sep 2003 19:22
Picon
Picon
Favicon

Re: Re: Problem when installing archetypes, please help!!!

I have validation and generator in the Archetypes directory,
just the way it was packaged. It seems to work fine.

Tim

> You need to put the validation, transform, and generator modules in
> ~zope/lib/python and not in the Products folder.
> 
> "Hrant Arakelyan" <hrantjan@...> wrote
> in message news:BAY9-F65L2jpWkfb81I00009a97@...
> > Hello, I have some experience in Plone already, now I wanted to 
> create new
> > content types using archetypes. I've downloaded everything 
> necessary from
> > sourceforge.net, then read the documentations regarding the 
> installationsof
> > archetypes in plone.org. i think I've done everything right, but 
> when> creating the external method to register he archetypes, when 
> i click add,
> it
> > gives me the following error:
> > ImportError
> >
> > Sorry, a site error occurred.
> >
> > Traceback (innermost last):
> >
> > Module ZPublisher.Publish, line 150, in publish_module
> > Module Products.Localizer, line 58, in new_publish
> > Module ZPublisher.Publish, line 114, in publish
> > Module Zope.App.startup, line 182, in zpublisher_exception_hook
> > Module ZPublisher.Publish, line 98, in publish
> > Module ZPublisher.mapply, line 88, in mapply
> > Module ZPublisher.Publish, line 39, in call_object
> > Module Products.ExternalMethod.ExternalMethod, line 59, in
> > manage_addExternalMethod
> > Module Products.ExternalMethod.ExternalMethod, line 110, in __init__
> > Module Products.ExternalMethod.ExternalMethod, line 133, in 
> manage_edit> Module Products.ExternalMethod.ExternalMethod, line 
> 140, in getFunction
> > Module App.Extensions, line 144, in getObject
> > __traceback_info__: ('C:\\Program
> >
> Files\\Plone\\Zope\\lib\\python\\Products\\Archetypes\\Extensions\\Install.p
> y',
> > 'Archetypes.Install')
> > Module C:\Program
> > 
> Files\Plone\Zope\lib\python\Products\Archetypes\Extensions\Install.py,line
> > 2, in ?
> > ImportError: cannot import name listTypes (Also, an error 
> occurred while
> > attempting to render the standard error message.)
> >
> > Somebody, please help me, tell me how to solve the problem!!! As 
> far as i
> > can see in python scripts, listTypes exists right where the 
> program tries
> to
> > import it from. I don't understand what's the problem. I'd 
> really be very
> > thankful if anybody could help me, I need it very much. I'm 
> running plone
> on
> > Win2000.
> > Thank You!!
> >
> > _________________________________________________________________
> > STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> > http://join.msn.com/?page=features/junkmail
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Plone-users mailing list
> Plone-users@...
> https://lists.sourceforge.net/lists/listinfo/plone-users
> 

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Dieter Maurer | 1 Sep 2003 19:57
Picon

Re: Join control

Nandalal Gunaratne wrote at 2003-8-31 03:49 +0000:
 > I want to know
 > 1. how to configure Plone so that only annonymous will not see the "join"

Something must be wrong with this sentence.

It says:

  "Anonymous" should not the the "join" action but non "Anonymous"
  users should see it.

  That seems to be nonsense, as non-"Anonymous" users have already
  joined. No need to do it again.

That said, you can configure the "Join" action of "portal_registration"
and obtain what you want by changing its "Condition".

 > 2. Memebers can allow join for new members and a log is kept as to which 
 > memebers introduced these new memebers

You will need to customize the "RegistrationTool" ("portal_registration")
considerable to achieve this.

In my view, it is much better not to think in terms of joining for
this use case. Instead, a member directly registers new members.
You extend the member data to keep the user that did the registration.

Dieter

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

Gmane