Revision 9f74ca46 kamaki/cli.py

b/kamaki/cli.py
1029 1029
            self.client.container = container
1030 1030
            self.client.set_container_versioning(versioning)
1031 1031

  
1032
#@command(api='storage')
1033
#class store_test(_store_account_command):
1034
#    """Perform a developer-level custom test"""
1035
#    def main(self):
1036
#        super(store_test, self).main()
1037
#        self.client.container = 'testCo'
1038
#        reply = self.client.container_get(if_unmodified_since=10000000000)
1039
#        print_list(reply.json)
1032
@command(api='storage')
1033
class store_test(_store_account_command):
1034
    """Perform a developer-level custom test"""
1035
    def main(self):
1036
        super(store_test, self).main()
1037
        self.client.container = 'testCo'
1038

  
1039
        r = self.client.object_put('lali', content_length=1, data='a',
1040
            content_type='application/octet-stream', permitions={'read':'u1, u2', 'write':'u2, u3'})
1041
        print(unicode(r))
1040 1042

  
1041 1043
@command(api='storage')
1042 1044
class store_group(_store_account_command):

Also available in: Unified diff