import re
#PROJECTS_FROM_PROFILE = re.compile("""<A href="/projects/(?P<unixname>.*)/">(?P<projectname>.*)</A>""")
#GROUP_ID_FROM_SUMMARY = re.compile("""href="/project/admin/\?group_id=(?P<groupid>\d*)">""")
PACKAGES_FULL_ACCESS = re.compile('''NAME="package_id"\s*VALUE="(?P<packageid>\d*)".*?NAME="package_name"\s*VALUE="(?P<packagename>.*?)".*?selected>(?P<status>Hidden|Active)''', re.DOTALL)
PACKAGES_LIMITED_ACCESS = re.compile('''NAME="package_id"\s*VALUE="(?P<packageid>\d*)".*?\[Add Release\].*?<TD><FONT SIZE="-1">(?P<packagename>.*?)</TD>.*?selected>(?P<status>Hidden|Active)''', re.DOTALL)
PACKAGES_NO_ACCESS = re.compile('''Permission Denied''')
PROJECTS_FROM_LOGIN = re.compile('''<a href="rmproject.php\?group_id=(?P<groupid>\d*)">.*?<a href="/projects/(?P<unixname>.*?)/">(?P<projectname>.*?)</a>''', re.DOTALL | re.IGNORECASE)
GET_RELEASE_ID = re.compile('''<form enctype=.*? name="release_id" value="(?P<releaseid>\d*)"''', re.DOTALL)
GET_FILE_ID = re.compile('''name="file_id" value="(?P<fileid>\d*).*?name="step3" value="1">.*?<font size="-1">(?P<filename>.*?)</td>.*?value="Delete File"''', re.DOTALL)
|