Hackfut Security File Manager
Current Path:
/usr/lib/python2.6/site-packages/boto/s3
usr
/
lib
/
python2.6
/
site-packages
/
boto
/
s3
/
📁
..
📄
__init__.py
(2.29 KB)
📄
__init__.pyc
(1.76 KB)
📄
__init__.pyo
(1.76 KB)
📄
acl.py
(5.59 KB)
📄
acl.pyc
(5.95 KB)
📄
acl.pyo
(5.95 KB)
📄
bucket.py
(77.51 KB)
📄
bucket.pyc
(69.08 KB)
📄
bucket.pyo
(69.03 KB)
📄
bucketlistresultset.py
(6.64 KB)
📄
bucketlistresultset.pyc
(5.61 KB)
📄
bucketlistresultset.pyo
(5.61 KB)
📄
bucketlogging.py
(3.11 KB)
📄
bucketlogging.pyc
(2.84 KB)
📄
bucketlogging.pyo
(2.84 KB)
📄
connection.py
(25.58 KB)
📄
connection.pyc
(23.19 KB)
📄
connection.pyo
(23.05 KB)
📄
cors.py
(8.73 KB)
📄
cors.pyc
(7.83 KB)
📄
cors.pyo
(7.83 KB)
📄
deletemarker.py
(2.04 KB)
📄
deletemarker.pyc
(1.47 KB)
📄
deletemarker.pyo
(1.47 KB)
📄
key.py
(80.39 KB)
📄
key.pyc
(64.48 KB)
📄
key.pyo
(64.48 KB)
📄
keyfile.py
(4.32 KB)
📄
keyfile.pyc
(4.89 KB)
📄
keyfile.pyo
(4.89 KB)
📄
lifecycle.py
(8.06 KB)
📄
lifecycle.pyc
(9.02 KB)
📄
lifecycle.pyo
(9.02 KB)
📄
multidelete.py
(4.65 KB)
📄
multidelete.pyc
(4.86 KB)
📄
multidelete.pyo
(4.86 KB)
📄
multipart.py
(11.77 KB)
📄
multipart.pyc
(11.68 KB)
📄
multipart.pyo
(11.68 KB)
📄
prefix.py
(1.62 KB)
📄
prefix.pyc
(1.21 KB)
📄
prefix.pyo
(1.21 KB)
📄
resumable_download_handler.py
(15.23 KB)
📄
resumable_download_handler.pyc
(10.09 KB)
📄
resumable_download_handler.pyo
(10.09 KB)
📄
tagging.py
(1.69 KB)
📄
tagging.pyc
(3.6 KB)
📄
tagging.pyo
(3.6 KB)
📄
user.py
(1.92 KB)
📄
user.pyc
(1.48 KB)
📄
user.pyo
(1.48 KB)
📄
website.py
(10.36 KB)
📄
website.pyc
(12.02 KB)
📄
website.pyo
(12.02 KB)
Editing: user.py
# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/ # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, dis- # tribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the fol- # lowing conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. class User(object): def __init__(self, parent=None, id='', display_name=''): if parent: parent.owner = self self.type = None self.id = id self.display_name = display_name def startElement(self, name, attrs, connection): return None def endElement(self, name, value, connection): if name == 'DisplayName': self.display_name = value elif name == 'ID': self.id = value else: setattr(self, name, value) def to_xml(self, element_name='Owner'): if self.type: s = '<%s xsi:type="%s">' % (element_name, self.type) else: s = '<%s>' % element_name s += '<ID>%s</ID>' % self.id s += '<DisplayName>%s</DisplayName>' % self.display_name s += '</%s>' % element_name return s
Upload File
Create Folder