We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1 - problems with encoding
# python 3.4 bundle = connection.get_enum_bundle('70-756-1479473044676') bundle.to_xml() # raise File "E:/GITHUB/dohq_youtrack\youtrack\youtrack.py", line 635, in to_xml result += ">%s</%s>" % (escape(self.name.encode('utf-8')), self.element_name) File "C:\Python34\lib\xml\sax\saxutils.py", line 27, in escape data = data.replace("&", "&") TypeError: 'str' does not support the buffer interface
and from #9
# python 3.6.3 ipdb> str(bundle_value) '' ipdb> bundle_value.to_xml() *** TypeError: a bytes-like object is required, not 'str'
2 - problem with attribute When I GET /rest/admin/customfield/bundle/70-756-1479473044676 xml is:
GET /rest/admin/customfield/bundle/70-756-1479473044676
<enumeration name="70-756-1479473044676"> <value colorIndex="1">Non-default Container</value> <value colorIndex="3">Default Container</value> <value colorIndex="2">11</value> </enumeration>
After, i try bundle.to_xml() and get this, without colorIndex
bundle.to_xml()
<enumeration name="70-756-1479473044676"> <value>Non-default Container</value> <value>Default Container</value> <value>11</value> </enumeration>
The text was updated successfully, but these errors were encountered:
rm encode #10
ae66bd0
First problem - we must remove encode , like this: ae66bd0
encode
I fix it only un bundle
Sorry, something went wrong.
Merge pull request #11 from devopshq/to_xml
69776eb
No branches or pull requests
1 - problems with encoding
and from #9
2 - problem with attribute
When I
GET /rest/admin/customfield/bundle/70-756-1479473044676
xml is:After, i try
bundle.to_xml()
and get this, without colorIndexThe text was updated successfully, but these errors were encountered: