[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mylar-dev] Using the generic connector
|
Thanks Eugene. I'll give that a try. Another question is, how do I know
when mylar has logged in to the bug tracker? Our uses a very very simple
login which just stores your username in a cookie.
On Sat, 2007-01-27 at 15:59 -0500, Eugene Kuleshov wrote:
> Dan,
>
> Also see the FAQ in the Mylar wiki at
> http://wiki.eclipse.org/index.php/Mylar_FAQ#Generic_Web_Repository_Connector
>
> You can use little hack to see if your page has been loaded. With
> regexp like (.+?)(\n) preview will show content of the page - one line
> per table row. We may need to improve this or have some integration with
> QuickRex plugin.
>
> Regexp for your html may look something like this:
>
> <tr>.+?<td.+?><a.+?>(.+?)</a></td>.+?<td.+?>.+?</td>.+?<td.+?>.+?</td>.+?<td.+?>.+?</td>.+?<td.+?>(.+?)</td>
>
> or shorter:
>
> <tr>.+?<td.+?><a.+?>(.+?)</a></td>.+?(?:<td.+?</td>.+?){3}<td.+?>(.+?)</td>
>
> You might need to be more specific to make sure it won't pickup
> unrelated table rows, i.e. add
>
> <a href="bugdb.cgi\?func=bug_detail.+?>
>
> regards,
> Eugene
>
>
> Dan Adams wrote:
> > Hey guys, Mylar is really cool. We have a home-grown small bug tracking
> > system that I'd really really like to use with mylar. The
> > problem is
> > that I'm having trouble using the generic connector. If it can't
> > connect
> > I can't seem to be able to see what failed. So my questions are:
> >
> > - How can I tell whether or not it was able to log in?
> > - How can I get feedback about whether or not a query parser
> > matches?
> >
> > Here is the html for one row of a list page that I would need to
> > parse:
> >
> > <tr>
> > <td class="priority3" valign="top"><a
> > href="bugdb.cgi?func=bug_detail&project_id=728&bug_num=0370&i=0&n=12">THIS IS THE ID0370</a></td>
> > <td class="priority3" valign="top">open</td>
> > <td class="priority3" align="center" valign="top"><img
> > src="img/3dots.gif"></td>
> > <td class="priority3" valign="top">dadams</td>
> > <td class="priority3" valign="top">
> > <b>THIS IS THE DESCRIPTIONremove express presentations from nav.
> > items</b>
> > </td>
> > <td class="priority3" nowrap="nowrap"
> > valign="top">function-general</td>
> > <td class="priority3" align="right" nowrap="nowrap"
> > valign="top">1/24/07</td>
> > <td class="priority3" valign="top">0</td>
> > <td class="priority3" valign="top">0</td>
> > </tr>
> >
> > any suggestions? Thanks!
> >
> > --
> > Dan Adams
> > Senior Software Engineer
> > Interactive Factory
> > 617.235.5857
> >
> > _______________________________________________
> > mylar-dev mailing list
> > mylar-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/mylar-dev
> >
>
> _______________________________________________
> mylar-dev mailing list
> mylar-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/mylar-dev