when creating an instance, ask for cubes specific options properly (fix #607349)
"""authentication using google authentication service:organization: Logilab:copyright: 2008-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses"""__docformat__="restructuredtext en"fromcubicweb.web.views.basecomponentsimportUserLinkfromcubicweb.web.views.actionsimportLogoutActionfromgoogle.appengine.apiimportusersclassGACWUserLink(UserLink):defanon_user_link(self):self.w(self.req._('anonymous'))self.w(u' [<a class="logout" href="%s">%s</a>]'%(users.create_login_url(self.req.url()),self.req._('login')))classGAELogoutAction(LogoutAction):defurl(self):returnusers.create_logout_url(self.req.build_url('logout'))defregistration_callback(vreg):ifhasattr(vreg.config,'has_resource'):vreg.register(GACWUserLink,clear=True)vreg.register(GAELogoutAction,clear=True)