Remember + Plone 3

0 views
Skip to first unread message

Matthew Wilkes

unread,
Jul 25, 2008, 7:37:01 AM7/25/08
to plone-use...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,

Nice to see you again last night, I thought I'd throw a question your
way to say thanks.

I've got a remember-based content type (based on sampleremember) in
opsuite.member. The class itself is
opsuite.member.content.opsuitemember.opsuitemember. Its FTI is being
added and it's registered as the default member type, but when I try
adding it I get:

Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.CMFFormController.FSControllerPythonScript, line
104, in __call__
Module Products.CMFFormController.Script, line 145, in __call__
Module Products.CMFCore.FSPythonScript, line 140, in __call__
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.CMFCore.FSPythonScript, line 196, in _exec
Module None, line 16, in createMember
- <FSControllerPythonScript at /site/createMember>
- Line 16
Module OFS.Traversable, line 301, in restrictedTraverse
Module OFS.Traversable, line 241, in unrestrictedTraverse
- __traceback_info__: ([], 'opsuitemember.2008-07-25.4420636198')
Module Products.CMFPlone.FactoryTool, line 152, in __getitem__
Module Products.CMFPlone.PloneFolder, line 348, in invokeFactory
Module Products.CMFCore.TypesTool, line 716, in constructContent
Module Products.CMFCore.TypesTool, line 274, in constructInstance
Unauthorized: Cannot create opsuitemember


I suspect it's something to do with the FTI having a bad factory, but
I'm not sure. The GS is:

<?xml version="1.0"?>
<object name="OpSuiteMember"
meta_type="Factory-based Type Information with dynamic views"
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<property name="title">opsuitemember</property>
<property
name="description">Opinion Suite Member</property>
<property name="content_icon">user.gif</property>
<property name="content_meta_type">OpSuiteMember</property>
<property name="product">opsuite.member</property>
<property name="factory">addOpSuiteMember</property>
<property name="immediate_view">base_edit</property>
<property name="default_view">base_view</property>
<property name="global_allow">False</property>
<property name="filter_content_types">False</property>
<property name="allowed_content_types"/>
<property name="allow_discussion">False</property>
<alias from="(Default)" to="(dynamic view)"/>
<alias from="edit" to="base_edit"/>
<action title="View" action_id="view" category="object"
condition_expr=""
url_expr="string:${object_url}/base_view" visible="True">
<permission value="View"/>
</action>
<action title="Edit" action_id="edit" category="object"
condition_expr=""
url_expr="string:${object_url}/base_edit" visible="True">
<permission value="Modify portal content"/>
</action>
<action title="Properties" action_id="metadata" category="object"
condition_expr="" url_expr="string:${object_url}/base_metadata"
visible="True">
<permission value="Modify portal content"/>
</action>
<action title="References" action_id="references" category="object"
condition_expr="object/archetype_tool/has_graphviz"
url_expr="string:${object_url}/reference_graph" visible="True">
<permission value="Modify portal content"/>
<permission value="Review portal content"/>
</action>
</object>


Anyone got any thoughts?

Matt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFIibrdZnKd+ctxHMoRAp9KAJ41RIe6Ldrnj5IYkUwJMGutpdFxoACgheYL
XOSNiV9DpKvuH8gKWQQLnzE=
=Ubic
-----END PGP SIGNATURE-----

Dan Fairs

unread,
Jul 25, 2008, 7:50:18 AM7/25/08
to plone-use...@googlegroups.com
>
> Nice to see you again last night, I thought I'd throw a question your
> way to say thanks.
>

Nice way to show your appreciation :)

It was good to catch up with everyone.

> I've got a remember-based content type (based on sampleremember) in
> opsuite.member. The class itself is
> opsuite.member.content.opsuitemember.opsuitemember. Its FTI is being
> added and it's registered as the default member type, but when I try
> adding it I get:

[snip]

Not sure about remember specifically - but for this sort of thing,
enabling Verbose Security (and the Python security implementation,
check zope.conf for more info) can shed a little light on what's going
on. Obviously putting an import pdb;pdb.set_trace() in there will give
you more poking-around-ability.

Sorry I can't be more helpful :)

Cheers,
Dan

--
Dan Fairs <dan....@gmail.com> | http://www.stereoplex.com/

Fraser Stephens

unread,
Jul 25, 2008, 8:43:13 AM7/25/08
to plone-use...@googlegroups.com
2008/7/25 Dan Fairs <dan....@gmail.com>:

> It was good to catch up with everyone.

Indeed. And the Magic Roll afterward :-)

F.
--
Fraser Stephens

Reply all
Reply to author
Forward
0 new messages