Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.217.14
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python2.7 /
site-packages /
boto /
beanstalk /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
1.64
KB
-rw-r--r--
2016-04-07 22:15
__init__.pyc
1005
B
-rw-r--r--
2017-01-28 02:50
__init__.pyo
1005
B
-rw-r--r--
2017-01-28 02:50
exception.py
2.08
KB
-rw-r--r--
2016-04-07 22:15
exception.pyc
6.62
KB
-rw-r--r--
2017-01-28 02:50
exception.pyo
6.62
KB
-rw-r--r--
2017-01-28 02:50
layer1.py
54.94
KB
-rw-r--r--
2016-04-07 22:15
layer1.pyc
49.3
KB
-rw-r--r--
2017-01-28 02:50
layer1.pyo
49.3
KB
-rw-r--r--
2017-01-28 02:50
response.py
27.39
KB
-rw-r--r--
2016-04-07 22:15
response.pyc
33.15
KB
-rw-r--r--
2017-01-28 02:50
response.pyo
33.15
KB
-rw-r--r--
2017-01-28 02:50
wrapper.py
1.05
KB
-rw-r--r--
2016-04-07 22:15
wrapper.pyc
1.89
KB
-rw-r--r--
2017-01-28 02:50
wrapper.pyo
1.89
KB
-rw-r--r--
2017-01-28 02:50
Save
Rename
"""Wraps layer1 api methods and converts layer1 dict responses to objects.""" from boto.beanstalk.layer1 import Layer1 import boto.beanstalk.response from boto.exception import BotoServerError import boto.beanstalk.exception as exception def beanstalk_wrapper(func, name): def _wrapped_low_level_api(*args, **kwargs): try: response = func(*args, **kwargs) except BotoServerError as e: raise exception.simple(e) # Turn 'this_is_a_function_name' into 'ThisIsAFunctionNameResponse'. cls_name = ''.join([part.capitalize() for part in name.split('_')]) + 'Response' cls = getattr(boto.beanstalk.response, cls_name) return cls(response) return _wrapped_low_level_api class Layer1Wrapper(object): def __init__(self, *args, **kwargs): self.api = Layer1(*args, **kwargs) def __getattr__(self, name): try: return beanstalk_wrapper(getattr(self.api, name), name) except AttributeError: raise AttributeError("%s has no attribute %r" % (self, name))