Back to index

moin  1.9.0~rc2
Classes | Functions | Variables
googleimport.driver Namespace Reference

Classes

class  DataNotFoundException
class  Task
class  Collector

Functions

def find_dict_entry
def pull_and_push

Variables

string desc_pattern = r""
string bugpage_pattern = r""
tuple already_pushed_pages = set([x.strip() for x in """EasyToDo/ExtendFormsOfAdvancedSearchEasyToDo/ResearchMacOSXPluginSupportEasyToDo/Research_Python_code_usable_for_filtersEasyToDo/Code_vCard_hCard_Support_For_WikihomepagesEasyToDo/UserPreferredLanguageStatisticsEasyToDo/CloneWikiPagesByPackagePagesEasyToDo/ResearchLinuxPluginSupportEasyToDo/ConvertMacrosToNewSyntaxEasyToDo/CaseStudyEasyToDo/InstallMoinMoinForYourFriendsEasyToDo/JabberBotRefactoringEasyToDo/ProofreadEnglishDocumentationEasyToDo/ImplementXEPEntityCapabilities 1EasyToDo/ImplementXEPEntityCapabilities 3EasyToDo/ImplementXEPEntityCapabilities 2EasyToDo/TestInstallDocsEasyToDo/DesignAMoinMoinThemeEasyToDo/ImproveStyleOfModernThemeEasyToDo/ThinkingAloudUsabilityTestEasyToDo/MakeAScreencastEasyToDo/IntroduceMoinMoinToYourFriendsEasyToDo/RunJabberBotOnWindowsEasyToDo/ResearchWindowsPluginSupportEasyToDo/DesignNewIconsetEasyToDo/CreateAPosterEasyToDo/GermanWikiKursEasyToDo/Firefox3CompatibilityCheckEasyToDo/SearchForMoinMoinIntegrationEasyToDo/AddUsageInfoToMoinCommandEasyToDo/DumpPagesIntoZipEasyToDo/ShowAclIndicator""".split("\n")])
tuple already_pushed_bugs = set([x.strip() for x in """1.6devFAT32TroubleWithUnderlayFileNames1.6devMissingRightsI18nAclBlockMoinDumpArbitraryInjectionOfErrorMessageCannotUpdateCreateDrawingsGuiEditorExcelPasteExpatErrorUnboundPrefixMailAccountDataGivesErrorMakeIconLinkLosesAltTitleModPyConnectionErrorsMoinDumpThemeNavigationMacroMultipleRepeatRenamingUserAllowsOldUsernameToLoginSubscribeAndUnsubscribeShareSameUrlTWikiDrawOnDebianTrivialChangeEasyAccessWrongAlignedAttachmentXmlRpcPutPageAllowsEmptyPageName""".split("\n")])
list gatherers = []

Class Documentation

class googleimport::driver::DataNotFoundException

Definition at line 23 of file driver.py.


Function Documentation

def googleimport.driver.find_dict_entry (   name,
  text 
)

Definition at line 36 of file driver.py.

00036 
00037 def find_dict_entry(name, text):
00038     m = re.search(r"^ %s:: (.*)$" % (name, ), text, re.M | re.U)
00039     if not m:
00040         raise DataNotFoundException("%s not found" % (name, ))
00041     return m.groups()[0]

Here is the caller graph for this function:

Definition at line 192 of file driver.py.

00192 
00193 def pull_and_push():
00194     #project_name = "google-highly-open-participation-moinmoin" # PRODUCTION IMPORT
00195     project_name = "moin-sandbox" # TEST RUN
00196     summary_prefix = "" # EMPTY FOR PRODUCTION IMPORT!
00197     if summary_prefix:
00198         tmin, tmax = 0, None
00199     else:
00200         tmin, tmax = 0, None
00201     print "Collecting tasks ..."
00202     tasks = Collector("http://moinmo.in/").collect_tasks()
00203     print "Importing %i tasks ..." % (len(tasks), )
00204     print "\n".join(repr(task) for task in tasks)
00205     argc = len(sys.argv)
00206     if not (2 <= argc <= 3):
00207         raise SystemExit("you must supply your username (and optionally your password) as argument(s) to this program")
00208     user = sys.argv[1]
00209     if argc == 2:
00210         password = raw_input("Password for %s:" % user)
00211     else:
00212         password = sys.argv[2]
00213 
00214 
00215     try:
00216         googlepush.login(user, password)
00217     except urllib2.URLError, e:
00218         print "Ignored exception %r" % (e, )
00219 
00220     i = 0
00221     for task in tasks[tmin:tmax]:
00222         i += 1
00223         print i, repr(task.summary)
00224         googlepush.push_item(project_name, summary_prefix + task.summary, task.desc, "Open", task.label)
00225 


Variable Documentation

tuple googleimport.driver.already_pushed_bugs = set([x.strip() for x in """1.6devFAT32TroubleWithUnderlayFileNames1.6devMissingRightsI18nAclBlockMoinDumpArbitraryInjectionOfErrorMessageCannotUpdateCreateDrawingsGuiEditorExcelPasteExpatErrorUnboundPrefixMailAccountDataGivesErrorMakeIconLinkLosesAltTitleModPyConnectionErrorsMoinDumpThemeNavigationMacroMultipleRepeatRenamingUserAllowsOldUsernameToLoginSubscribeAndUnsubscribeShareSameUrlTWikiDrawOnDebianTrivialChangeEasyAccessWrongAlignedAttachmentXmlRpcPutPageAllowsEmptyPageName""".split("\n")])

Definition at line 84 of file driver.py.

tuple googleimport.driver.already_pushed_pages = set([x.strip() for x in """EasyToDo/ExtendFormsOfAdvancedSearchEasyToDo/ResearchMacOSXPluginSupportEasyToDo/Research_Python_code_usable_for_filtersEasyToDo/Code_vCard_hCard_Support_For_WikihomepagesEasyToDo/UserPreferredLanguageStatisticsEasyToDo/CloneWikiPagesByPackagePagesEasyToDo/ResearchLinuxPluginSupportEasyToDo/ConvertMacrosToNewSyntaxEasyToDo/CaseStudyEasyToDo/InstallMoinMoinForYourFriendsEasyToDo/JabberBotRefactoringEasyToDo/ProofreadEnglishDocumentationEasyToDo/ImplementXEPEntityCapabilities 1EasyToDo/ImplementXEPEntityCapabilities 3EasyToDo/ImplementXEPEntityCapabilities 2EasyToDo/TestInstallDocsEasyToDo/DesignAMoinMoinThemeEasyToDo/ImproveStyleOfModernThemeEasyToDo/ThinkingAloudUsabilityTestEasyToDo/MakeAScreencastEasyToDo/IntroduceMoinMoinToYourFriendsEasyToDo/RunJabberBotOnWindowsEasyToDo/ResearchWindowsPluginSupportEasyToDo/DesignNewIconsetEasyToDo/CreateAPosterEasyToDo/GermanWikiKursEasyToDo/Firefox3CompatibilityCheckEasyToDo/SearchForMoinMoinIntegrationEasyToDo/AddUsageInfoToMoinCommandEasyToDo/DumpPagesIntoZipEasyToDo/ShowAclIndicator""".split("\n")])

Definition at line 50 of file driver.py.

Definition at line 46 of file driver.py.

Definition at line 42 of file driver.py.

Definition at line 104 of file driver.py.