[Plone-Users] googlemodifycontent — 'NoneType' object has no attribute 'GetHtmlLink'

8 views
Skip to first unread message

David Siedband

unread,
Mar 24, 2012, 6:04:20 PM3/24/12
to plone-users
I have a Plone 3.35 site running the GoogleDocs in Plone (GDIP) stack.

I don't get any errors starting buildout, and I'm able to install the "googleauthentication" and "googlemodifycontent" products in my Plone site.

When I add a file to my site, I can see it show up in GoogleDocs. However, when I go to edit it in place, I get an error about:

AttributeError: 'NoneType' object has no attribute 'GetHtmlLink'

Any ideas what's happening here?

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.Five.browser.metaconfigure, line 417, in __call__
Module Shared.DC.Scripts.Bindings, line 313, in __call__
Module Products.PloneHotfix20110531, line 106, in _patched_bindAndExec
Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
Module Products.PageTemplates.PageTemplate, line 98, in pt_render
Module zope.pagetemplate.pagetemplate, line 117, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 891, in do_useMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 957, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 861, in do_defineMacro
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 949, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 536, in do_optTag_tal
Module zope.tal.talinterpreter, line 521, in do_optTag
Module zope.tal.talinterpreter, line 516, in no_tag
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 949, in do_defineSlot
Module zope.tal.talinterpreter, line 346, in interpret
Module zope.tal.talinterpreter, line 408, in do_startTag
Module zope.tal.talinterpreter, line 485, in attrAction_tal
Module Products.PageTemplates.Expressions, line 230, in evaluateText
Module zope.tales.tales, line 696, in evaluate
- URL: index
- Line 12, Column 1
- Expression: <PathExpr standard:'view/url_doc'>
- Names:
{'container': <ATFile at /bairwmp/BACWA Project Contacts.xls>,
'context': <ATFile at /bairwmp/BACWA Project Contacts.xls>,
'default': <object object at 0x7f5e3e1b0200>,
'here': <ATFile at /bairwmp/BACWA Project Contacts.xls>,
'loop': {},
'nothing': None,
'options': {'args': (<Products.Five.metaclass.SimpleViewClass from /home/zope/buildout/eggs/collective.googlemodifycontent-1.0.0-py2.4.egg/collective/googlemodifycontent/browser/googlemodifycontent.pt object at 0x8b70b50>,)},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x870d680>,
'request': <HTTPRequest, URL=http://gdocs.bairwmp.org/BACWA%20Project%20Contacts.xls/@@googlemodifycontent>,
'root': <Application at >,
'template': <ImplicitAcquirerWrapper object at 0x8b70dd0>,
'traverse_subpath': [],
'user': <PloneUser 'siebo'>,
'view': <Products.Five.metaclass.SimpleViewClass from /home/zope/buildout/eggs/collective.googlemodifycontent-1.0.0-py2.4.egg/collective/googlemodifycontent/browser/googlemodifycontent.pt object at 0x8b70b50>,
'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0x8b74390>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 163, in _eval
Module Products.PageTemplates.Expressions, line 125, in render
Module collective.googlemodifycontent.browser.googlemodifycontent, line 69, in url_doc
AttributeError: 'NoneType' object has no attribute 'GetHtmlLink'

Thanks,

--
David Siedband
http://zentraal.com


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Plone-Users mailing list
Plone...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users

Reply all
Reply to author
Forward
0 new messages