Logo Search packages:      
Sourcecode: gallery-uploader version File versions  Download package

def guplib::gallery::Gallery::login (   self  ) 

Login in the system

Definition at line 271 of file gallery.py.

00271                    :
        '''Login in the system'''
        arguments = {'g2_form[uname]': self.user,
                'g2_form[password]': self.password}
        logging.debug('User [%s] Password [%s]',
                self.user, self.password)

        (status, _) = self.request('login', '2.0', arguments)
        if status is None:
            raise ConnectionError

        if not status == 0:
            raise self._return_codes[status]

        self.logged = True

    def fetch_albums_prune(self):

Generated by  Doxygen 1.6.0   Back to index