Ejemplo n.º 1
0
 def get_login_data(self):
     login_request_mode = "post"
     api = "%s/api/member/login" % ConfigFile().host()
     users_number = len(GetUsers().get_users())
     data = []
     for id in range(users_number):
         login = Login().login(GetUsers().get_mobile(id),
                               GetUsers().get_password(id))
         data.append([
             id + 1, login["description"], login_request_mode, api,
             login["mobile"], login["time"], login["status_code"],
             login["msg"]
         ])
     return data
Ejemplo n.º 2
0
            sys.stderr.write('(W) detected a commit on a svn tag: %s\n' %
                             (m.group(0), ))
            return True

    return False


#
# Here starts the real program.
#
ParseOpts()

#
# Read the config files.
#
ConfigFile.ConfigFile(CFName, DirName)

TotalChanged = TotalAdded = TotalRemoved = 0

#
# Snarf changesets.
#
print >> sys.stderr, str(DateFrom) + ' - ' + str(DateTo) + '\r'
print >> sys.stderr, 'Grabbing changesets...\r'

patches = logparser.LogPatchSplitter(InputData, DateFrom, DateTo)
printcount = CSCount = 0

for logpatch in patches:
    if (printcount % 10) == 0:
        print >> sys.stderr, 'Grabbing changesets...%d\r' % printcount,