forked from argomaintainer/argon
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/argolab/argon
- Loading branch information
Showing
3 changed files
with
70 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env python | ||
|
||
|
||
def main_test(): | ||
import ext_user | ||
a = ext_user.GetUserRec('PASSWDS', 0) | ||
# print dir(a) | ||
# for i in dir(a): | ||
# if not i.startswith('__'): | ||
# print i, str(getattr(a, i)) | ||
# | ||
address = a.GetAddress().decode('gb2312') | ||
realname = a.GetRealname().decode('gb2312') | ||
username = a.GetRealname().decode('gb2312') | ||
passwd = a.GetPasswd() | ||
|
||
print 'address %s' % address | ||
print 'realname %s' % realname | ||
print 'username %s' % username | ||
print 'passwd %s' % passwd | ||
print len(passwd) | ||
|
||
if __name__ == '__main__': | ||
main_test() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters