Back to index

moin  1.9.0~rc2
Functions
googleimport.googlepush Namespace Reference

Functions

def login
def push_item
def wraptext

Function Documentation

def googleimport.googlepush.login (   username,
  password 
)

Definition at line 11 of file googlepush.py.

00011 
00012 def login(username, password):
00013     go('https://www.google.com/accounts/ManageAccount')
00014     fv('1', 'Email', username)
00015     fv('1', 'Passwd', password)
00016     submit()
00017 

def googleimport.googlepush.push_item (   projectname,
  summary,
  comment,
  status,
  label 
)

Definition at line 18 of file googlepush.py.

00018 
00019 def push_item(projectname, summary, comment, status, label):
00020     go('http://code.google.com/p/%s/issues/list' % (projectname, ))
00021     follow('New Issue')
00022     fv('3', 'summary', summary)
00023     fv('3', 'comment', wraptext(comment))
00024     fv('3', 'status', status)
00025     fv("3", "labelenter0", label)
00026     fv("3", "labelenter1", "")
00027 
00028     submit('submit')
00029     notfind("Letters did not match")
00030 

Here is the call graph for this function:

Definition at line 31 of file googlepush.py.

00031 
00032 def wraptext(text):
00033     lines = text.splitlines()
00034     cur_p = []
00035     output = []
00036     for line in lines + [""]:
00037         if not line and cur_p:
00038             output.extend(wrap("\n".join(cur_p)) + [""])
00039             cur_p = []
00040             continue
00041         cur_p.append(line)
00042     return "\n".join(output)
00043 

Here is the caller graph for this function: