[Zope] TypeError when accessing security folder on zope 2.3.3 and
win nt
Chris McDonough
chrism@zope.com
Wed, 08 Aug 2001 09:18:32 -0400
Can anyone confirm this as a bug in 2.3.3?
James wrote:
>
> Hi,
> When I try and click on the security tab by having the root on the left and
> the security tab on the right I get this the following traceback.
>
> I don't have any hotfixes or patchs to the core.
> TIA,
> Jimbo
>
> Error type: TypeError
> Error value: string member test needs char left operand
>
> Innermost method: /_normal_manage_access
>
> Namespace Stack (innermost entry at top)
> ID Type
> ? InstanceDict
> (N/A) mapping with keys: [('current bindings',)]
> (N/A) mapping with 7 keys
> <extension class DocumentTemplate.cDocumentTemplate.InstanceDict at
> 00C54080>
> REQUEST ZPublisher.HTTPRequest.HTTPRequest
>
> Source of /_normal_manage_access with fault:
>
> <dtml-var manage_page_header>
> <dtml-with "_(management_view='Security')">
> <dtml-if manage_tabs><dtml-var manage_tabs></dtml-if>
> </dtml-with>
> <p class="form-help">
> The listing below shows the current security settings for this item.
> Permissions are rows and roles are columns. Checkboxes are used to
> indicate where roles are assigned permissions. You can also assign
> <strong><a href="manage_listLocalRoles">local roles</a></strong> to
> users, which give users extra roles in the context of this object and
> its subobjects.
> </p>
>
> <p class="form-help">
> When a role is assigned to a permission, users with the given role
> will be able to perform tasks associated with the permission on this
> item. When the <em>Acquire permission settings</em> checkbox is selected
> then the containing objects's permission settings are used. Note: the
> acquired permission settings may be augmented by selecting Roles for
> a permission in addition to selecting to acquire permissions.
> </p>
>
> <dtml-with expr="_.namespace(valid_roles=valid_roles())">
> <form action="manage_changePermissions" method="post">
>
> <table width="100%" cellspacing="0" cellpadding="2" border="0" nowrap>
> <tr class="list-header">
> <dtml-unless isTopLevelPrincipiaApplicationObject>
> <td> </td>
> </dtml-unless>
> <td align="left" valign="top">
> <div class="form-label">
> <strong>Permission</strong>
> </div>
> </td>
> <td align="left" colspan="<dtml-var expr="_.len(valid_roles)">">
> <div class="form-label">
> <strong>Roles</strong>
> </div>
> </td>
> </tr>
>
> <tr class="row-normal">
> <dtml-unless isTopLevelPrincipiaApplicationObject>
> <td align="left" valign="top">
> <div class="form-label">
> <strong>
> <a href="manage_acquiredForm">Acquire<BR>permission<BR>settings</a>?
> </strong>
> </div>
> </td>
> </dtml-unless>
> <td></td>
> <dtml-in valid_roles>
> <td align="left">
> <div class="list-item">
> <a href="manage_roleForm?role_to_manage=<dtml-var
> sequence-item url_quote>"><dtml-var sequence-item></a>
> </div>
> </td>
> </dtml-in valid_roles>
> </tr>
>
> <dtml-in permission_settings mapping>
> <dtml-if sequence-odd>
> <tr class="row-normal">
> <dtml-else>
> <tr class="row-hilite">
> </dtml-if>
> <dtml-unless isTopLevelPrincipiaApplicationObject>
> <td align="left" valign="top">
> <input type="checkbox" name="a<dtml-var sequence-index>" <dtml-var
> acquire> />
> </td>
> </dtml-unless>
> <td align="left" nowrap>
> <div class="list-item">
> <a href="manage_permissionForm?permission_to_manage=<dtml-var
> name url_quote>"><dtml-var name></a>
> </div>
> </td>
> <dtml-in roles mapping>
> <td align="center">
> <input type="checkbox" name="<dtml-var name>" <dtml-var checked> />
> </td>
> </dtml-in>
> </tr>
> </dtml-in permission_settings>
>
> <tr>
> <dtml-if isTopLevelPrincipiaApplicationObject>
> <td colspan="<dtml-var expr="_.len(valid_roles)+1">" align="left">
> <dtml-else>
> <td colspan="<dtml-var expr="_.len(valid_roles)+2">" align="left">
> </dtml-if>
> <div class="form-element">
> <input class="form-element" type="submit" name="submit" value="Save Changes"
> />
> </div>
> </td>
> </tr>
> </table>
> </form>
> </dtml-with>
>
> <dtml-if "_['id'] != 'acl_users'">
> <p class="form-help" >
> You can define new roles by entering a role name and clicking the
> "Add Role" button.
> </p>
>
> <form action="manage_defined_roles" method="post">
> <table cellpadding="2">
> <tr>
> <td align="left" valign="top">
> <div class="form-label">
> User defined roles
> </td>
> <td align="left" valign="top">
>
> </td>
> </tr>
> <tr>
> <td align="left" valign="top">
> <input type="text" name="role" size="16" value="" />
> </td>
> <td align="left" valign="top">
> <div class="form-element">
> <input class="form-element" type="submit" name="submit" value="Add Role" />
> </div>
> </td>
> </tr>
> <dtml-if userdefined_roles>
> <tr>
> <td align="left" valign="top">
> <div class="form-element">
> <select name="roles:list">
> <dtml-in userdefined_roles>
> <option value="<dtml-var sequence-item html_quote>" /><dtml-var
> sequence-item>
> </dtml-in userdefined_roles>
> </select>
> </div>
> </td>
> <td align="left" valign="top">
> <div class="form-element">
> <input class="form-element" type="submit" name="submit"
> value="Delete Role" />
> </div>
> </td>
> </tr>
> </dtml-if userdefined_roles>
> </table>
> </form>
> </dtml-if>
>
> <dtml-var manage_page_footer>
>
> Call stack (security context)
>
> /_normal_manage_access
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> 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 )
--
Chris McDonough Zope Corporation
http://www.zope.org http://www.zope.com
""" Killing hundreds of birds with thousands of stones """