Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 138861 Details for
Bug 202738
pybugz: add --keywords option to posting
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
pybugz-keywords-post.patch
pybugz-keywords-post.patch (text/plain), 2.45 KB, created by
SpanKY
on 2007-12-19 00:35:24 UTC
(
hide
)
Description:
pybugz-keywords-post.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2007-12-19 00:35:24 UTC
Size:
2.45 KB
patch
obsolete
>Index: bugz.py >=================================================================== >--- bugz.py (revision 4) >+++ bugz.py (working copy) >@@ -1066,7 +1066,7 @@ class Bugz: > except: > return {} > >- def post(self, title, description, url = '', assigned_to = '', cc = ''): >+ def post(self, title, description, url = '', assigned_to = '', cc = '', keywords = ''): > """Post a bug > > @param title: title of the bug. >@@ -1079,6 +1079,8 @@ class Bugz: > @type assigned_to: string. > @keyword cc: option list of CC'd emails > @type: string >+ @keyword keywords: option list of bugzilla keywords >+ @type: string > > @rtype: int > @return: the bug number, or 0 if submission failed. >@@ -1092,6 +1094,7 @@ class Bugz: > qparams['assigned_to'] = assigned_to > qparams['cc'] = cc > qparams['bug_file_loc'] = url >+ qparams['keywords'] = keywords > > req_params = urlencode(qparams, True) > req_url = urljoin(self.base, config.urls['post']) >@@ -1403,7 +1406,8 @@ class PrettyBugz(Bugz): > } > > def post(self, title = None, description = None, assigned_to = None, >- cc = None, url = None, emerge_info = None, description_from = None): >+ cc = None, url = None, keywords = None, emerge_info = None, >+ description_from = None): > """Post a new bug""" > # As we are submitting something, we should really > # grab entry from console rather than from the command line: >@@ -1466,6 +1470,7 @@ class PrettyBugz(Bugz): > print 'URL : ' + url > print 'Assigned to : ' + assigned_to > print 'CC : ' + cc >+ print 'Keywords : ' + keywords > print 'Description : ' > print description > print '-' * (self.columns - 1) >@@ -1486,7 +1491,7 @@ class PrettyBugz(Bugz): > return > > >- result = Bugz.post(self, title, description, url, assigned_to, cc) >+ result = Bugz.post(self, title, description, url, assigned_to, cc, keywords) > if result != None: > self.log('Bug %d submitted' % result) > else: >@@ -1508,6 +1513,7 @@ class PrettyBugz(Bugz): > 'cc': make_option('--cc', help = 'Add a list of emails to CC list'), > 'url': make_option('-U', '--url', > help = 'URL associated with the bug'), >+ 'keywords': make_option('-k', '--keywords', help = 'List of bugzilla keywords'), > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202738
: 138861