[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mylar-dev] Using the generic connector
|
You can specify a url with user/password parameters in the repository
settings. That url will be called before executing query requests and
its cookies should be preserved in the following query request. Preview
in the query configuration using the same common downloading mechanism,
so you should be able to use the trick I suggested to check if returned
page is logged in or not.
Some of the templates are using login url and you can check how that
url may looks like.
regards,
Eugene
Dan Adams wrote:
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