Re: Bug#643733: reportbug: support for mentors.debian.org pseudo package

2011-10-02 Thread Sandro Tosi
Hello Michael,

On Thu, Sep 29, 2011 at 06:32, Michael Gilbert
michael.s.gilb...@gmail.com wrote:
 I've written a patch to tentatively support a mentors.debian.org pseudo
 package (in order to better track and support the incredible volume of
 sponsorship requests and such). Note that there is still ongoing
 discussion about the right way to do this [0], and we would need to get
 the mentors.d.o psuedo package added to the bts first anyway, but I
 think the existence of this patch is needed first to illustrate the
 potential usefulness of a bts-based mentors workflow.

At this early stage, and in particular given the post-submit
discussion going on on -mentors I think this is too premature to
propose a patch, hence i'm rejecting it. Feel free to reopen this bug
and attach and updated patch once/if a wider (project) agreement is
reached.

 In the meantime, would you mind reviewing the patch and determining
 whether its good enough to adopt in reportbug, or if it needs some
 fixing? If you do have comments, I'll do my best to address them.

don't worry about code: I can edit the parts that needs to.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/capdtaj2jbhjwepom6ps0ji31yguf-ahm3mpndsggwkf4inz...@mail.gmail.com



Re: reportbug: support for mentors.debian.org pseudo package

2011-09-30 Thread Michael Gilbert
Hi,

On Thu, 29 Sep 2011 12:23:35 +0200 Arno Töll wrote:
 I appreciate your efforts and I like the idea of reportbug integration.
 I won't comment about the patch itself, I am not maintaining the
 reportbug package, so I can't judge.

Thanks for your kind words.

 However please note, mentors.debian.NET is not an official Debian
 project. The .net indicates a subtle difference. While some people,
 including Don, agreed in eventually having a debian-mentors pseudo
 package that would be associated with the debian-mentors mailing list,
 not with mentors.debian.net (i.e. Debexpo, the sofware running there).

I am certainly aware of the difference.  I was working with the
perspective that mentors would need become an official (.org) service
first. In my opinion, that should have happened a long time ago.

 Hence I don't think any tight mentors.d.n integration of reportbug would
 be appropriate for the time being. 

Then let's get mentors officialized to tear down this barrier!

As an aside that's apropos to this topic, I wonder if the mentors
terminology was the best choice. I feel like that term significantly
favors the mentor side of the equation, and may explain part of why the
service tends to make mentees feel unempowered; like they're very much
at the whim of others completely out of their control who are more
important.

In my opinion a term like contributors would be much more
empowering.  It would better convey the fact that this is as a place
for new contributors to work together, learn, evolve, and grow within
the project. 

So, anyway, in the process of converting mentors to an official
service, I wonder if we could debate the merit of using a better / more
inviting terminology. I think this kind of transition would be the only
chance to make this kind of change (I understand this idea is very much
in dangerous bike shedding / yak shaving territory, but I think
words/terminology have a significant impact, and we should do our best
to get them right).

 Also I am not particularly convinced
 on the way you do it (content scraping). If you want, I will gratefully
 merge a SOAP interface into Debexpo you could query though.

I agree, I chose this approach since it's possible to implement right
now; although it's certainly fragile (certain changes to the mentors
pages will break the scraping algorithms).  A soap based interface
would be wonderful!

Thanks again for all the work you've been putting into debexpo.

Best wishes,
Mike


--
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20110930155718.af8aac66.michael.s.gilb...@gmail.com



Re: reportbug: support for mentors.debian.org pseudo package

2011-09-30 Thread Arno Töll
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Michael,

On 30.09.2011 21:57, Michael Gilbert wrote:
 Then let's get mentors officialized to tear down this barrier!

This is not something I or you or anyone else could push forward right
now here. This is something which needs consensus among Debian
Developers and a DPL accepting that. And, finally some DDs who would
need to be delegated there.

Feel free to open a thread on debian-devel and/or get our beloved DPL's
opinion on that matter. Eventually you should find two developers first
which would agree with you pushing things forward here.

 In my opinion a term like contributors would be much more
 empowering.  It would better convey the fact that this is as a place
 for new contributors to work together, learn, evolve, and grow within
 the project. 

We are all contributors. Those who need the mentors.debian.net and those
who don't. There is still room for improvements left.

 I agree, I chose this approach since it's possible to implement right
 now; although it's certainly fragile (certain changes to the mentors
 pages will break the scraping algorithms).  A soap based interface
 would be wonderful!

In fact, I noticed there is already a SOAP interface. Apparently nobody
used it since 2+ years though, so it may be working or not, but it seems
ok, generally speaking:

 import SOAPpy
 server = SOAPpy.SOAPProxy(http://mentors.debian.net/soap.wsdl;)
 server.config.dumpSOAPIn = 1
 server.package(name='lighttpd',version='1.4.29-1')
*** Incoming SOAP **
SOAP-ENV:Envelope xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
SOAP-ENV:Body
packageResponse
packageResult type=tns:stringArray
string xsi:type=xs:stringlighttpd/string
string xsi:type=xs:stringArno Töll 
lt;deb...@toell.netgt;/string
string xsi:type=xs:stringlighttpd   - fast webserver with 
minimal
memory footprint
...
/string
string xsi:type=xs:string0/string
string xsi:type=xs:string1.4.29-1/string
string xsi:type=xs:stringhttpd/string
string xsi:type=xs:stringunstable/string
string xsi:type=xs:stringmain/string
string xsi:type=xs:stringoptional/string
string xsi:type=xs:string629638/string
string xsi:type=xs:string2011-09-30 15:13:18.862216/string
/packageResult
/packageResponse
/SOAP-ENV:Body
/SOAP-ENV:Envelope

...


- -- 
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOhjRAAAoJEMcrUe6dgPNtqd8QAIUANc+XSBsgJpQBeGXnxsKW
pB8zpnX1m5YJmGFjoB5zd0mYDtVlvk7ArCOKg+35d7IPAByeJt+wfgP8rUfyVTae
yUMOQnFKZUIiSj8rlsZ1PZzt9vUoEBjujQWaqgrX/SQgKu4JqXEU796QcZJwq0MY
4jVdBkUD5wgBmi3hFJmGm4OsNdNnLFAU3Pozi4AyFLcOiBDP7OiBl/vDBi1NLwWu
agccko95gFsFX25/gLCDAbSMCuxIo7xnpDxHRkA3Sx+as7/aK4VwSr2ALoMd42fL
dw7rFi0icP4yQavW8TSCONNm2F+Q9oxZ5o5KrGB4EkKSbZvo3bI+ZxmRUWf4PiS6
Yv2bcqnb7KAHXa5pR+P4JcDo6TTS5Wg6/IciU4WkRP9VgMy9WefzTlPGiZeDfaZR
PlCGxTawppQBLGUlf7kfpRV5nFQET0WCQ/B5KW401L3D3COHoEDCoIIAuqgURRVp
NYFG61/2G49cvFBPcdqd3XtVwZbyS5yqgX7+Q2iUP4Q7GBJBGOTG3PZKOYAreQak
sDRkRTOiKXfGEGhhCEFma4j+t/bBonOCvmJnsIPMm2QkNDKTXblZlJFMUwpUX3ii
4rydHOuWcBRDpTkrfjmKMioELEbn0bJz4tCj9C2nFjsSXnKZ1prEqyacWGzK+Puk
PH6zQj67ibj4CuTk9HSH
=Ag5w
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e863440.4020...@toell.net



Re: reportbug: support for mentors.debian.org pseudo package

2011-09-30 Thread Michael Gilbert
On Fri, 30 Sep 2011 23:27:28 +0200 Arno Töll wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hello Michael,
 
 On 30.09.2011 21:57, Michael Gilbert wrote:
  Then let's get mentors officialized to tear down this barrier!
 
 This is not something I or you or anyone else could push forward right
 now here. This is something which needs consensus among Debian
 Developers and a DPL accepting that. And, finally some DDs who would
 need to be delegated there.

Agreed.
 
 Feel free to open a thread on debian-devel and/or get our beloved DPL's
 opinion on that matter. Eventually you should find two developers first
 which would agree with you pushing things forward here.

I will do that.  Thanks for the suggestion!

  In my opinion a term like contributors would be much more
  empowering.  It would better convey the fact that this is as a place
  for new contributors to work together, learn, evolve, and grow within
  the project. 
 
 We are all contributors. Those who need the mentors.debian.net and those
 who don't. There is still room for improvements left.

We're also all developers, and some of us are maintainers, but we're
not necessarily described by those words in a Debian sense. I'm not
trying to eliminate ambiguity in the labe; as that's essentially
impossible when reducing a very broad thing to one word. I am however
arguing for a more empowering reduction.  And as can be seen on
debian-devel, there is plenty of other ambiguity that already needs
resolving.  Perphaps I should chime in on that discussion.

  I agree, I chose this approach since it's possible to implement right
  now; although it's certainly fragile (certain changes to the mentors
  pages will break the scraping algorithms).  A soap based interface
  would be wonderful!
 
 In fact, I noticed there is already a SOAP interface. Apparently nobody
 used it since 2+ years though, so it may be working or not, but it seems
 ok, generally speaking:

Great!  I never thought to check whether it already existed and
there is no documentation to indicate that it did (or it isn't obviously
available).

Best wishes,
Mike


--
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20110930180519.53e1ae9f.michael.s.gilb...@gmail.com



Re: reportbug: support for mentors.debian.org pseudo package

2011-09-29 Thread Arno Töll
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Michael,
(sorry, wrote you and the bug instead of d-mentors before)

On 29.09.2011 06:32, Michael Gilbert wrote:
 I've written a patch to tentatively support a mentors.debian.org pseudo
 package (in order to better track and support the incredible volume of
 sponsorship requests and such).

I appreciate your efforts and I like the idea of reportbug integration.
I won't comment about the patch itself, I am not maintaining the
reportbug package, so I can't judge.

However please note, mentors.debian.NET is not an official Debian
project. The .net indicates a subtle difference. While some people,
including Don, agreed in eventually having a debian-mentors pseudo
package that would be associated with the debian-mentors mailing list,
not with mentors.debian.net (i.e. Debexpo, the sofware running there).

Hence I don't think any tight mentors.d.n integration of reportbug would
be appropriate for the time being. Also I am not particularly convinced
on the way you do it (content scraping). If you want, I will gratefully
merge a SOAP interface into Debexpo you could query though.

- -- 
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOhEcnAAoJEMcrUe6dgPNt85gP+gOJpcTvQNscV2/GiLsg4B/0
bs80wDhK9LF4YiLywFMjiporJb3HcB7tq+vYcy/2Nckkg9WRjgkWpl4ckd4VeI13
DS6stTb8SYlfskH0mefDDj4o/U9LDtjsYOJ1XJRUt0jYP0yzPtPVHnzidRY1TKDO
Fl/e3XI+iprOaztm5oieHJlrzR4HYfUJg9oR2kiPtaE77dy4NVASwExw8rBQQIrA
s0EPeExjiKQijI4H1PHbyk+7BB2YPnxL5JEqgYtStJgJBVb0+FYLTYxoLZycST4Q
lsszWBljTd/omFIx+zwvvRoyxtSYxh1t2Jto7jsKnettE1zk4DOohN+55/1gs1Ca
AYXaV7jNR8dHE/p+GnZJffy7nQHNN/YhqI6gV8lFaMIF2Qm1eHmlc5DCCt2lnP9V
qHwMWdb88S3iy81XWXMSrrfjwS3hMBI5OukZtpkxP5fYbP8w0xDU1oWTEQaXDXP6
k1vEU4DKM3KBwl+F3miPyTaUT9lGP/WgFD/j2xDDSlF85SZxLRRUbSRQWNf2ojmd
osgZVDU6q8teDpD9C1Y+TQGBV+eWzDTKmbXIsLGJaE144Q2V5sqmF07wc3R2CfbP
jH0jgzaASTMNf/u90n4OZKCWP6rpTyfNHNT8fIB8W0g7XT1VCg/Xr2WRmlF1XVou
DR6hbhORB2MeL8Hs0Brg
=PdF4
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e844727.20...@toell.net



reportbug: support for mentors.debian.org pseudo package

2011-09-28 Thread Michael Gilbert
package: reportbug
version: 6.2.1
severity: wishlist

Hi,

I've written a patch to tentatively support a mentors.debian.org pseudo
package (in order to better track and support the incredible volume of
sponsorship requests and such). Note that there is still ongoing
discussion about the right way to do this [0], and we would need to get
the mentors.d.o psuedo package added to the bts first anyway, but I
think the existence of this patch is needed first to illustrate the
potential usefulness of a bts-based mentors workflow.

In the meantime, would you mind reviewing the patch and determining
whether its good enough to adopt in reportbug, or if it needs some
fixing? If you do have comments, I'll do my best to address them.
Thanks!

Best wishes,
Mike

[0] http://lists.debian.org/debian-mentors/2011/09/msg00070.html
diff -Nru reportbug-6.2.1/bin/reportbug reportbug-6.2.1gilbert1/bin/reportbug
--- reportbug-6.2.1/bin/reportbug	2011-09-10 17:07:54.0 -0400
+++ reportbug-6.2.1gilbert1/bin/reportbug	2011-09-29 00:22:40.0 -0400
@@ -495,7 +495,7 @@
 False):
 return get_package_name(bts, mode)
 
-if package in ('ftp.debian.org', 'release.debian.org'):
+if package in ('ftp.debian.org', 'release.debian.org', 'mentors.debian.org'):
 if not ui.yes_no(
 'Are you sure you want to file a bug on %s?' % (package),
 'Yes, I am a developer or know what I\'m doing.',
@@ -1980,7 +1980,7 @@
 
 if (rtype == 'debbugs' and not self.options.tags and
 not (notatty or self.options.kudos or exinfo) and
-package not in ('wnpp', 'ftp.debian.org', 'release.debian.org') and
+package not in ('wnpp', 'ftp.debian.org', 'release.debian.org', 'mentors.debian.org') and
 mode  MODE_NOVICE and self.options.tagsmenu):
 tags = debbugs.get_tags(severity, mode)
 
diff -Nru reportbug-6.2.1/debian/changelog reportbug-6.2.1gilbert1/debian/changelog
--- reportbug-6.2.1/debian/changelog	2011-09-10 17:07:54.0 -0400
+++ reportbug-6.2.1gilbert1/debian/changelog	2011-09-29 00:16:40.0 -0400
@@ -1,3 +1,9 @@
+reportbug (6.2.1gilbert1) unstable; urgency=low
+
+  * Add support for mentors.debian.org pseudo package.
+
+ -- Michael Gilbert michael.s.gilb...@gmail.com  Thu, 29 Sep 2011 00:16:21 -0400
+
 reportbug (6.2.1) unstable; urgency=low
 
   * bin/reportbug
diff -Nru reportbug-6.2.1/reportbug/debbugs.py reportbug-6.2.1gilbert1/reportbug/debbugs.py
--- reportbug-6.2.1/reportbug/debbugs.py	2011-09-10 17:07:54.0 -0400
+++ reportbug-6.2.1gilbert1/reportbug/debbugs.py	2011-09-29 00:24:03.0 -0400
@@ -36,6 +36,7 @@
 import urllib
 import textwrap
 import pprint
+import tarfile
 # SOAP interface to Debian BTS
 import debianbts
 from collections import defaultdict
@@ -174,6 +175,7 @@
 'installation-reports' : 'Problems with installing Debian',
 'listarchives' :  'Problems with the WWW mailing list archives',
 'lists.debian.org' : 'The mailing lists, debian-*@lists.debian.org.',
+'mentors.debian.org' : 'Requests for package mentoring and sponsorship.',
 'mirrors' : 'Problems with Debian archive mirrors.',
 'nm.debian.org' : 'New Maintainer process and nm.debian.org website',
 'press' : 'Press release issues',
@@ -383,6 +385,205 @@
 
 return (subject, severity, headers, pseudos, body, query)
 
+def handle_debian_mentors(package, bts, ui, fromaddr, timeout, online=True, http_proxy=None):
+tag = ui.menu('What sort of request is this? (if you are trying to report a bug '
+  'in an existing package, please press Enter to exit reportbug)', {
+'new':  a sponsorship request for a brand new package,
+'update':   a sponsorship request for an update to a package you've gotten sponsored and uploaded previously,
+'release-critical': a sponsorship request for a package fixing a release-critical bug,
+'proposed-update':  a sponsorship request for a proposed-update to stable/oldstable,
+'nmu':  a sponsorship request for a non-maintainer upload to unstable,
+'security': a sponsorship request for a package fixing a security issue,
+'backport': a sponsorship request for a backport to stable/oldstable,
+'other' :   none of the other options,
+}, 'Choose the request type: ', empty_ok=True)
+if not tag:
+ui.long_message('To report a bug in a package, please use the name of the '
++ 'package, not mentors.debian.org.\n')
+raise SystemExit
+
+severity = 'normal'
+if tag == 'other':
+return
+
+query = False
+package = ui.get_string('Please enter the name of the package: ')
+if not package:
+ui.log_message('Writing a generic bug report.\n')
+return
+
+# make sure package is already in the archive if this is one of the update options
+if