Skip to content

Commit

Permalink
Merge " Fixing bug 859937. Removing incorrect atom feed references fr…
Browse files Browse the repository at this point in the history
…om roles.xsd."
  • Loading branch information
Jenkins authored and openstack-gerrit committed Oct 13, 2011
2 parents 4b07efe + 8ff740d commit 3b08b94
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions keystone/content/common/xsd/roles.xsd
Expand Up @@ -47,10 +47,6 @@


<!-- Complex Types --> <!-- Complex Types -->
<complexType name="Role"> <complexType name="Role">
<sequence>
<element vc:minVersion="1.1" ref="atom:link" minOccurs="0" maxOccurs="unbounded" />
<any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</sequence>
<attribute name="id" type="xsd:string" use="optional"/> <attribute name="id" type="xsd:string" use="optional"/>
<attribute name="name" type="xsd:string" use="required"/> <attribute name="name" type="xsd:string" use="required"/>
<attribute name="description" type="xsd:string" use="optional"/> <attribute name="description" type="xsd:string" use="optional"/>
Expand Down
2 changes: 1 addition & 1 deletion keystone/controllers/roles.py
Expand Up @@ -59,4 +59,4 @@ def delete_role_ref(self, req, user_id, role_ref_id):
def add_global_role_to_user(self, req, user_id, role_id): def add_global_role_to_user(self, req, user_id, role_id):
config.SERVICE.add_global_role_to_user(utils.get_auth_token(req), config.SERVICE.add_global_role_to_user(utils.get_auth_token(req),
user_id, role_id) user_id, role_id)
return utils.send_result(201) return utils.send_result(201, None)
1 change: 0 additions & 1 deletion keystone/utils.py
Expand Up @@ -120,7 +120,6 @@ def send_result(code, req, result=None):
else: else:
content = result.to_json() content = result.to_json()
resp.headers['content-type'] = "application/json" resp.headers['content-type'] = "application/json"

resp.content_type_params = {'charset': 'UTF-8'} resp.content_type_params = {'charset': 'UTF-8'}
resp.unicode_body = content.decode('UTF-8') resp.unicode_body = content.decode('UTF-8')


Expand Down

0 comments on commit 3b08b94

Please sign in to comment.