diff options
author | 2010-07-24 11:14:18 -0300 | |
---|---|---|
committer | 2010-07-24 11:14:18 -0300 | |
commit | 8abe0309aa8657cdef275a77bb1495b503261fb8 (patch) | |
tree | 4a08b510752605eb452f7cd7b546a85341452ef6 | |
parent | updated trac url to the tinderbox stuff (diff) | |
download | g-octave-8abe0309aa8657cdef275a77bb1495b503261fb8.tar.gz g-octave-8abe0309aa8657cdef275a77bb1495b503261fb8.tar.bz2 g-octave-8abe0309aa8657cdef275a77bb1495b503261fb8.zip |
tinderbox fix
-rw-r--r-- | g_octave/tinderbox/trac.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g_octave/tinderbox/trac.py b/g_octave/tinderbox/trac.py index a81c27f..a954e18 100644 --- a/g_octave/tinderbox/trac.py +++ b/g_octave/tinderbox/trac.py @@ -43,6 +43,7 @@ class Trac(object): self.url + 'login', [ ('user', user), ('password', passwd), + ('referer', self.url + 'wiki'), ('__FORM_TOKEN', self.token), ] ) @@ -51,7 +52,7 @@ class Trac(object): def user_autenticated(self, html): - return html.find('<a href="/logout">') != -1 + return html.find('logout">') != -1 def _get_token(self): @@ -135,8 +136,7 @@ class Trac(object): if params is not None: self.curl.setopt(pycurl.POST, 1) self.curl.setopt(pycurl.HTTPPOST, params) - if upload: - self.curl.setopt(pycurl.HTTPHEADER, ['Expect:']) + self.curl.setopt(pycurl.HTTPHEADER, ['Expect:']) buffer = io.StringIO() self.curl.setopt(pycurl.WRITEFUNCTION, buffer.write) try: |