#8 python2 to python3 port
Opened 4 years ago by imzubin. Modified 4 years ago
fedora-qa/ imzubin/fedora-gooey-karma master  into  master

fixed karma issue
zubin • 4 years ago  
RPM build prep
zubin • 4 years ago  
merge issue fix
zubin • 4 years ago  
merge devel
zubin • 4 years ago  
making build
zubin • 4 years ago  
added critpath
zubin • 4 years ago  
login controller
zubin choudhary • 4 years ago  
paging
zubin • 4 years ago  
commnts list
zubin • 4 years ago  
fetch complete
zubin • 4 years ago  
py2 to py3 init
zubin • 4 years ago  
file modified
+2
@@ -1,2 +1,4 @@ 

  *.pyc

  *.swp

+ .vscode/

+ src/.vscode/

file removed
-2
@@ -1,2 +0,0 @@ 

- Branislav Blaskovic <branislav@blaskovic.sk>

- Tomas Meszaros <exo@tty.sk>

file removed
-674
@@ -1,674 +0,0 @@ 

-                     GNU GENERAL PUBLIC LICENSE

-                        Version 3, 29 June 2007

- 

-  Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>

-  Everyone is permitted to copy and distribute verbatim copies

-  of this license document, but changing it is not allowed.

- 

-                             Preamble

- 

-   The GNU General Public License is a free, copyleft license for

- software and other kinds of works.

- 

-   The licenses for most software and other practical works are designed

- to take away your freedom to share and change the works.  By contrast,

- the GNU General Public License is intended to guarantee your freedom to

- share and change all versions of a program--to make sure it remains free

- software for all its users.  We, the Free Software Foundation, use the

- GNU General Public License for most of our software; it applies also to

- any other work released this way by its authors.  You can apply it to

- your programs, too.

- 

-   When we speak of free software, we are referring to freedom, not

- price.  Our General Public Licenses are designed to make sure that you

- have the freedom to distribute copies of free software (and charge for

- them if you wish), that you receive source code or can get it if you

- want it, that you can change the software or use pieces of it in new

- free programs, and that you know you can do these things.

- 

-   To protect your rights, we need to prevent others from denying you

- these rights or asking you to surrender the rights.  Therefore, you have

- certain responsibilities if you distribute copies of the software, or if

- you modify it: responsibilities to respect the freedom of others.

- 

-   For example, if you distribute copies of such a program, whether

- gratis or for a fee, you must pass on to the recipients the same

- freedoms that you received.  You must make sure that they, too, receive

- or can get the source code.  And you must show them these terms so they

- know their rights.

- 

-   Developers that use the GNU GPL protect your rights with two steps:

- (1) assert copyright on the software, and (2) offer you this License

- giving you legal permission to copy, distribute and/or modify it.

- 

-   For the developers' and authors' protection, the GPL clearly explains

- that there is no warranty for this free software.  For both users' and

- authors' sake, the GPL requires that modified versions be marked as

- changed, so that their problems will not be attributed erroneously to

- authors of previous versions.

- 

-   Some devices are designed to deny users access to install or run

- modified versions of the software inside them, although the manufacturer

- can do so.  This is fundamentally incompatible with the aim of

- protecting users' freedom to change the software.  The systematic

- pattern of such abuse occurs in the area of products for individuals to

- use, which is precisely where it is most unacceptable.  Therefore, we

- have designed this version of the GPL to prohibit the practice for those

- products.  If such problems arise substantially in other domains, we

- stand ready to extend this provision to those domains in future versions

- of the GPL, as needed to protect the freedom of users.

- 

-   Finally, every program is threatened constantly by software patents.

- States should not allow patents to restrict development and use of

- software on general-purpose computers, but in those that do, we wish to

- avoid the special danger that patents applied to a free program could

- make it effectively proprietary.  To prevent this, the GPL assures that

- patents cannot be used to render the program non-free.

- 

-   The precise terms and conditions for copying, distribution and

- modification follow.

- 

-                        TERMS AND CONDITIONS

- 

-   0. Definitions.

- 

-   "This License" refers to version 3 of the GNU General Public License.

- 

-   "Copyright" also means copyright-like laws that apply to other kinds of

- works, such as semiconductor masks.

- 

-   "The Program" refers to any copyrightable work licensed under this

- License.  Each licensee is addressed as "you".  "Licensees" and

- "recipients" may be individuals or organizations.

- 

-   To "modify" a work means to copy from or adapt all or part of the work

- in a fashion requiring copyright permission, other than the making of an

- exact copy.  The resulting work is called a "modified version" of the

- earlier work or a work "based on" the earlier work.

- 

-   A "covered work" means either the unmodified Program or a work based

- on the Program.

- 

-   To "propagate" a work means to do anything with it that, without

- permission, would make you directly or secondarily liable for

- infringement under applicable copyright law, except executing it on a

- computer or modifying a private copy.  Propagation includes copying,

- distribution (with or without modification), making available to the

- public, and in some countries other activities as well.

- 

-   To "convey" a work means any kind of propagation that enables other

- parties to make or receive copies.  Mere interaction with a user through

- a computer network, with no transfer of a copy, is not conveying.

- 

-   An interactive user interface displays "Appropriate Legal Notices"

- to the extent that it includes a convenient and prominently visible

- feature that (1) displays an appropriate copyright notice, and (2)

- tells the user that there is no warranty for the work (except to the

- extent that warranties are provided), that licensees may convey the

- work under this License, and how to view a copy of this License.  If

- the interface presents a list of user commands or options, such as a

- menu, a prominent item in the list meets this criterion.

- 

-   1. Source Code.

- 

-   The "source code" for a work means the preferred form of the work

- for making modifications to it.  "Object code" means any non-source

- form of a work.

- 

-   A "Standard Interface" means an interface that either is an official

- standard defined by a recognized standards body, or, in the case of

- interfaces specified for a particular programming language, one that

- is widely used among developers working in that language.

- 

-   The "System Libraries" of an executable work include anything, other

- than the work as a whole, that (a) is included in the normal form of

- packaging a Major Component, but which is not part of that Major

- Component, and (b) serves only to enable use of the work with that

- Major Component, or to implement a Standard Interface for which an

- implementation is available to the public in source code form.  A

- "Major Component", in this context, means a major essential component

- (kernel, window system, and so on) of the specific operating system

- (if any) on which the executable work runs, or a compiler used to

- produce the work, or an object code interpreter used to run it.

- 

-   The "Corresponding Source" for a work in object code form means all

- the source code needed to generate, install, and (for an executable

- work) run the object code and to modify the work, including scripts to

- control those activities.  However, it does not include the work's

- System Libraries, or general-purpose tools or generally available free

- programs which are used unmodified in performing those activities but

- which are not part of the work.  For example, Corresponding Source

- includes interface definition files associated with source files for

- the work, and the source code for shared libraries and dynamically

- linked subprograms that the work is specifically designed to require,

- such as by intimate data communication or control flow between those

- subprograms and other parts of the work.

- 

-   The Corresponding Source need not include anything that users

- can regenerate automatically from other parts of the Corresponding

- Source.

- 

-   The Corresponding Source for a work in source code form is that

- same work.

- 

-   2. Basic Permissions.

- 

-   All rights granted under this License are granted for the term of

- copyright on the Program, and are irrevocable provided the stated

- conditions are met.  This License explicitly affirms your unlimited

- permission to run the unmodified Program.  The output from running a

- covered work is covered by this License only if the output, given its

- content, constitutes a covered work.  This License acknowledges your

- rights of fair use or other equivalent, as provided by copyright law.

- 

-   You may make, run and propagate covered works that you do not

- convey, without conditions so long as your license otherwise remains

- in force.  You may convey covered works to others for the sole purpose

- of having them make modifications exclusively for you, or provide you

- with facilities for running those works, provided that you comply with

- the terms of this License in conveying all material for which you do

- not control copyright.  Those thus making or running the covered works

- for you must do so exclusively on your behalf, under your direction

- and control, on terms that prohibit them from making any copies of

- your copyrighted material outside their relationship with you.

- 

-   Conveying under any other circumstances is permitted solely under

- the conditions stated below.  Sublicensing is not allowed; section 10

- makes it unnecessary.

- 

-   3. Protecting Users' Legal Rights From Anti-Circumvention Law.

- 

-   No covered work shall be deemed part of an effective technological

- measure under any applicable law fulfilling obligations under article

- 11 of the WIPO copyright treaty adopted on 20 December 1996, or

- similar laws prohibiting or restricting circumvention of such

- measures.

- 

-   When you convey a covered work, you waive any legal power to forbid

- circumvention of technological measures to the extent such circumvention

- is effected by exercising rights under this License with respect to

- the covered work, and you disclaim any intention to limit operation or

- modification of the work as a means of enforcing, against the work's

- users, your or third parties' legal rights to forbid circumvention of

- technological measures.

- 

-   4. Conveying Verbatim Copies.

- 

-   You may convey verbatim copies of the Program's source code as you

- receive it, in any medium, provided that you conspicuously and

- appropriately publish on each copy an appropriate copyright notice;

- keep intact all notices stating that this License and any

- non-permissive terms added in accord with section 7 apply to the code;

- keep intact all notices of the absence of any warranty; and give all

- recipients a copy of this License along with the Program.

- 

-   You may charge any price or no price for each copy that you convey,

- and you may offer support or warranty protection for a fee.

- 

-   5. Conveying Modified Source Versions.

- 

-   You may convey a work based on the Program, or the modifications to

- produce it from the Program, in the form of source code under the

- terms of section 4, provided that you also meet all of these conditions:

- 

-     a) The work must carry prominent notices stating that you modified

-     it, and giving a relevant date.

- 

-     b) The work must carry prominent notices stating that it is

-     released under this License and any conditions added under section

-     7.  This requirement modifies the requirement in section 4 to

-     "keep intact all notices".

- 

-     c) You must license the entire work, as a whole, under this

-     License to anyone who comes into possession of a copy.  This

-     License will therefore apply, along with any applicable section 7

-     additional terms, to the whole of the work, and all its parts,

-     regardless of how they are packaged.  This License gives no

-     permission to license the work in any other way, but it does not

-     invalidate such permission if you have separately received it.

- 

-     d) If the work has interactive user interfaces, each must display

-     Appropriate Legal Notices; however, if the Program has interactive

-     interfaces that do not display Appropriate Legal Notices, your

-     work need not make them do so.

- 

-   A compilation of a covered work with other separate and independent

- works, which are not by their nature extensions of the covered work,

- and which are not combined with it such as to form a larger program,

- in or on a volume of a storage or distribution medium, is called an

- "aggregate" if the compilation and its resulting copyright are not

- used to limit the access or legal rights of the compilation's users

- beyond what the individual works permit.  Inclusion of a covered work

- in an aggregate does not cause this License to apply to the other

- parts of the aggregate.

- 

-   6. Conveying Non-Source Forms.

- 

-   You may convey a covered work in object code form under the terms

- of sections 4 and 5, provided that you also convey the

- machine-readable Corresponding Source under the terms of this License,

- in one of these ways:

- 

-     a) Convey the object code in, or embodied in, a physical product

-     (including a physical distribution medium), accompanied by the

-     Corresponding Source fixed on a durable physical medium

-     customarily used for software interchange.

- 

-     b) Convey the object code in, or embodied in, a physical product

-     (including a physical distribution medium), accompanied by a

-     written offer, valid for at least three years and valid for as

-     long as you offer spare parts or customer support for that product

-     model, to give anyone who possesses the object code either (1) a

-     copy of the Corresponding Source for all the software in the

-     product that is covered by this License, on a durable physical

-     medium customarily used for software interchange, for a price no

-     more than your reasonable cost of physically performing this

-     conveying of source, or (2) access to copy the

-     Corresponding Source from a network server at no charge.

- 

-     c) Convey individual copies of the object code with a copy of the

-     written offer to provide the Corresponding Source.  This

-     alternative is allowed only occasionally and noncommercially, and

-     only if you received the object code with such an offer, in accord

-     with subsection 6b.

- 

-     d) Convey the object code by offering access from a designated

-     place (gratis or for a charge), and offer equivalent access to the

-     Corresponding Source in the same way through the same place at no

-     further charge.  You need not require recipients to copy the

-     Corresponding Source along with the object code.  If the place to

-     copy the object code is a network server, the Corresponding Source

-     may be on a different server (operated by you or a third party)

-     that supports equivalent copying facilities, provided you maintain

-     clear directions next to the object code saying where to find the

-     Corresponding Source.  Regardless of what server hosts the

-     Corresponding Source, you remain obligated to ensure that it is

-     available for as long as needed to satisfy these requirements.

- 

-     e) Convey the object code using peer-to-peer transmission, provided

-     you inform other peers where the object code and Corresponding

-     Source of the work are being offered to the general public at no

-     charge under subsection 6d.

- 

-   A separable portion of the object code, whose source code is excluded

- from the Corresponding Source as a System Library, need not be

- included in conveying the object code work.

- 

-   A "User Product" is either (1) a "consumer product", which means any

- tangible personal property which is normally used for personal, family,

- or household purposes, or (2) anything designed or sold for incorporation

- into a dwelling.  In determining whether a product is a consumer product,

- doubtful cases shall be resolved in favor of coverage.  For a particular

- product received by a particular user, "normally used" refers to a

- typical or common use of that class of product, regardless of the status

- of the particular user or of the way in which the particular user

- actually uses, or expects or is expected to use, the product.  A product

- is a consumer product regardless of whether the product has substantial

- commercial, industrial or non-consumer uses, unless such uses represent

- the only significant mode of use of the product.

- 

-   "Installation Information" for a User Product means any methods,

- procedures, authorization keys, or other information required to install

- and execute modified versions of a covered work in that User Product from

- a modified version of its Corresponding Source.  The information must

- suffice to ensure that the continued functioning of the modified object

- code is in no case prevented or interfered with solely because

- modification has been made.

- 

-   If you convey an object code work under this section in, or with, or

- specifically for use in, a User Product, and the conveying occurs as

- part of a transaction in which the right of possession and use of the

- User Product is transferred to the recipient in perpetuity or for a

- fixed term (regardless of how the transaction is characterized), the

- Corresponding Source conveyed under this section must be accompanied

- by the Installation Information.  But this requirement does not apply

- if neither you nor any third party retains the ability to install

- modified object code on the User Product (for example, the work has

- been installed in ROM).

- 

-   The requirement to provide Installation Information does not include a

- requirement to continue to provide support service, warranty, or updates

- for a work that has been modified or installed by the recipient, or for

- the User Product in which it has been modified or installed.  Access to a

- network may be denied when the modification itself materially and

- adversely affects the operation of the network or violates the rules and

- protocols for communication across the network.

- 

-   Corresponding Source conveyed, and Installation Information provided,

- in accord with this section must be in a format that is publicly

- documented (and with an implementation available to the public in

- source code form), and must require no special password or key for

- unpacking, reading or copying.

- 

-   7. Additional Terms.

- 

-   "Additional permissions" are terms that supplement the terms of this

- License by making exceptions from one or more of its conditions.

- Additional permissions that are applicable to the entire Program shall

- be treated as though they were included in this License, to the extent

- that they are valid under applicable law.  If additional permissions

- apply only to part of the Program, that part may be used separately

- under those permissions, but the entire Program remains governed by

- this License without regard to the additional permissions.

- 

-   When you convey a copy of a covered work, you may at your option

- remove any additional permissions from that copy, or from any part of

- it.  (Additional permissions may be written to require their own

- removal in certain cases when you modify the work.)  You may place

- additional permissions on material, added by you to a covered work,

- for which you have or can give appropriate copyright permission.

- 

-   Notwithstanding any other provision of this License, for material you

- add to a covered work, you may (if authorized by the copyright holders of

- that material) supplement the terms of this License with terms:

- 

-     a) Disclaiming warranty or limiting liability differently from the

-     terms of sections 15 and 16 of this License; or

- 

-     b) Requiring preservation of specified reasonable legal notices or

-     author attributions in that material or in the Appropriate Legal

-     Notices displayed by works containing it; or

- 

-     c) Prohibiting misrepresentation of the origin of that material, or

-     requiring that modified versions of such material be marked in

-     reasonable ways as different from the original version; or

- 

-     d) Limiting the use for publicity purposes of names of licensors or

-     authors of the material; or

- 

-     e) Declining to grant rights under trademark law for use of some

-     trade names, trademarks, or service marks; or

- 

-     f) Requiring indemnification of licensors and authors of that

-     material by anyone who conveys the material (or modified versions of

-     it) with contractual assumptions of liability to the recipient, for

-     any liability that these contractual assumptions directly impose on

-     those licensors and authors.

- 

-   All other non-permissive additional terms are considered "further

- restrictions" within the meaning of section 10.  If the Program as you

- received it, or any part of it, contains a notice stating that it is

- governed by this License along with a term that is a further

- restriction, you may remove that term.  If a license document contains

- a further restriction but permits relicensing or conveying under this

- License, you may add to a covered work material governed by the terms

- of that license document, provided that the further restriction does

- not survive such relicensing or conveying.

- 

-   If you add terms to a covered work in accord with this section, you

- must place, in the relevant source files, a statement of the

- additional terms that apply to those files, or a notice indicating

- where to find the applicable terms.

- 

-   Additional terms, permissive or non-permissive, may be stated in the

- form of a separately written license, or stated as exceptions;

- the above requirements apply either way.

- 

-   8. Termination.

- 

-   You may not propagate or modify a covered work except as expressly

- provided under this License.  Any attempt otherwise to propagate or

- modify it is void, and will automatically terminate your rights under

- this License (including any patent licenses granted under the third

- paragraph of section 11).

- 

-   However, if you cease all violation of this License, then your

- license from a particular copyright holder is reinstated (a)

- provisionally, unless and until the copyright holder explicitly and

- finally terminates your license, and (b) permanently, if the copyright

- holder fails to notify you of the violation by some reasonable means

- prior to 60 days after the cessation.

- 

-   Moreover, your license from a particular copyright holder is

- reinstated permanently if the copyright holder notifies you of the

- violation by some reasonable means, this is the first time you have

- received notice of violation of this License (for any work) from that

- copyright holder, and you cure the violation prior to 30 days after

- your receipt of the notice.

- 

-   Termination of your rights under this section does not terminate the

- licenses of parties who have received copies or rights from you under

- this License.  If your rights have been terminated and not permanently

- reinstated, you do not qualify to receive new licenses for the same

- material under section 10.

- 

-   9. Acceptance Not Required for Having Copies.

- 

-   You are not required to accept this License in order to receive or

- run a copy of the Program.  Ancillary propagation of a covered work

- occurring solely as a consequence of using peer-to-peer transmission

- to receive a copy likewise does not require acceptance.  However,

- nothing other than this License grants you permission to propagate or

- modify any covered work.  These actions infringe copyright if you do

- not accept this License.  Therefore, by modifying or propagating a

- covered work, you indicate your acceptance of this License to do so.

- 

-   10. Automatic Licensing of Downstream Recipients.

- 

-   Each time you convey a covered work, the recipient automatically

- receives a license from the original licensors, to run, modify and

- propagate that work, subject to this License.  You are not responsible

- for enforcing compliance by third parties with this License.

- 

-   An "entity transaction" is a transaction transferring control of an

- organization, or substantially all assets of one, or subdividing an

- organization, or merging organizations.  If propagation of a covered

- work results from an entity transaction, each party to that

- transaction who receives a copy of the work also receives whatever

- licenses to the work the party's predecessor in interest had or could

- give under the previous paragraph, plus a right to possession of the

- Corresponding Source of the work from the predecessor in interest, if

- the predecessor has it or can get it with reasonable efforts.

- 

-   You may not impose any further restrictions on the exercise of the

- rights granted or affirmed under this License.  For example, you may

- not impose a license fee, royalty, or other charge for exercise of

- rights granted under this License, and you may not initiate litigation

- (including a cross-claim or counterclaim in a lawsuit) alleging that

- any patent claim is infringed by making, using, selling, offering for

- sale, or importing the Program or any portion of it.

- 

-   11. Patents.

- 

-   A "contributor" is a copyright holder who authorizes use under this

- License of the Program or a work on which the Program is based.  The

- work thus licensed is called the contributor's "contributor version".

- 

-   A contributor's "essential patent claims" are all patent claims

- owned or controlled by the contributor, whether already acquired or

- hereafter acquired, that would be infringed by some manner, permitted

- by this License, of making, using, or selling its contributor version,

- but do not include claims that would be infringed only as a

- consequence of further modification of the contributor version.  For

- purposes of this definition, "control" includes the right to grant

- patent sublicenses in a manner consistent with the requirements of

- this License.

- 

-   Each contributor grants you a non-exclusive, worldwide, royalty-free

- patent license under the contributor's essential patent claims, to

- make, use, sell, offer for sale, import and otherwise run, modify and

- propagate the contents of its contributor version.

- 

-   In the following three paragraphs, a "patent license" is any express

- agreement or commitment, however denominated, not to enforce a patent

- (such as an express permission to practice a patent or covenant not to

- sue for patent infringement).  To "grant" such a patent license to a

- party means to make such an agreement or commitment not to enforce a

- patent against the party.

- 

-   If you convey a covered work, knowingly relying on a patent license,

- and the Corresponding Source of the work is not available for anyone

- to copy, free of charge and under the terms of this License, through a

- publicly available network server or other readily accessible means,

- then you must either (1) cause the Corresponding Source to be so

- available, or (2) arrange to deprive yourself of the benefit of the

- patent license for this particular work, or (3) arrange, in a manner

- consistent with the requirements of this License, to extend the patent

- license to downstream recipients.  "Knowingly relying" means you have

- actual knowledge that, but for the patent license, your conveying the

- covered work in a country, or your recipient's use of the covered work

- in a country, would infringe one or more identifiable patents in that

- country that you have reason to believe are valid.

- 

-   If, pursuant to or in connection with a single transaction or

- arrangement, you convey, or propagate by procuring conveyance of, a

- covered work, and grant a patent license to some of the parties

- receiving the covered work authorizing them to use, propagate, modify

- or convey a specific copy of the covered work, then the patent license

- you grant is automatically extended to all recipients of the covered

- work and works based on it.

- 

-   A patent license is "discriminatory" if it does not include within

- the scope of its coverage, prohibits the exercise of, or is

- conditioned on the non-exercise of one or more of the rights that are

- specifically granted under this License.  You may not convey a covered

- work if you are a party to an arrangement with a third party that is

- in the business of distributing software, under which you make payment

- to the third party based on the extent of your activity of conveying

- the work, and under which the third party grants, to any of the

- parties who would receive the covered work from you, a discriminatory

- patent license (a) in connection with copies of the covered work

- conveyed by you (or copies made from those copies), or (b) primarily

- for and in connection with specific products or compilations that

- contain the covered work, unless you entered into that arrangement,

- or that patent license was granted, prior to 28 March 2007.

- 

-   Nothing in this License shall be construed as excluding or limiting

- any implied license or other defenses to infringement that may

- otherwise be available to you under applicable patent law.

- 

-   12. No Surrender of Others' Freedom.

- 

-   If conditions are imposed on you (whether by court order, agreement or

- otherwise) that contradict the conditions of this License, they do not

- excuse you from the conditions of this License.  If you cannot convey a

- covered work so as to satisfy simultaneously your obligations under this

- License and any other pertinent obligations, then as a consequence you may

- not convey it at all.  For example, if you agree to terms that obligate you

- to collect a royalty for further conveying from those to whom you convey

- the Program, the only way you could satisfy both those terms and this

- License would be to refrain entirely from conveying the Program.

- 

-   13. Use with the GNU Affero General Public License.

- 

-   Notwithstanding any other provision of this License, you have

- permission to link or combine any covered work with a work licensed

- under version 3 of the GNU Affero General Public License into a single

- combined work, and to convey the resulting work.  The terms of this

- License will continue to apply to the part which is the covered work,

- but the special requirements of the GNU Affero General Public License,

- section 13, concerning interaction through a network will apply to the

- combination as such.

- 

-   14. Revised Versions of this License.

- 

-   The Free Software Foundation may publish revised and/or new versions of

- the GNU General Public License from time to time.  Such new versions will

- be similar in spirit to the present version, but may differ in detail to

- address new problems or concerns.

- 

-   Each version is given a distinguishing version number.  If the

- Program specifies that a certain numbered version of the GNU General

- Public License "or any later version" applies to it, you have the

- option of following the terms and conditions either of that numbered

- version or of any later version published by the Free Software

- Foundation.  If the Program does not specify a version number of the

- GNU General Public License, you may choose any version ever published

- by the Free Software Foundation.

- 

-   If the Program specifies that a proxy can decide which future

- versions of the GNU General Public License can be used, that proxy's

- public statement of acceptance of a version permanently authorizes you

- to choose that version for the Program.

- 

-   Later license versions may give you additional or different

- permissions.  However, no additional obligations are imposed on any

- author or copyright holder as a result of your choosing to follow a

- later version.

- 

-   15. Disclaimer of Warranty.

- 

-   THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY

- APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT

- HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY

- OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,

- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR

- PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM

- IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF

- ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

- 

-   16. Limitation of Liability.

- 

-   IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING

- WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS

- THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY

- GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE

- USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF

- DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD

- PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),

- EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF

- SUCH DAMAGES.

- 

-   17. Interpretation of Sections 15 and 16.

- 

-   If the disclaimer of warranty and limitation of liability provided

- above cannot be given local legal effect according to their terms,

- reviewing courts shall apply local law that most closely approximates

- an absolute waiver of all civil liability in connection with the

- Program, unless a warranty or assumption of liability accompanies a

- copy of the Program in return for a fee.

- 

-                      END OF TERMS AND CONDITIONS

- 

-             How to Apply These Terms to Your New Programs

- 

-   If you develop a new program, and you want it to be of the greatest

- possible use to the public, the best way to achieve this is to make it

- free software which everyone can redistribute and change under these terms.

- 

-   To do so, attach the following notices to the program.  It is safest

- to attach them to the start of each source file to most effectively

- state the exclusion of warranty; and each file should have at least

- the "copyright" line and a pointer to where the full notice is found.

- 

-     <one line to give the program's name and a brief idea of what it does.>

-     Copyright (C) <year>  <name of author>

- 

-     This program is free software: you can redistribute it and/or modify

-     it under the terms of the GNU General Public License as published by

-     the Free Software Foundation, either version 3 of the License, or

-     (at your option) any later version.

- 

-     This program is distributed in the hope that it will be useful,

-     but WITHOUT ANY WARRANTY; without even the implied warranty of

-     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

-     GNU General Public License for more details.

- 

-     You should have received a copy of the GNU General Public License

-     along with this program.  If not, see <http://www.gnu.org/licenses/>.

- 

- Also add information on how to contact you by electronic and paper mail.

- 

-   If the program does terminal interaction, make it output a short

- notice like this when it starts in an interactive mode:

- 

-     <program>  Copyright (C) <year>  <name of author>

-     This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.

-     This is free software, and you are welcome to redistribute it

-     under certain conditions; type `show c' for details.

- 

- The hypothetical commands `show w' and `show c' should show the appropriate

- parts of the General Public License.  Of course, your program's commands

- might be different; for a GUI interface, you would use an "about box".

- 

-   You should also get your employer (if you work as a programmer) or school,

- if any, to sign a "copyright disclaimer" for the program, if necessary.

- For more information on this, and how to apply and follow the GNU GPL, see

- <http://www.gnu.org/licenses/>.

- 

-   The GNU General Public License does not permit incorporating your program

- into proprietary programs.  If your program is a subroutine library, you

- may consider it more useful to permit linking proprietary applications with

- the library.  If this is what you want to do, use the GNU Lesser General

- Public License instead of this License.  But first, please read

- <http://www.gnu.org/philosophy/why-not-lgpl.html>.

file removed
-31
@@ -1,31 +0,0 @@ 

- # Branislav Blaskovic <branislav@blaskovic.sk>

- # Tomas Meszaros <exo@tty.sk>

- 

- 

- NAME = fedora-gooey-karma

- BINDIR = /usr/bin

- DATADIR = /usr/share

- 

- all:

- 

- run:

- 	./src/fedora-gooey-karma

- 

- install:

- 	mkdir -p $(DESTDIR)$(DATADIR)/$(NAME)

- 	install -D -p -m 755 src/$(NAME) $(DESTDIR)$(BINDIR)/$(NAME)

- 	install -D -p -m 644 src/*.py $(DESTDIR)$(DATADIR)/$(NAME)/

- 	mkdir -p $(DESTDIR)$(DATADIR)/applications

- 	install -D -p -m 644 $(NAME).desktop $(DESTDIR)$(DATADIR)/applications/

- 	mkdir -p $(DESTDIR)$(DATADIR)/icons/hicolor/

- 	cp -r icons/* $(DESTDIR)$(DATADIR)/icons/hicolor/

- 	chmod 644 $(DESTDIR)$(DATADIR)/icons/hicolor/*/apps/$(NAME).png

- 

- uninstall:

- 	rm -rf $(DESTDIR)$(DATADIR)/$(NAME)

- 	rm -f $(DESTDIR)$(BINDIR)/$(NAME)

- 	rm -f $(DESTDIR)$(DATADIR)/applications/$(NAME).desktop

- 	rm -f $(DESTDIR)$(DATADIR)/icons/hicolor/*/apps/$(NAME).png

- 

- clean:

- 	rm src/*.pyc

file modified
+11 -53
@@ -1,69 +1,27 @@ 

  # Fedora Gooey Karma

  

- fedora-gooey-karma provides similar functionality to the fedora-easy-karma via GUI. It also currently provides some extra info like: yum info, bodhi info, test cases, bugs.

+ fedora-gooey-karma provides similar functionality to the fedora-easy-karma via GUI. It also currently provides some extra info like: dnf info, bodhi info, test cases, bugs.

  

- ## Based on

- 

-     http://tirfa.com/gooey-karma.html

+ https://fedoraproject.org/wiki/Fedora_Gooey_Karma

  

  

  ## Dependencies

+     python3-bodhi

You need also python3-bodhi-client to run it

+     python3-fedora

+     PyQt5

I'd prefer to use fedora package names, so python3-qt5 instead of PyQt5 , and it needs also python3-pyside2. You can leave pip package names in requirements.txt

  

-     python-fedora

-     fedora-cert

-     yum

-     yum-utils

-     bodhi-client

-     python-pyside

-     python-keyring

-     koji

-     

- To install these dependencies, use this command:

  

-     yum install python-fedora fedora-cert yum yum-utils bodhi-client python-pyside python-keyring koji

-     

- ## Installation and usage

+ ## usage

  

  ### Clone the repo

-     

-     git clone https://github.com/blaskovic/fedora-gooey-karma.git

+ 

+     git clone https://pagure.io/fedora-qa/fedora-gooey-karma.git

      cd fedora-gooey-karma

-     

- ### Run the application

  

- The easiest way to run application is to type:

-     

-     make run

-     

- You can also run the script without Makefile:

+ ### Run the application

  

      ./src/fedora-gooey-karma

-     

- ### Installation to filesystem

- 

- If you decide to install application to filesystem, use install phase from Makefile:

- 

-     make install

-     

- ### Building rpm package on Fedora

- 

- You are able to build your own RPM package on Fedora. All you need to do is to run [this](https://github.com/blaskovic/fedora-gooey-karma/blob/master/fedora-package/build_rpm.sh) script.

- 

- Please review this script before to adjust paths of rpmbuild and so.

- 

- ## Authors

-     

-     Branislav Blaskovic <branislav@blaskovic.sk>

-     Tomas Meszaros <exo@tty.sk>

-     

- ## Blog

- 

- You can read about development on [my personal blog](https://blaskovicbranislav.wordpress.com/tag/fedora-gooey-karma/).

-     

- ## Questions?

- 

- You can contact me via IRC Brano@freenode.org.

  

- ## Contribute

+ ## Contact

  

- I would appreciate any idea/patch. Feel free to request any functionality.

+ Contact [Fedora QA](https://fedoraproject.org/wiki/QA#Communicate).

file removed
-20
@@ -1,20 +0,0 @@ 

- TODO

- ====

- 

- * improve performance when loading packages from bodhi

-   - it takes too long on older machines

- 

- * add support for installing and deleting packages

-   - some buttons next to the package name could be nice

- 

- * refractor [done]

-   - split mainwindow.py into several files

- 

- * improve FAS integration

-   - login dialog at the start?

- 

- * automatic release recognition [done]

-   - the right release number should be selected automatically

- 

- * improve GUI

-   - add icons, improve toolbar (about, help, etc.)

@@ -0,0 +1,26 @@ 

+ fedora-gooey-karma(1)

+ =====================

+ :man source:  fedora-gooey-karma

+ :man manual:  FEDORA-GOOEY-KARMA

+ 

+ NAME

+ ----

+ 

+ fedora-gooey-karma - GUI tool for sending feedback about installed Test Update packages

+ 

+ SYNOPSIS

+ --------

+ 

+ fedora-gooey-karma

+ 

+ DESCRIPTION

+ -----------

+ 

+ Fedora-gooey-karma helps you to easily and fast provide feedback for all testing

+ updates that you have currently installed and browse the available ones. It is

+ similar tool to fedora-easy-karma but with graphical front-end.

+ 

+ 

+ AUTHORS

+ -------

+ Branislav Blaškovič <branislav@blaskovic.sk>

file added
+8
@@ -0,0 +1,8 @@ 

+ <!DOCTYPE RCC><RCC version="1.0">

+ <qresource>

+ <file alias="karma-angel.png">icons/karma-angel.png</file>

+ <file alias="karma-plain.png">icons/karma-plain.png</file>

+ <file alias="karma-crying.png">icons/karma-crying.png</file>

+ <file alias="fedora-gooey-karma.png">icons/256x256/apps/fedora-gooey-karma.png</file>

+ </qresource>

+ </RCC>

file added
+318
@@ -0,0 +1,318 @@ 

+ #!/bin/python3

+ 

+ 

+ 

+ # import system stuff

+ import os

+ import sys

+ import json

+ import pprint

+ from pathlib import Path

+ from ast import literal_eval

+ 

+ # UI libs

+ from PyQt5 import QtCore, QtGui, QtWidgets

+ 

+ # import UI

+ from FedoraGooeyMainWindow import Ui_MainWindow

+ from FedoraGooeyLoginWindow import Ui_Login

+ 

+ 

+ 

+ #  import Fedora libs

+ from bodhi.client.bindings import BodhiClient

+ from fedora.client import FasProxyClient, openidbaseclient

+ 

+ location_data = str(Path.home()) + "/.fgk"

+ location_assets = "/usr/share/fedora-gooey-karma/"

+ 

+ 

+ class Main():

+         def __init__(self):

+                 

+                 self.username = None

+                 self.password = None

+                 self.login = False

+                 

+                 # init application

+                 app = QtWidgets.QApplication(sys.argv)

+                 MainWindow = QtWidgets.QMainWindow()

+                 self.error = QtWidgets.QApplication([])

+                 self.ui = Ui_MainWindow()

+                 self.ui.setupUi(MainWindow)

+                 

+                 # login window

+                 self.Login = QtWidgets.QDialog()

+                 self.ui_login = Ui_Login()

+                 self.ui_login.setupUi(self.Login)

+ 

+ 

+                 # set assets

+                 self.bugfix = QtGui.QPixmap(location_assets +"bugfix.png")

+                 self.enhancement = QtGui.QPixmap(location_assets + "enhancement.png")

+                 self.newpackage = QtGui.QPixmap(location_assets+"new_package.png")

+                 self.security = QtGui.QPixmap(location_assets + "security.png")

+                 

+                 # set listeners

+                 self.ui.listWidget.itemSelectionChanged.connect(self.selected)

+                 self.ui.lineEdit.textEdited.connect(self.searching)

+                 self.ui.pushButton.clicked.connect(self.postKarma)

+                 self.ui.fetchUpdatesButton.clicked.connect(self.fetchList)

+                 self.ui.nextButton.clicked.connect(self.next_page)

+                 self.ui.previousButton.clicked.connect(self.previous_page)

+ 

+ 

+                 # listeners loginPopup

+                 self.ui_login.saveButton.clicked.connect(self.save)

+ 

+                 

+ 

+                 # Bodhi

+                 self.bc = BodhiClient()

+                 self.fas = FasProxyClient()

+ 

+                 self.query_args = {}

+                 self.query_args['rows_per_page'] = 30

+                 self.query_args['page'] = 1

+                 

+                 # fedora Release

+                 try:

+                         self.fedoraRelease = self.bc.get_releases()

+                         self.release = []

+                         for i in self.fedoraRelease['releases']:

+                                 self.release.append(i['name'])

+                         self.ui_login.fedoraReleases.addItems(self.release)

+                 except Exception as e:

+                         error_dialog = QtWidgets.QErrorMessage()

+                         error_dialog.showMessage("Please check your internet connection")

+                         error_dialog.exec_()

+                         print(e)

+ 

+                 # Get Login and fedora version

+                 self.loginPopup()

+ 

+                 # setting buttons

+                 self.ui.pushButton.setEnabled(0)

+                 self.ui.loginButton.clicked.connect(self.loginPopup)

+ 

+                 # Misc

+                 self.critpath = False

+ 

+ 

+                 MainWindow.show()

+                 sys.exit(app.exec_())

+         

+ 

+ 

+         def loginPopup(self):

+                 self.Login.show()

+                 return(0)

+         

+ 

+         def save(self):

+                 

+                 self.username = self.ui_login.Username.text()

+                 self.password = self.ui_login.Password.text()

+                 self.query_args['releases'] = self.ui_login.fedoraReleases.currentText()

+                 self.Login.close()

+                 self.verifyLogin()

+         

+         def verifyLogin(self):

+                 

+                 verification = self.fas.verify_password(self.username, self.password)

+                 if(verification):

+                         self.ui.usernamLable.setText(self.username)

+                         self.ui.loginButton.setText("logout")

+                         self.ui.loginButton.clicked.connect(self.logout)

+                         self.login = True

+                         self.ui.pushButton.setEnabled(1)

+                 else:

+                         error_dialog = QtWidgets.QErrorMessage()

+                         error_dialog.showMessage("Wrong Username or Password \n close to continue without login")

+                         error_dialog.exec_()

+                         self.loginPopup()

+ 

+         def logout(self):

+                 self.username = None

+                 self.password = None

+                 self.login = None

+                 self.ui.usernamLable.setText("Username")

+                 self.ui.loginButton.setText("login")

+                 self.ui.loginButton.clicked.connect(self.loginPopup)

+                 self.ui.pushButton.setEnabled(0)

+ 

+ 

+         

+         

+         # fetch the list of updates

+         def fetchList(self, cached_data=None):

+                 try:

+                         print("fetching")

+                         self.ui.listWidget.clear()

+                         if(cached_data):

+                                 self.data = json.load(open(cached_data, "r"))

+                         else:

+                                 self.data = self.bc.query(**self.query_args)

+                         for p in self.data['updates']:

+                                 self.ui.listWidget.addItem(p['title'])

+                         self.cache()

+                 except Exception as e:

+                         print(e)

+                         pass

+ 

+ 

+         # page controllers 

+         def next_page(self):

+                 try:

+                         self.query_args["page"] = int(self.query_args["page"]) + 1

+                         self.ui.PageNum.setText(str(self.query_args["page"]))

+                         self.directory = location_data + "/" +self.query_args['releases'] + '/'+ str(self.query_args['page']) + ".json"

+                         

+                         if(os.path.exists(self.directory)):

+                                 self.fetchList(self.directory)

+                         else:

+                                 self.fetchList()

+                 except Exception as e:

+                         print("exception",e,"doesn\'t exist" )

+ 

+         def previous_page(self):

+                 try:

+                                 

+                         if (int(self.query_args["page"]) > 1):

+                                 self.query_args["page"] = int(self.query_args["page"]) - 1

+                         self.ui.PageNum.setText(str(self.query_args["page"]))

+                         self.directory = location_data + "/" +self.query_args['releases'] + '/'+ str(self.query_args['page']) + ".json"

+                         

+                         if(os.path.exists(self.directory)):

+                                 self.fetchList(self.directory)

+                         else:

+                                 self.fetchList()

+                         

+                         self.fetchList(self.directory)

+ 

+                 except Exception as e:

+                         print(e)

+ 

+         # cache function

+         def cache(self):

+                 try:

+                         self.directory = location_data + "/" +self.query_args['releases'] + '/'+ str(self.query_args['page']) + ".json"

+                         

+                         # check dir

+                         os.makedirs(os.path.dirname( self.directory ), exist_ok=True)

+                         with open(self.directory, "w") as f:

+                                 f.write(json.dumps(self.data))

+                 except Exception as e:

+                         print(e)

+ 

+         # custom comment function for critpath

+         def comment(self, update, comment, karma=0, critpath = None):

+                 try:

+                         if (critpath == None):

+                                 x = self.bc1.send_request('comments/', verb='POST', auth=True, data={'update': update, 'text': comment, 'karma': karma, 'csrf_token': self.bc1.csrf()})

+                         else:

+                                 x = self.bc1.send_request('comments/', verb='POST', auth=True, data={'update': update, 'text': comment, 'karma': karma, 'karma_critpath': critpath ,'csrf_token': self.bc1.csrf()})

+                         return(x)

+                 except Exception as e:

+                         print(e)

+ 

+         def postKarma(self):

+                 t = self.ui.Package_breif.text()

+                 print(t)

+                 if (not self.login):

+                                 error_dialog = QtWidgets.QErrorMessage()

+                                 error_dialog.showMessage("login before posting karma")

+                                 error_dialog.exec_()

+                 else:

+                         try:

+                                 if(self.critpath == True):

+                                         self.bc1 = BodhiClient(base_url='https://bodhi.fedoraproject.org/', username=self.username, password=self.password)

+                                         self.comment(t, self.ui.commentEdit.toPlainText(), self.ui.karmaBox.currentText(),self.ui.critpathBox.currentText())

+                                 elif(self.critpath == False):

+                                         self.bc1 = BodhiClient(base_url='https://bodhi.fedoraproject.org/', username=self.username, password=self.password)

+                                 self.comment(t, self.ui.commentEdit.toPlainText(), self.ui.karmaBox.currentText())

+                                 error_dialog = QtWidgets.QErrorMessage()

+                                 error_dialog.showMessage("Karma Posted")

+                                 error_dialog.exec_()

+                         

+                         except Exception as e:

+                                 print(e)

+                                 error_dialog = QtWidgets.QErrorMessage()

+                                 error_dialog.showMessage(str(e))

+                                 error_dialog.exec_()

+ 

+ 

+ 

+         # selecting the update

+ 

+         # populates comments in the section

+         def populateComments(self, t):

+                 try:

+                         for comments in t['comments']:

+                                 comment = QtWidgets.QTreeWidgetItem()

+                                 comment.setText(0, str(comments['id']))

+                                 comment.setText(1, str(comments['karma']))

+                                 comment.setText(2, str(comments['karma_critpath']))

+                                 comment.setText(3, str(comments['user']['name']))

+                                 comment.setText(4, str(comments['text']))

+                                 self.ui.treeWidget_comment.insertTopLevelItem(0,comment)

+                 except:

+                         pass

+         

+ 

+ 

+ 

+         # changes the display text on selection.

+         def selected(self):

+                 try:

+                         t = self.ui.listWidget.selectedItems()

+                         for p in self.data['updates']:

+                                 if p['title']== t[0].text():

+                                         self.ui.Package_name_main.setText(p['title'])

+                                         self.ui.Package_breif.setText(p['alias'])

+                                         self.ui.Status.setText(p['status'])

+                                         self.ui.Date_submitted.setText(p["date_submitted"])

+                                         self.ui.Submit_user.setText(p['user']['name'])

+                                         self.ui.Request.setText(p['request'])

+                                         self.ui.Karma.setText(str(p['karma']))

+                                         self.ui.Release_notes.setText(p['notes'])

+                                         self.ui.treeWidget_comment.clear()

+                                         self.populateComments(p)

+                                         if(p["type"] == "enhancement"):  

+                                                 self.ui.UpdateType.setPixmap(self.enhancement)

+                                         elif(p["type"] == "bugfix"):

+                                                 self.ui.UpdateType.setPixmap(self.bugfix)                                                

+                                         elif(p["type"] == "security"):

+                                                 self.ui.UpdateType.setPixmap(self.security)                                                

+                                         elif(p["type"] == "newpackage"):

+                                                 self.ui.UpdateType.setPixmap(self.newpackage)

+                                         

+                                         if(p['critpath'] == True):

+                                                 self.ui.critpathBox.setVisible(1)

+                                                 self.ui.critpathText.setVisible(1)

+                                                 self.critpath = True

+                                         if(p['critpath'] == False):

+                                                 self.ui.critpathBox.setVisible(0)

+                                                 self.ui.critpathText.setVisible(0)

+                                                 self.critpath = False

+ 

+ 

+                 except Exception as e:

+                         print(e)

+                         pass

+ 

+         

+         # using the search bar

+         def searching(self):

+                 try:

+                         self.ui.listWidget.clear()

+                         for p in self.data['updates']:

+                                 if str(self.ui.lineEdit.text()) in p['title']:

+                                         self.ui.listWidget.addItem(p['title'])

+                         pass

+                 except Exception as e:

+                         print(e)

+ 

+ 

+ if __name__ == "__main__":

+         app = Main()

@@ -0,0 +1,63 @@ 

+ # -*- coding: utf-8 -*-

+ 

+ # Form implementation generated from reading ui file 'ui/Login.ui'

+ #

+ # Created by: PyQt5 UI code generator 5.13.0

+ #

+ # WARNING! All changes made in this file will be lost!

+ 

+ 

+ from PyQt5 import QtCore, QtGui, QtWidgets

+ 

+ 

+ class Ui_Login(object):

+     def setupUi(self, Login):

+         Login.setObjectName("Login")

+         Login.resize(250, 300)

+         sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)

+         sizePolicy.setHorizontalStretch(0)

+         sizePolicy.setVerticalStretch(0)

+         sizePolicy.setHeightForWidth(Login.sizePolicy().hasHeightForWidth())

+         Login.setSizePolicy(sizePolicy)

+         Login.setMinimumSize(QtCore.QSize(250, 300))

+         Login.setMaximumSize(QtCore.QSize(250, 300))

+         self.gridLayoutWidget = QtWidgets.QWidget(Login)

+         self.gridLayoutWidget.setGeometry(QtCore.QRect(0, 0, 241, 291))

+         self.gridLayoutWidget.setObjectName("gridLayoutWidget")

+         self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget)

+         self.gridLayout.setContentsMargins(0, 0, 0, 0)

+         self.gridLayout.setObjectName("gridLayout")

+         self.Password = QtWidgets.QLineEdit(self.gridLayoutWidget)

+         self.Password.setText("")

+         self.Password.setEchoMode(QtWidgets.QLineEdit.Password)

+         self.Password.setObjectName("Password")

+         self.gridLayout.addWidget(self.Password, 5, 0, 1, 1)

+         self.label_username = QtWidgets.QLabel(self.gridLayoutWidget)

+         self.label_username.setObjectName("label_username")

+         self.gridLayout.addWidget(self.label_username, 2, 0, 1, 1)

+         self.label_Password = QtWidgets.QLabel(self.gridLayoutWidget)

+         self.label_Password.setObjectName("label_Password")

+         self.gridLayout.addWidget(self.label_Password, 4, 0, 1, 1)

+         self.fedoraReleases = QtWidgets.QComboBox(self.gridLayoutWidget)

+         self.fedoraReleases.setObjectName("fedoraReleases")

+         self.gridLayout.addWidget(self.fedoraReleases, 7, 0, 1, 1)

+         self.label_FeodraVersion = QtWidgets.QLabel(self.gridLayoutWidget)

+         self.label_FeodraVersion.setObjectName("label_FeodraVersion")

+         self.gridLayout.addWidget(self.label_FeodraVersion, 6, 0, 1, 1)

+         self.saveButton = QtWidgets.QPushButton(self.gridLayoutWidget)

+         self.saveButton.setObjectName("saveButton")

+         self.gridLayout.addWidget(self.saveButton, 8, 0, 1, 1)

+         self.Username = QtWidgets.QLineEdit(self.gridLayoutWidget)

+         self.Username.setObjectName("Username")

+         self.gridLayout.addWidget(self.Username, 3, 0, 1, 1)

+ 

+         self.retranslateUi(Login)

+         QtCore.QMetaObject.connectSlotsByName(Login)

+ 

+     def retranslateUi(self, Login):

+         _translate = QtCore.QCoreApplication.translate

+         Login.setWindowTitle(_translate("Login", "Login"))

+         self.label_username.setText(_translate("Login", "Username"))

+         self.label_Password.setText(_translate("Login", "Password"))

+         self.label_FeodraVersion.setText(_translate("Login", "Fedora Version"))

+         self.saveButton.setText(_translate("Login", "Save"))

@@ -0,0 +1,344 @@ 

+ # -*- coding: utf-8 -*-

+ 

+ # Form implementation generated from reading ui file 'ui/MainWindow.ui'

+ #

+ # Created by: PyQt5 UI code generator 5.13.0

+ #

+ # WARNING! All changes made in this file will be lost!

+ 

+ 

+ from PyQt5 import QtCore, QtGui, QtWidgets

+ 

+ 

+ class Ui_MainWindow(object):

+     def setupUi(self, MainWindow):

+         MainWindow.setObjectName("MainWindow")

+         MainWindow.resize(1031, 766)

+         MainWindow.setMouseTracking(False)

+         self.centralwidget = QtWidgets.QWidget(MainWindow)

+         self.centralwidget.setObjectName("centralwidget")

+         self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)

+         self.gridLayout.setObjectName("gridLayout")

+         self.loginButton = QtWidgets.QPushButton(self.centralwidget)

+         self.loginButton.setObjectName("loginButton")

+         self.gridLayout.addWidget(self.loginButton, 1, 4, 1, 1)

+         self.frame = QtWidgets.QFrame(self.centralwidget)

+         self.frame.setEnabled(True)

+         self.frame.setAutoFillBackground(False)

+         self.frame.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedKingdom))

+         self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)

+         self.frame.setFrameShadow(QtWidgets.QFrame.Raised)

+         self.frame.setObjectName("frame")

+         self.gridLayout_2 = QtWidgets.QGridLayout(self.frame)

+         self.gridLayout_2.setObjectName("gridLayout_2")

+         self.karmaBox = QtWidgets.QComboBox(self.frame)

+         self.karmaBox.setObjectName("karmaBox")

+         self.karmaBox.addItem("")

+         self.karmaBox.addItem("")

+         self.karmaBox.addItem("")

+         self.gridLayout_2.addWidget(self.karmaBox, 28, 5, 1, 1)

+         self.Karma = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setBold(False)

+         font.setWeight(50)

+         font.setKerning(True)

+         self.Karma.setFont(font)

+         self.Karma.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))

+         self.Karma.setLayoutDirection(QtCore.Qt.LeftToRight)

+         self.Karma.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)

+         self.Karma.setObjectName("Karma")

+         self.gridLayout_2.addWidget(self.Karma, 12, 4, 1, 1)

+         self.UpdateType = QtWidgets.QLabel(self.frame)

+         self.UpdateType.setObjectName("UpdateType")

+         self.gridLayout_2.addWidget(self.UpdateType, 1, 3, 1, 1)

+         self.Request = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setBold(False)

+         font.setWeight(50)

+         font.setKerning(True)

+         self.Request.setFont(font)

+         self.Request.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))

+         self.Request.setLayoutDirection(QtCore.Qt.LeftToRight)

+         self.Request.setText("")

+         self.Request.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)

+         self.Request.setObjectName("Request")

+         self.gridLayout_2.addWidget(self.Request, 10, 6, 1, 1)

+         self.Release_notes = QtWidgets.QTextBrowser(self.frame)

+         self.Release_notes.setObjectName("Release_notes")

+         self.gridLayout_2.addWidget(self.Release_notes, 7, 3, 1, 6)

+         self.treeWidget_comment = QtWidgets.QTreeWidget(self.frame)

+         self.treeWidget_comment.setObjectName("treeWidget_comment")

+         self.gridLayout_2.addWidget(self.treeWidget_comment, 13, 3, 1, 6)

+         self.Status_static = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setBold(True)

+         font.setWeight(75)

+         font.setKerning(True)

+         self.Status_static.setFont(font)

+         self.Status_static.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))

+         self.Status_static.setLayoutDirection(QtCore.Qt.LeftToRight)

+         self.Status_static.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)

+         self.Status_static.setObjectName("Status_static")

+         self.gridLayout_2.addWidget(self.Status_static, 9, 5, 1, 1)

+         self.label_2 = QtWidgets.QLabel(self.frame)

+         self.label_2.setObjectName("label_2")

+         self.gridLayout_2.addWidget(self.label_2, 17, 3, 1, 1)

+         self.Package_name_main = QtWidgets.QLabel(self.frame)

+         self.Package_name_main.setMaximumSize(QtCore.QSize(1000, 1000))

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setPointSize(22)

+         font.setBold(False)

+         font.setWeight(50)

+         self.Package_name_main.setFont(font)

+         self.Package_name_main.setObjectName("Package_name_main")

+         self.gridLayout_2.addWidget(self.Package_name_main, 5, 3, 1, 4)

+         self.Package_breif = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setPointSize(12)

+         font.setBold(False)

+         font.setWeight(50)

+         self.Package_breif.setFont(font)

+         self.Package_breif.setObjectName("Package_breif")

+         self.gridLayout_2.addWidget(self.Package_breif, 6, 3, 1, 1)

+         self.Status = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setBold(False)

+         font.setWeight(50)

+         font.setKerning(True)

+         self.Status.setFont(font)

+         self.Status.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))

+         self.Status.setLayoutDirection(QtCore.Qt.LeftToRight)

+         self.Status.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)

+         self.Status.setObjectName("Status")

+         self.gridLayout_2.addWidget(self.Status, 9, 6, 1, 1)

+         self.Date_static = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setBold(True)

+         font.setWeight(75)

+         font.setKerning(True)

+         self.Date_static.setFont(font)

+         self.Date_static.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))

+         self.Date_static.setLayoutDirection(QtCore.Qt.LeftToRight)

+         self.Date_static.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)

+         self.Date_static.setObjectName("Date_static")

+         self.gridLayout_2.addWidget(self.Date_static, 10, 3, 1, 1)

+         self.pushButton = QtWidgets.QPushButton(self.frame)

+         self.pushButton.setObjectName("pushButton")

+         self.gridLayout_2.addWidget(self.pushButton, 28, 6, 1, 2)

+         self.frame_2 = QtWidgets.QFrame(self.frame)

+         self.frame_2.setMinimumSize(QtCore.QSize(300, 600))

+         self.frame_2.setMaximumSize(QtCore.QSize(300, 16777215))

+         self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)

+         self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)

+         self.frame_2.setObjectName("frame_2")

+         self.gridLayout_3 = QtWidgets.QGridLayout(self.frame_2)

+         self.gridLayout_3.setObjectName("gridLayout_3")

+         self.listWidget = QtWidgets.QListWidget(self.frame_2)

+         self.listWidget.setObjectName("listWidget")

+         self.gridLayout_3.addWidget(self.listWidget, 1, 0, 1, 2)

+         self.label_4 = QtWidgets.QLabel(self.frame_2)

+         self.label_4.setObjectName("label_4")

+         self.gridLayout_3.addWidget(self.label_4, 10, 0, 1, 1)

+         self.PageNum = QtWidgets.QLabel(self.frame_2)

+         self.PageNum.setObjectName("PageNum")

+         self.gridLayout_3.addWidget(self.PageNum, 10, 1, 1, 1)

+         self.fetchUpdatesButton = QtWidgets.QPushButton(self.frame_2)

+         self.fetchUpdatesButton.setObjectName("fetchUpdatesButton")

+         self.gridLayout_3.addWidget(self.fetchUpdatesButton, 11, 0, 1, 2)

+         self.lineEdit = QtWidgets.QLineEdit(self.frame_2)

+         self.lineEdit.setObjectName("lineEdit")

+         self.gridLayout_3.addWidget(self.lineEdit, 0, 0, 1, 2)

+         self.previousButton = QtWidgets.QPushButton(self.frame_2)

+         self.previousButton.setObjectName("previousButton")

+         self.gridLayout_3.addWidget(self.previousButton, 8, 0, 1, 1)

+         self.nextButton = QtWidgets.QPushButton(self.frame_2)

+         self.nextButton.setObjectName("nextButton")

+         self.gridLayout_3.addWidget(self.nextButton, 8, 1, 1, 1)

+         self.gridLayout_2.addWidget(self.frame_2, 0, 0, 29, 1)

+         self.Karma_static = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setBold(True)

+         font.setWeight(75)

+         font.setKerning(True)

+         self.Karma_static.setFont(font)

+         self.Karma_static.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))

+         self.Karma_static.setLayoutDirection(QtCore.Qt.LeftToRight)

+         self.Karma_static.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)

+         self.Karma_static.setObjectName("Karma_static")

+         self.gridLayout_2.addWidget(self.Karma_static, 12, 3, 1, 1)

+         self.Release = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setBold(False)

+         font.setWeight(50)

+         font.setKerning(True)

+         self.Release.setFont(font)

+         self.Release.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))

+         self.Release.setLayoutDirection(QtCore.Qt.LeftToRight)

+         self.Release.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)

+         self.Release.setObjectName("Release")

+         self.gridLayout_2.addWidget(self.Release, 9, 4, 1, 1)

+         self.karmaText = QtWidgets.QLabel(self.frame)

+         self.karmaText.setObjectName("karmaText")

+         self.gridLayout_2.addWidget(self.karmaText, 28, 4, 1, 1)

+         self.Request_static = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setBold(True)

+         font.setWeight(75)

+         font.setKerning(True)

+         self.Request_static.setFont(font)

+         self.Request_static.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))

+         self.Request_static.setLayoutDirection(QtCore.Qt.LeftToRight)

+         self.Request_static.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)

+         self.Request_static.setObjectName("Request_static")

+         self.gridLayout_2.addWidget(self.Request_static, 10, 5, 1, 1)

+         self.Submit_user = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setBold(False)

+         font.setWeight(50)

+         font.setKerning(True)

+         self.Submit_user.setFont(font)

+         self.Submit_user.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))

+         self.Submit_user.setLayoutDirection(QtCore.Qt.LeftToRight)

+         self.Submit_user.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)

+         self.Submit_user.setObjectName("Submit_user")

+         self.gridLayout_2.addWidget(self.Submit_user, 12, 6, 1, 1)

+         self.Submitter_static = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setBold(True)

+         font.setWeight(75)

+         font.setKerning(True)

+         self.Submitter_static.setFont(font)

+         self.Submitter_static.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))

+         self.Submitter_static.setLayoutDirection(QtCore.Qt.LeftToRight)

+         self.Submitter_static.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)

+         self.Submitter_static.setObjectName("Submitter_static")

+         self.gridLayout_2.addWidget(self.Submitter_static, 12, 5, 1, 1)

+         self.commentEdit = QtWidgets.QTextEdit(self.frame)

+         self.commentEdit.setMaximumSize(QtCore.QSize(16777215, 100))

+         self.commentEdit.setObjectName("commentEdit")

+         self.gridLayout_2.addWidget(self.commentEdit, 18, 3, 1, 6)

+         self.Release_static = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setBold(True)

+         font.setWeight(75)

+         font.setKerning(True)

+         self.Release_static.setFont(font)

+         self.Release_static.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))

+         self.Release_static.setLayoutDirection(QtCore.Qt.LeftToRight)

+         self.Release_static.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)

+         self.Release_static.setObjectName("Release_static")

+         self.gridLayout_2.addWidget(self.Release_static, 9, 3, 1, 1)

+         self.Date_submitted = QtWidgets.QLabel(self.frame)

+         font = QtGui.QFont()

+         font.setFamily("OpenSymbol")

+         font.setBold(False)

+         font.setWeight(50)

+         font.setKerning(True)

+         self.Date_submitted.setFont(font)

+         self.Date_submitted.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))

+         self.Date_submitted.setLayoutDirection(QtCore.Qt.LeftToRight)

+         self.Date_submitted.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)

+         self.Date_submitted.setObjectName("Date_submitted")

+         self.gridLayout_2.addWidget(self.Date_submitted, 10, 4, 1, 1)

+         self.critpathText = QtWidgets.QLabel(self.frame)

+         self.critpathText.setObjectName("critpathText")

+         self.gridLayout_2.addWidget(self.critpathText, 26, 4, 1, 1)

+         self.critpathBox = QtWidgets.QComboBox(self.frame)

+         self.critpathBox.setObjectName("critpathBox")

+         self.critpathBox.addItem("")

+         self.critpathBox.addItem("")

+         self.critpathBox.addItem("")

+         self.gridLayout_2.addWidget(self.critpathBox, 26, 5, 1, 1)

+         self.Karma_static.raise_()

+         self.frame_2.raise_()

+         self.Package_breif.raise_()

+         self.commentEdit.raise_()

+         self.Package_name_main.raise_()

+         self.Release_static.raise_()

+         self.Date_static.raise_()

+         self.pushButton.raise_()

+         self.Release.raise_()

+         self.Date_submitted.raise_()

+         self.Karma.raise_()

+         self.Submitter_static.raise_()

+         self.Request_static.raise_()

+         self.Submit_user.raise_()

+         self.Status_static.raise_()

+         self.Status.raise_()

+         self.Request.raise_()

+         self.UpdateType.raise_()

+         self.karmaBox.raise_()

+         self.karmaText.raise_()

+         self.label_2.raise_()

+         self.Release_notes.raise_()

+         self.treeWidget_comment.raise_()

+         self.critpathText.raise_()

+         self.critpathBox.raise_()

+         self.gridLayout.addWidget(self.frame, 3, 0, 1, 5)

+         self.usernamLable = QtWidgets.QLabel(self.centralwidget)

+         self.usernamLable.setObjectName("usernamLable")

+         self.gridLayout.addWidget(self.usernamLable, 1, 3, 1, 1, QtCore.Qt.AlignRight)

+         MainWindow.setCentralWidget(self.centralwidget)

+         self.statusbar = QtWidgets.QStatusBar(MainWindow)

+         self.statusbar.setObjectName("statusbar")

+         MainWindow.setStatusBar(self.statusbar)

+ 

+         self.retranslateUi(MainWindow)

+         self.karmaBox.setCurrentIndex(1)

+         self.critpathBox.setCurrentIndex(1)

+         QtCore.QMetaObject.connectSlotsByName(MainWindow)

+ 

+     def retranslateUi(self, MainWindow):

+         _translate = QtCore.QCoreApplication.translate

+         MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))

+         self.loginButton.setText(_translate("MainWindow", "Login"))

+         self.karmaBox.setCurrentText(_translate("MainWindow", "0"))

+         self.karmaBox.setItemText(0, _translate("MainWindow", "1"))

+         self.karmaBox.setItemText(1, _translate("MainWindow", "0"))

+         self.karmaBox.setItemText(2, _translate("MainWindow", "-1"))

+         self.Karma.setText(_translate("MainWindow", "__"))

+         self.UpdateType.setText(_translate("MainWindow", "__"))

+         self.treeWidget_comment.headerItem().setText(0, _translate("MainWindow", "#"))

+         self.treeWidget_comment.headerItem().setText(1, _translate("MainWindow", "karma"))

+         self.treeWidget_comment.headerItem().setText(2, _translate("MainWindow", "critpath"))

+         self.treeWidget_comment.headerItem().setText(3, _translate("MainWindow", "user"))

+         self.treeWidget_comment.headerItem().setText(4, _translate("MainWindow", "comment"))

+         self.Status_static.setText(_translate("MainWindow", "Status"))

+         self.label_2.setText(_translate("MainWindow", "Comment"))

+         self.Package_name_main.setText(_translate("MainWindow", "Package Name"))

+         self.Package_breif.setText(_translate("MainWindow", "breif"))

+         self.Status.setText(_translate("MainWindow", "__"))

+         self.Date_static.setText(_translate("MainWindow", "date submitted"))

+         self.pushButton.setText(_translate("MainWindow", "Submit"))

+         self.label_4.setText(_translate("MainWindow", "Page number:"))

+         self.PageNum.setText(_translate("MainWindow", "1"))

+         self.fetchUpdatesButton.setText(_translate("MainWindow", "Fetch Updates"))

+         self.previousButton.setText(_translate("MainWindow", "Previous"))

+         self.nextButton.setText(_translate("MainWindow", "Next"))

+         self.Karma_static.setText(_translate("MainWindow", "Karma"))

+         self.Release.setText(_translate("MainWindow", "__"))

+         self.karmaText.setText(_translate("MainWindow", "Karma"))

+         self.Request_static.setText(_translate("MainWindow", "Request"))

+         self.Submit_user.setText(_translate("MainWindow", "__"))

+         self.Submitter_static.setText(_translate("MainWindow", "Submitter"))

+         self.Release_static.setText(_translate("MainWindow", "Release"))

+         self.Date_submitted.setText(_translate("MainWindow", "__"))

+         self.critpathText.setText(_translate("MainWindow", "critpath"))

+         self.critpathBox.setCurrentText(_translate("MainWindow", "0"))

+         self.critpathBox.setItemText(0, _translate("MainWindow", "1"))

+         self.critpathBox.setItemText(1, _translate("MainWindow", "0"))

+         self.critpathBox.setItemText(2, _translate("MainWindow", "-1"))

+         self.usernamLable.setText(_translate("MainWindow", "Username"))

empty or binary file added
empty or binary file added
empty or binary file added
empty or binary file added
file added
+4
@@ -0,0 +1,4 @@ 

+ from bodhi.client.bindings import BodhiClient

+ import pprint

+ bc = BodhiClient(updateid="FEDORA-2016-1d9eb09530" )

+ pprint.pprint(bc.query()) 

\ No newline at end of file

file removed
-249
@@ -1,249 +0,0 @@ 

- #!/usr/bin/python2 -tt

- # -*- coding:  utf-8 -*-

- 

- #    Fedora Gooey Karma prototype

- #    based on the https://github.com/mkrizek/fedora-gooey-karma

- #

- #    Copyright (C) 2013

- #

- #    This program is free software: you can redistribute it and/or modify

- #    it under the terms of the GNU General Public License as published by

- #    the Free Software Foundation, either version 3 of the License, or

- #    (at your option) any later version.

- #

- #    This program is distributed in the hope that it will be useful,

- #    but WITHOUT ANY WARRANTY; without even the implied warranty of

- #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

- #    GNU General Public License for more details.

- #

- #    You should have received a copy of the GNU General Public License

- #    along with this program.  If not, see <http://www.gnu.org/licenses/>.

- #

- #    Author: Branislav Blaskovic <branislav@blaskovic.sk>

- #    Author: Tomas Meszaros <exo@tty.sk>

- 

- import os

- import os.path

- import re

- import subprocess

- from PySide import QtCore

- from fedora.client import BodhiClient

- from idlequeue import *

- 

- class BodhiWorker(QtCore.QThread):

- 

-     bodhi_query_done = QtCore.Signal(object)

- 

-     def __init__(self, worker_name, queue, main_thread, parent=None):

-         super(BodhiWorker, self).__init__(parent)

-         self.queue = queue

- 

-         self.worker_name = worker_name

-         self.main_thread = main_thread

- 

-         bodhi_url = 'https://admin.fedoraproject.org/updates/'

-         self.bc = BodhiClient(bodhi_url, useragent="Fedora Gooey Karma", debug=None)

-         self.installed_packages = []

-         self.process_list = self.get_proc_list()

- 

-     def run(self):

-         while True:

-             action, data = self.queue.get()

- 

-             if action == 'package_update':

-                 package = data

-                 # Get info about this build

-                 variant, bodhi_update = self.__bodhi_query_pkg(package)

-                 if bodhi_update:

-                     # If we get info from bodhi, prepare some info

-                     # and send it to GUI

-                     bodhi_update['bugs_by_id'] = self.__get_bugs_by_id(bodhi_update)

-                     bodhi_update['bodhi_url'] = self.__get_url(bodhi_update)

-                     bodhi_update['test_cases'] = self.__get_testcases(bodhi_update)

-                     bodhi_update['formatted_comments'] = self.__get_comments(bodhi_update)

-                     bodhi_update['relevant_packages'] = self.__get_relevant_packages(package.name)

-                     bodhi_update['parsed_nvr'] = self.__parse_nvr(bodhi_update['itemlist_name'])

-                     bodhi_update['currently_running'] = []

- 

-                     # Is something from this package running?

-                     ## Find package in installed packages

-                     for pkg in self.installed_packages:

-                         if pkg.name == bodhi_update['parsed_nvr']['name']:

-                             # Check for every process if it is in filelist

-                             for proc_name in self.process_list:

-                                 if proc_name in pkg.filelist:

-                                     # Append binary to list

-                                     bodhi_update['currently_running'].append(proc_name)

-                             break

- 

-                     # Send it to main thread

-                     main_thread_call(self.main_thread.bodhi_process_result,

-                              [variant, bodhi_update])

-                 else:

-                     # If there is no info from Bodhi, send info to main thread to adjust progress bar

-                     main_thread_call(self.main_thread.bodhi_process_result,

-                              ['progress_only', None])

- 

-             elif action == 'set_installed_packages':

-                 # Is this item for this worker?

-                 # data[0] worker_name, data[1] installed_packages

-                 if self.worker_name != data[0]:

-                     self.queue.put([action, data])

- 

-                 self.installed_packages = data[1]

-             else:

-                 print "Bodhi worker: Unknown action"

- 

-             self.queue.task_done()

- 

-     def __parse_nvr(self, nvr):

-         splitted = nvr.split('-')

- 

-         # We need at least 3 items

-         if len(splitted) < 3:

-             return

- 

-         # Get items from array

-         name = '-'.join(splitted[0:(len(splitted)-2)])

-         version = splitted[-2]

-         release = splitted[-1]

- 

-         return {'name':name, 'version':version, 'release':release}

- 

-     def __get_relevant_packages(self, package):

-         pkgs = {}

-         pkgs['desktop'] = {}

-         pkgs['others'] = {}

- 

-         # TODO: Should be rewritten to pure python code

-         try:

-             p = subprocess.Popen('repoquery -q --qf "%{name}" --whatrequires ' + str(package),

-                                  shell=True,

-                                  stdout=subprocess.PIPE,

-                                  stderr=subprocess.STDOUT)

- 

-             for line in p.stdout.readlines():

-                 name = line.lstrip().rstrip()

-                 for installed_pkg in self.installed_packages:

-                     if installed_pkg.name == name:

-                         # Which category is it?

-                         category = 'others'

-                         ## Search for desktop file

-                         for filename in installed_pkg.filelist:

-                             if re.search('^/usr/share/applications/(.*).desktop$', filename):

-                                 category = 'desktop'

-                                 break

- 

-                         pkgs[category][name] = installed_pkg

-         except IOError, e:

-             print "BodhiWorker.__get_relevant_packages: %s" % str(e)

- 

-         return pkgs

- 

-     def __bodhi_query_pkg(self, package):

-         # Search by name

-         rel = None

-         for part in package.release.split('.'):

-             if re.search("^fc[0-9]+$", part):

-                 rel = part.replace('fc','F')

- 

-         # Correct release not found

-         if not rel:

-             return [None, None]

- 

-         pkg_update = self.bc.query(release=rel, package=package.name, status='testing')['updates']

- 

-         if pkg_update:

-             for update in pkg_update:

-                 for build in update['builds']:

-                     # Does this build match with our current build?

-                     if build['nvr'] == package.nvr:

-                         update['itemlist_name'] = package.nvr

-                         update['yum_package'] = package

-                         update['variant'] = 'installed'

-                         return ['installed', update]

-                     # If not, there could be newer version

-                     elif build.package.name == package.name:

-                         update['itemlist_name'] = build['nvr']

-                         update['yum_package'] = build.package

-                         update['variant'] = 'available'

-                         return ['available', update]

- 

-         return [None, None]

- 

-     def __get_bugs_by_id(self, data):

-         # Prepare bugs for easier use

-         bugs = {}

-         if len(data['bugs']):

-             for bug in data['bugs']:

-                 bugs[bug['bz_id']] = bug['title']

- 

-         return bugs

- 

-     def __get_url(self, data):

-         return 'https://admin.fedoraproject.org/updates/' + str(data['updateid'])

- 

-     def __get_testcases(self, data):

-         if data['nagged'] is not None:

-             if 'test_cases' in data['nagged']:

-                 test_cases = data['nagged']['test_cases']

-                 for i in range(len(test_cases)):

-                     test_cases[i] = test_cases[i].replace("QA:Testcase ", "")

-                 return test_cases

-         # when package does not have test cases

-         return []

- 

-     def __get_comments(self, data):

-         # Get comments and rewrite it to better formatted dict

-         comments = []

-         i = 1

-         if len(data['comments']):

-             for comment in data['comments']:

-                 anonymous = ""

-                 if comment['anonymous']:

-                     anonymous = " (unauthenticated)"

-                 comments.append({'ord':i,

-                                  'text':comment['text'],

-                                  'author':comment['author'] + anonymous,

-                                  'karma':comment['karma']})

-                 i = i + 1

- 

-         return comments

- 

-     def which(filename):

-         # Get full path to relative bin name

-         locations = os.environ.get("PATH").split(os.pathsep)

-         candidates = []

-         for location in locations:

-             candidate = os.path.join(location, filename)

-             if os.path.isfile(candidate):

-                 candidates.append(candidate)

-         return candidates

- 

-     def get_proc_list(self):

-         p = subprocess.Popen(['/bin/ps', 'aux'], shell=False, stdout=subprocess.PIPE)

-         p.stdout.readline()

-         plist = []

- 

-         # Get processes, find their full path and so

-         for line in p.stdout:

-             try:

-                 process = re.split(' *', line.strip())[10]

- 

-                 # Not a process what we are looking for

-                 if process[0] == '[':

-                     continue

-                 # We need to get full path to process from PATH variable

-                 elif process[0] != '/':

-                     process = self.which(process)[0]

- 

-                 # Add it to list

-                 if process not in plist:

-                     plist.append(process)

- 

-             except:

-                 continue

- 

-         return plist

- 

- # vim: set expandtab ts=4 sts=4 sw=4 :

file removed
-73
@@ -1,73 +0,0 @@ 

- #!/usr/bin/python2 -tt

- # -*- coding:  utf-8 -*-

- 

- #    Fedora Gooey Karma prototype

- #    based on the https://github.com/mkrizek/fedora-gooey-karma

- #

- #    Copyright (C) 2013

- #

- #    This program is free software: you can redistribute it and/or modify

- #    it under the terms of the GNU General Public License as published by

- #    the Free Software Foundation, either version 3 of the License, or

- #    (at your option) any later version.

- #

- #    This program is distributed in the hope that it will be useful,

- #    but WITHOUT ANY WARRANTY; without even the implied warranty of

- #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

- #    GNU General Public License for more details.

- #

- #    You should have received a copy of the GNU General Public License

- #    along with this program.  If not, see <http://www.gnu.org/licenses/>.

- #

- #    Author: Branislav Blaskovic <branislav@blaskovic.sk>

- 

- import webbrowser

- 

- class WebBrowser:

- 

-     # URL constants

-     __BUGZILLA_REDHAT_URL = "http://bugzilla.redhat.com/show_bug.cgi?id="

-     __PACKAGE_INFO_URL = "https://apps.fedoraproject.org/packages/"

-     __FEDORAPEOPLE_TESTCASE_URL = "https://fedoraproject.org/wiki/QA:Testcase_"

-     __KOJI_PACKAGES_URL = "http://kojipkgs.fedoraproject.org//packages/"

- 

-     def __init__(self, main):

-         # Grab MainWindow instance

-         self.main = main

- 

-     def show_bug_in_browser(self):

-         bug_id = self.main.ui.treeWidget_bugs.currentItem().text(0)

-         webbrowser.open_new_tab("%s%s" % (self.__BUGZILLA_REDHAT_URL, bug_id))

- 

-     def show_relevant_pkg_in_browser(self):

-         widget = self.main.ui.treeWidget_related_packages.currentItem()

-         if widget.parent() is not None:

-             # Do not need to open new tab when double clicked at "Desktop packages"

-             # or "Other packages", so affect childs only

-             webbrowser.open_new_tab("%s%s" % (self.__PACKAGE_INFO_URL, widget.text(0).strip()))

- 

-     def show_bodhi_update_in_browser(self):

-         update = self.main.get_bodhi_update()

-         if not update:

-             return

-         webbrowser.open_new_tab(update['bodhi_url'])

- 

-     def download_source_rpm(self):

-         update = self.main.get_bodhi_update()

-         if not update:

-             return

- 

-         name = update['parsed_nvr']['name']

-         version = update['parsed_nvr']['version']

-         release = update['parsed_nvr']['release']

- 

-         # Set-up url

-         url = self.__KOJI_PACKAGES_URL + "%s/%s/%s/src/%s.src.rpm" % (name, version, release, update['itemlist_name'])

-         # Maybe it would be nice to show Save dialog and save directly to hdd

-         webbrowser.open_new_tab(url)

- 

-     def show_testcase_in_browser(self):

-         testcase_name = self.main.ui.treeWidget_test_cases.currentItem().text(0).replace(' ', '_')

-         webbrowser.open_new_tab("%s%s" % (self.__FEDORAPEOPLE_TESTCASE_URL, testcase_name))

- 

- # vim: set expandtab ts=4 sts=4 sw=4 :

file removed
-167
@@ -1,167 +0,0 @@ 

- #!/usr/bin/python2 -tt

- # -*- coding:  utf-8 -*-

- 

- #    Fedora Gooey Karma prototype

- #    based on the https://github.com/mkrizek/fedora-gooey-karma

- #

- #    Copyright (C) 2013

- #

- #    This program is free software: you can redistribute it and/or modify

- #    it under the terms of the GNU General Public License as published by

- #    the Free Software Foundation, either version 3 of the License, or

- #    (at your option) any later version.

- #

- #    This program is distributed in the hope that it will be useful,

- #    but WITHOUT ANY WARRANTY; without even the implied warranty of

- #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

- #    GNU General Public License for more details.

- #

- #    You should have received a copy of the GNU General Public License

- #    along with this program.  If not, see <http://www.gnu.org/licenses/>.

- #

- #    Author: Branislav Blaskovic <branislav@blaskovic.sk>

- 

- import os

- import pickle

- import keyring

- 

- class PackagesHolder:

- 

-     def __init__(self):

-         self.__db = []

- 

-     # Override some methods to be able to work with it as with list

-     def __getitem__(self, key):

-         # This method allows to use foo[x]

-         if key < len(self.__db) and key >= 0:

-             return self.__db[key]

-         else:

-             raise KeyError("PackageHolder: out of range")

- 

-     def __iter__(self):

-         # This method allows to use iteration, like foo in bar

-         class iterator(object):

-             def __init__(self, obj):

-                 self.obj = obj

-                 self.index = -1

- 

-             def __iter__(self):

-                  return self

- 

-             def next(self):

-                 if self.index < len(self.obj)-1:

-                     self.index += 1

-                     return self.obj[self.index]

-                 else:

-                     raise StopIteration

- 

-         return iterator(self.__db)

- 

-     # Common methods

-     def add_package(self, package):

-         package = package.strip()

-         if package == '':

-             return False

- 

-         if package not in self.__db:

-             self.__db.append(package)

-             return True

- 

-         return False

- 

-     def remove_package(self, package):

-         package = package.strip()

-         try:

-             self.__db.remove(package)

-             return True

-         except:

-             pass

- 

-         return False

- 

- 

- class Config:

- 

-     __KEYRING_SERVICE_NAME = 'fedora-gooey-karma-login'

- 

-     def __init__(self):

-         self.__config_file = None

-         try:  

-             self.__config_file = os.environ["HOME"] + "/.fedora-gooey-karma"

-         except KeyError: 

-             print "Please set the environment variable HOME"

- 

- 

-         self.ignored_packages = PackagesHolder()

-         self.favorited_packages = PackagesHolder()

-         self.fas_name = ''

-         self.__fas_password = ''

-         self.tab_side_index = 0

-         self.load_config()

- 

-     # Getters, setters

-     def get_fas_name(self): return self.fas_name

-     def get_fas_password(self): return self.__fas_password

-     def set_fas_name(self, name): self.fas_name = str(name)

-     def set_fas_password(self, password): self.__fas_password = str(password)

- 

-     def __verify_data(self):

-         # Check for side tabbar index

-         try:

-             self.tab_side_index = int(self.tab_side_index)

-         except:

-             self.tab_side_index = 0

- 

-     def load_config(self):

-         # Loads config from home dir

-         obj = None

-         try:

-             f = open(self.__config_file, 'rb')

-             obj = pickle.load(f)

-             f.close()

-         except:

-             print "Cannot open config file " + self.__config_file

- 

- 

-         # If we have object from pickle file, assign it

-         if obj:

-             for attr in ['favorited_packages', 'ignored_packages', 'fas_name', 'tab_side_index']:

-                 setattr(self, attr, getattr(obj, attr, None))

- 

-         # If username is loaded, get password for it

-         if self.fas_name != '':

-             try:

-                 self.__fas_password = keyring.get_password(self.__KEYRING_SERVICE_NAME, self.fas_name)

-             except:

-                 print "Error in load_config() while loading FAS token from keyring."

- 

-         # Verify loaded data

-         self.__verify_data()

- 

- 

-     def save_config(self):

-         # Firstly, delete password to not save it to file

-         pass_backup = self.__fas_password

-         self.__fas_password = ''

- 

-         # Save config to home dir

-         try:

-             f = open(self.__config_file, 'wb')

-             pickle.dump(self, f)

-             f.close()

-         except:

-             print "Cannot open config file " + self.__config_file

- 

-         # Restore password

-         self.__fas_password = pass_backup

- 

-         # Save password to keyring (if set)

-         try:

-             if self.__fas_password != '' and self.fas_name != '':

-                 keyring.set_password(self.__KEYRING_SERVICE_NAME, str(self.fas_name), str(self.__fas_password))

-         except:

-             print "Error in save_config() while saving FAS token to keyring."

- 

- 

- 

- # vim: set expandtab ts=4 sts=4 sw=4 :

file removed
-39
@@ -1,39 +0,0 @@ 

- #!/usr/bin/python2 -tt

- # -*- coding:  utf-8 -*-

- 

- #    Fedora Gooey Karma prototype

- #    based on the https://github.com/mkrizek/fedora-gooey-karma

- #

- #    Copyright (C) 2013

- #

- #    This program is free software: you can redistribute it and/or modify

- #    it under the terms of the GNU General Public License as published by

- #    the Free Software Foundation, either version 3 of the License, or

- #    (at your option) any later version.

- #

- #    This program is distributed in the hope that it will be useful,

- #    but WITHOUT ANY WARRANTY; without even the implied warranty of

- #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

- #    GNU General Public License for more details.

- #

- #    You should have received a copy of the GNU General Public License

- #    along with this program.  If not, see <http://www.gnu.org/licenses/>.

- #

- #    Author: Branislav Blaskovic <branislav@blaskovic.sk>

- 

- from PySide import QtGui

- 

- class CustomTreeWidgetItem(QtGui.QTreeWidgetItem):

-     def __init__(self, parent=None):

-         QtGui.QTreeWidgetItem.__init__(self, parent)

- 

-     def __lt__(self, otherItem):

-         # Overwritting this method to be able to sort

-         # items by numbers

-         column = self.treeWidget().sortColumn()

-         try:

-             return float( self.text(column) ) > float( otherItem.text(column) )

-         except ValueError:

-             return self.text(column) > otherItem.text(column)

- 

- # vim: set expandtab ts=4 sts=4 sw=4 :

file removed
-775
@@ -1,775 +0,0 @@ 

- #!/usr/bin/python2 -tt

- # -*- coding:  utf-8 -*-

- 

- #    Fedora Gooey Karma prototype

- #    based on the https://github.com/mkrizek/fedora-gooey-karma

- #

- #    Copyright (C) 2013

- #

- #    This program is free software: you can redistribute it and/or modify

- #    it under the terms of the GNU General Public License as published by

- #    the Free Software Foundation, either version 3 of the License, or

- #    (at your option) any later version.

- #

- #    This program is distributed in the hope that it will be useful,

- #    but WITHOUT ANY WARRANTY; without even the implied warranty of

- #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

- #    GNU General Public License for more details.

- #

- #    You should have received a copy of the GNU General Public License

- #    along with this program.  If not, see <http://www.gnu.org/licenses/>.

- #

- #    Author: Branislav Blaskovic <branislav@blaskovic.sk>

- #    Author: Tomas Meszaros <exo@tty.sk>

- 

- import os

- import re

- import sys

- 

- sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), '../share/fedora-gooey-karma'))

- 

- import Queue

- import rpm

- import datetime

- import koji

- from PySide import QtCore

- from PySide import QtGui

- 

- from customgui import CustomTreeWidgetItem

- from mainwindow_gui import Ui_MainWindow

- from packagesworker import PackagesWorker

- from bodhiworker import BodhiWorker

- from config import Config

- from toolbox import Toolbox

- from browser import WebBrowser

- 

- from idlequeuedispatcher import ThreadDispatcher

- from sendkarma import SendKarma

- 

- class MainWindow(QtGui.QMainWindow):

- 

-     __FEDORA_RELEASES = ['Fedora 19', 'Fedora 18', 'Fedora 17']

-     __BODHI_WORKERS_COUNT = 15

- 

-     def __init__(self, parent=None):

-         # GUI

-         super(MainWindow, self).__init__(parent)

-         self.ui = Ui_MainWindow()

-         self.ui.setupUi(self)

-         qr = self.frameGeometry()

-         cp = QtGui.QDesktopWidget().availableGeometry().center()

-         qr.moveCenter(cp)

-         self.move(qr.topLeft())

- 

-         # Holders of data

-         self.__installed_packages = {}

-         self.installed_updates = {}

-         self.available_updates = {}

-         self.__process_list = []

- 

-         # Config

-         self.config = Config()

-         ## Set fas username and password to widget

-         self.ui.usernameEdit.setText(self.config.get_fas_name())

-         self.ui.passwordEdit.setText(self.config.get_fas_password())

-         ## Set side tabbar index

-         self.ui.tabWidget_side.setCurrentIndex(int(self.config.tab_side_index))

- 

-         # Toolbox/WebBrowser classes

-         self.toolbox = Toolbox(self)

-         self.webbrowser = WebBrowser(self)

- 

-         # Prepare Queues

-         self.bodhi_workers_queue = Queue.Queue()

-         self.pkg_worker_queue = Queue.Queue()

- 

-         # Prepare ui

-         self.rpmTS = rpm.TransactionSet()

-         self.__load_and_set_fedora_releases()

-         self.ui.tabWidget.setCurrentIndex(0)

-         self.ui.toolBoxWhatToTest.setCurrentIndex(0)

-         self.ui.karmaFilterWidget.setVisible(False)

-         self.toolbox.update_favorite_ignored_pkg_lists()

- 

-         # Progress bar

-         self.progressBar = QtGui.QProgressBar()

-         self.progressBar.setMinimum(0)

-         self.ui.centralWidgetSplitter.addWidget(self.progressBar)

-         self.progressBar.hide()

- 

-         # TabBar - remove package's tabs and save it for later use

-         self.__tabBar_info_backup = None

-         self.__remove_package_tabs()

- 

-         # Thread Dispatcher to run methods thread-safely

-         self.dispatcher = ThreadDispatcher(self)

-         self.dispatcher.start()

- 

-         # Connects

-         ## Top main menu

-         self.ui.actionQuit.triggered.connect(QtCore.QCoreApplication.instance().quit, QtCore.Qt.QueuedConnection)

-         self.ui.actionAbout.triggered.connect(self.__show_message_box_about, QtCore.Qt.QueuedConnection)

-         ## Misc connects

-         self.ui.pkgList.currentItemChanged.connect(self.__show_package_detail, QtCore.Qt.QueuedConnection)

-         self.ui.searchEdit.textChanged.connect(self.__populate_pkgList, QtCore.Qt.QueuedConnection)

-         self.ui.installedBtn.clicked.connect(self.__show_installed, QtCore.Qt.QueuedConnection)

-         self.ui.availableBtn.clicked.connect(self.__show_available, QtCore.Qt.QueuedConnection)

-         self.ui.loadPackagesBtn.clicked.connect(self.__start_pkg_worker, QtCore.Qt.QueuedConnection)

-         self.ui.treeWidget_bugs.itemDoubleClicked.connect(self.webbrowser.show_bug_in_browser, QtCore.Qt.QueuedConnection)

-         self.ui.treeWidget_related_packages.itemDoubleClicked.connect(self.webbrowser.show_relevant_pkg_in_browser, QtCore.Qt.QueuedConnection)

-         self.ui.treeWidget_test_cases.itemDoubleClicked.connect(self.webbrowser.show_testcase_in_browser, QtCore.Qt.QueuedConnection)

-         self.ui.karmaCheckBox.stateChanged.connect(self.__populate_pkgList, QtCore.Qt.QueuedConnection)

-         self.ui.karmaFilterUserCombo.currentIndexChanged.connect(self.__populate_pkgList, QtCore.Qt.QueuedConnection)

-         self.ui.karmaUsernameEdit.textChanged.connect(self.__populate_pkgList, QtCore.Qt.QueuedConnection)

-         self.ui.sendBtn.clicked.connect(self.__send_comment, QtCore.Qt.QueuedConnection)

-         self.ui.tabWidget_side.currentChanged.connect(self.__tabside_changed)

-         ## Package settings

-         self.ui.pkg_settings_open_bodhi_update.clicked.connect(self.webbrowser.show_bodhi_update_in_browser, QtCore.Qt.QueuedConnection)

-         self.ui.pkg_settings_download_source_rpm.clicked.connect(self.webbrowser.download_source_rpm, QtCore.Qt.QueuedConnection)

-         self.ui.settings_pkg_cat_normal.toggled.connect(self.__set_pkg_category, QtCore.Qt.QueuedConnection)

-         self.ui.settings_pkg_cat_favorite.toggled.connect(self.__set_pkg_category, QtCore.Qt.QueuedConnection)

-         self.ui.settings_pkg_cat_ignored.toggled.connect(self.__set_pkg_category, QtCore.Qt.QueuedConnection)

-         ## What to test toolbox

-         self.ui.tool_pkg_list_negative.itemClicked.connect(self.toolbox.negative_karma_clicked, QtCore.Qt.QueuedConnection)

-         self.ui.tool_pkg_list_favorite.itemClicked.connect(self.toolbox.favorite_item_clicked, QtCore.Qt.QueuedConnection)

-         self.ui.tool_pkg_list_running.itemClicked.connect(self.toolbox.currently_running_clicked, QtCore.Qt.QueuedConnection)

-         self.ui.toolBoxWhatToTest.currentChanged.connect(self.toolbox.move_toolbox_buttons, QtCore.Qt.QueuedConnection)

-         self.ui.btn_tool_add_pkg.clicked.connect(self.toolbox.config_add_package, QtCore.Qt.QueuedConnection)

-         self.ui.btn_tool_remove_pkg.clicked.connect(self.toolbox.config_remove_package, QtCore.Qt.QueuedConnection)

- 

-         # Status list mouse click expand

-         def increaseSize(event):

-             self.ui.statusList.setMaximumHeight(400)

- 

-         def decreaseSize(event):

-             self.ui.statusList.setMaximumHeight(80)

- 

-         self.ui.statusList.mousePressEvent = increaseSize

-         self.ui.statusList.mouseReleaseEvent = decreaseSize

- 

-         # Start Bodhi workers

-         self.bodhi_workers = []

-         for i in range(self.__BODHI_WORKERS_COUNT):

-             b = BodhiWorker("bodhi_worker" + str(i), self.bodhi_workers_queue, self)

-             b.start()

-             self.bodhi_workers.append(b)

- 

-         # Start package worker

-         self.pkg_worker = PackagesWorker(self.pkg_worker_queue, self.bodhi_workers_queue, self.__BODHI_WORKERS_COUNT, self)

-         self.pkg_worker.start()

- 

-     def customEvent(self, event):

-         # Process idlequeue_dispatcher events

-         event.callback()

- 

-     def __tabside_changed(self, index):

-         self.config.tab_side_index = index

-         self.config.save_config()

- 

-     def __set_pkg_category(self, checked):

-         # There are 2 actions on every click. We just need once

-         if not checked:

-             return

-         # When radio button in settings is toggled, assign package to one

-         # of the categories in config

-         update = self.get_bodhi_update()

-         pkg_name = update['parsed_nvr']['name']

- 

-         if self.ui.settings_pkg_cat_normal.isChecked():

-             self.config.favorited_packages.remove_package(pkg_name)

-             self.config.ignored_packages.remove_package(pkg_name)

-         elif self.ui.settings_pkg_cat_favorite.isChecked():

-             self.config.favorited_packages.add_package(pkg_name)

-             self.config.ignored_packages.remove_package(pkg_name)

-         elif self.ui.settings_pkg_cat_ignored.isChecked():

-             self.config.favorited_packages.remove_package(pkg_name)

-             self.config.ignored_packages.add_package(pkg_name)

- 

-         self.config.save_config()

-         self.toolbox.update_favorite_ignored_pkg_lists()

- 

-     def set_num_of_pkgs_to_process(self, num):

-         # Set maximum size of progressbar according to num of packages to process in Bodhi

-         self.progressBar.setMaximum(int(num))

-         self.progressBar.show()

- 

-     def __remove_package_tabs(self):

-         # This will backup tab from layout

-         if self.__tabBar_info_backup is None:

-             self.__tabBar_info_backup = self.ui.tabWidget.widget(1)

-         self.ui.tabWidget.removeTab(1)

- 

-     def __show_message_box_about(self):

-         text = (

-             "<b>Fedora Gooey Karma</b> is a tool for browsing installed packages from updates-testing repository.<br><br>"

-             "You can easily add karma comment, open bugs attached to new build and more.<br><br>"

-             "Please feel free to <a href=\"https://github.com/blaskovic/fedora-gooey-karma/issues\">report any issues</a> and "

-             "visit <a href=\"https://github.com/blaskovic/fedora-gooey-karma\">homepage</a> of Fedora Gooey Karma.<br><br>"

-             "<b>Authors:</b><br>"

-             "<ul><li>Branislav Blaskovic</li><li>Tomas Meszaros</li></ul>"

-         )

-         QtGui.QMessageBox.about(QtGui.QApplication.activeWindow(), "Fedora Gooey Karma", text)

- 

-     def add_status_item(self, item):

-         self.ui.statusList.addItem(str(item))

-         self.ui.statusList.scrollToBottom()

- 

-     def bodhi_process_result(self, result):

-         variant, data = result

- 

-         # We've got one bodhi update of installed package, add it to pkg list

-         if variant == 'installed':

-             self.installed_updates[data['itemlist_name']] = data

-             self.add_status_item(data['itemlist_name'] + " is installed")

- 

-             if self.ui.installedBtn.isChecked():

-                 # Is this package in list?

-                 # If yes, remove it to add it again

-                 for i in range(self.ui.pkgList.count()):

-                     item = self.ui.pkgList.item(i)

-                     if item.text() == data['itemlist_name']:

-                         self.ui.pkgList.takeItem(i)

-                         self.ui.pkgList.removeItemWidget(item)

-                         break

- 

-                 # Add update to list if it match filters

-                 if self.__update_can_be_shown(data):

-                     self.ui.pkgList.addItem(data['itemlist_name'])

- 

-         # We've got available package update, save it

-         elif variant == 'available':

-             self.available_updates[data['itemlist_name']] = data

-             self.add_status_item(data['itemlist_name'] + " can be updated")

- 

-             if self.ui.availableBtn.isChecked():

-                 # Is this package in list?

-                 # If yes, remove it to add it again

-                 for i in range(self.ui.pkgList.count()):

-                     item = self.ui.pkgList.item(i)

-                     if item.text() == data['itemlist_name']:

-                         self.ui.pkgList.takeItem(i)

-                         self.ui.pkgList.removeItemWidget(item)

-                         break

- 

-                 # Add update to list if it match filters

-                 if self.__update_can_be_shown(data):

-                     self.ui.pkgList.addItem(data['itemlist_name'])

- 

-         # Prepare What to test section

-         if variant in ['installed', 'available']:

-             self.progressBar.setValue(self.progressBar.value() + 1)

- 

-             # Currently running

-             if len(data['currently_running']) > 0:

-                 # Add pkg name to list

-                 pkg_name_item = QtGui.QTreeWidgetItem()

-                 pkg_name_item.setText(0, str(data['itemlist_name']))

-                 self.ui.tool_pkg_list_running.insertTopLevelItem(0, pkg_name_item)

-                 pkg_name_item.setExpanded(True)

- 

-                 # Add running binaries as children

-                 for proc_name in data['currently_running']:

-                     proc_item = QtGui.QTreeWidgetItem()

-                     proc_item.setText(0, str(proc_name))

-                     pkg_name_item.insertChild(0, proc_item)

- 

-             # Negative karma

-             update_item = None

-             for comment in data['formatted_comments']:

-                 #  If we've got negative karma, show this update in list

-                 if comment['karma'] == -1:

-                     # Prepare line with update itself

-                     if  update_item is None:

-                         update_item = QtGui.QTreeWidgetItem()

-                         update_item.setText(0, str(data['itemlist_name']))

-                         self.ui.tool_pkg_list_negative.insertTopLevelItem(0, update_item)

-                         update_item.setExpanded(True)

- 

-                     # Add comment as child to update

-                     line = QtGui.QTreeWidgetItem()

-                     line.setText(0, str(comment['text']))

-                     update_item.insertChild(0, line)

- 

-             # If it is in favorited packages, update list

-             if data['parsed_nvr']['name'] in self.config.favorited_packages:

-                 self.toolbox.update_favorite_ignored_pkg_lists()

- 

-         # Catch progress only items

-         if variant == 'progress_only':

-             self.progressBar.setValue(self.progressBar.value() + 1)

- 

-     def set_installed_packages(self, packages):

-         self.add_status_item(str(len(packages)) + " installed packages on system")

-         for pkg in packages:

-             self.__installed_packages[pkg.nvr] = pkg

-         #self.__installed_packages = packages

- 

-     def __load_and_set_fedora_releases(self):

-         # Load fedora-release version

-         packages = self.rpmTS.dbMatch('name', 'fedora-release')

-         for package in packages:

-             break

- 

-         # Fill in current release as first

-         self.ui.releaseComboBox.addItem('Fedora ' + str(package['version']))

- 

-         # Fill combo box

-         for release in self.__FEDORA_RELEASES:

-             # Skip current release

-             if package['version'] == release.split()[-1]:

-                 continue

- 

-             self.ui.releaseComboBox.addItem(release)

- 

-     def __start_pkg_worker(self):

-         # Get release and put it to queue

-         # Package worker will get info about it

-         self.ui.loadPackagesBtn.setText('Loading packages')

-         # Clear holders

-         self.__installed_packages = {}

-         self.installed_updates = {}

-         self.available_updates = {}

-         self.__process_list = []

-         # Clear gui

-         self.progressBar.setValue(0)

-         self.__populate_pkgList()

-         self.ui.tool_pkg_list_running.clear()

-         releasever = self.ui.releaseComboBox.currentText().split()[-1]

-         self.pkg_worker_queue.put(releasever)

- 

-     def __available_pkg_list_loading_info(self):

-         release = self.ui.releaseComboBox.currentText()

-         message = "Please wait... Loading all available packages. [%s]" % release

-         self.ui.statusBar.showMessage(message)

- 

-     def installed_pkg_list_loading_info(self):

-         release = self.ui.releaseComboBox.currentText()

-         message = "Please wait... Loading all installed packages. [%s]" % release

-         self.ui.statusBar.showMessage(message)

- 

-     def save_installed_pkg_list(self, pkg_object):

-         message = "All installed packages has been loaded. [Fedora %s]" % pkg_object

-         self.ui.statusBar.showMessage(message)

-         self.ui.loadPackagesBtn.setText('Reload packages')

-         self.progressBar.hide()

- 

-     def __set_search_text(self, text):

-         self.ui.searchEdit.setText(str(text))

- 

-     def __decode_dict(self, dictionary, decoding='utf-8', data_type=str):

-         for key in dictionary:

-             if isinstance(dictionary[key], data_type):

-                 dictionary[key] = dictionary[key].decode(decoding)

- 

-     def __send_comment(self):

-         comment = self.ui.commentEdit.toPlainText()

-         karma = self.ui.karmaBox.currentText()

- 

-         # Catch all problems

-         if self.__selected_pkglist_item is None:

-             message = "Comment not submitted: Could not get update from testing builds"

-             self.add_status_item(message)

-             return

-         if not self.ui.usernameEdit.text():

-             message = "Please enter FAS username."

-             self.add_status_item(message)

-             return

-         if not self.ui.passwordEdit.text():

-             message = "Please enter FAS password."

-             self.add_status_item(message)

-             return

- 

-         # Create thread

-         sender = SendKarma(self.__selected_pkglist_item,

-                            self.ui.usernameEdit.text(),

-                            self.ui.passwordEdit.text(),

-                            comment,

-                            karma,

-                            self)

-         sender.start()

- 

-         self.ui.sendBtn.setText('Sending in progress')

-         self.ui.sendBtn.setDisabled(True)

- 

-         message = "Processing... Wait please..."

-         self.add_status_item(message)

- 

-     def sending_done(self, username, password):

-         # This method is called from thread SendKarma

-         # It clean up after sending

-         self.ui.commentEdit.clear()

-         self.config.set_fas_name(username)

-         self.config.set_fas_password(password)

-         self.config.save_config()

-         self.ui.sendBtn.setText('Send Karma')

-         self.ui.sendBtn.setEnabled(True)

- 

-     def __update_can_be_shown(self, update):

-         # Update need to pass several criteria to appear in current pkg list

-         ## Is this package name in ignore list?

-         if update['parsed_nvr']['name'] in self.config.ignored_packages:

-             return False

- 

-         ## Is this pkg list for him?

-         if self.ui.installedBtn.isChecked():

-             if update['itemlist_name'] not in self.installed_updates:

-                 return False

-         elif self.ui.availableBtn.isChecked():

-             if update['itemlist_name'] not in self.available_updates:

-                 return False

- 

-         ## Does this update match search text?

-         if len(self.ui.searchEdit.text()) > 0:

-             if self.ui.searchEdit.text() not in update['itemlist_name']:

-                 return False

- 

-         ## Karma submitted filter

-         if self.ui.karmaCheckBox.isChecked() and len(self.ui.karmaUsernameEdit.text()) > 0:

-             karma_username = self.ui.karmaUsernameEdit.text()

-             ### If there is 'not submitted' in combobox

-             if re.search('not', str(self.ui.karmaFilterUserCombo.currentText())):

-                 for comment in update['formatted_comments']:

-                     if comment['author'] == karma_username:

-                         return False

-             else:

-                 for comment in update['formatted_comments']:

-                     if comment['author'] == karma_username:

-                         return True

-                 # Not found a comment by this user?

-                 return False

- 

-         return True

- 

-     def __populate_pkgList(self):

-         self.ui.pkgList.clear()

- 

-         # Prepare data which we want to show

-         if self.ui.installedBtn.isChecked():

-             pkgList = self.installed_updates

-         elif self.ui.availableBtn.isChecked():

-             pkgList = self.available_updates

- 

-         # Loop packages

-         for key in pkgList.keys():

-             update = pkgList[key]

- 

-             # Can this be shown? Send it to filters!

-             if not self.__update_can_be_shown(update):

-                 continue

- 

-             self.ui.pkgList.addItem(update['itemlist_name'])

- 

-     def __show_installed(self):

-         # Show installed packages which are from testing repo

-         self.ui.availableBtn.setChecked(False)

-         self.ui.installedBtn.setChecked(True)

-         self.__populate_pkgList()

- 

-     def __show_available(self):

-         # Show packages available to update

-         self.ui.installedBtn.setChecked(False)

-         self.ui.availableBtn.setChecked(True)

-         self.__populate_pkgList()

- 

-     def get_bodhi_update(self, pkg=None):

-         # Get bodhi update according to selected package in pkg list

-         if self.ui.installedBtn.isChecked():

-             pkgList = self.installed_updates

-         elif self.ui.availableBtn.isChecked():

-             pkgList = self.available_updates

-         else:

-             return

- 

-         if pkg == None:

-             if self.ui.pkgList.currentItem():

-                 return pkgList[self.ui.pkgList.currentItem().text()]

-             else:

-                 return self.__selected_pkglist_item

-         else:

-             return pkgList[pkg]

- 

-     def __show_package_detail(self, pkg_item):

-         if pkg_item is None:

-             return

- 

-         text_browser_string = ""

- 

-         bodhi_update = self.get_bodhi_update()

- 

-         if bodhi_update is None:

-             return

- 

-         self.__selected_pkglist_item = bodhi_update

- 

-         # Show tab if not here

-         self.ui.tabWidget.addTab(self.__tabBar_info_backup, 'Update: ' + bodhi_update['itemlist_name'])

- 

-         # Switch tabs to info tab

-         self.ui.tabWidget.setCurrentIndex(1)

- 

-         ## title

-         self.ui.pkgNameLabel.setText(bodhi_update['itemlist_name'])

- 

-         # Fill in toolbox Add package line edit

-         self.ui.tool_pkg_name.setText(bodhi_update['parsed_nvr']['name'])

- 

-         ## yum info

-         yum_values = {}

-         yum_format_string = (

-             "<b>Yum Info %(installed_version)s</b>\n"

-             "<b>           Name:</b> %(name)s\n"

-             "<b>      Installed:</b> %(installed_timedelta)s ago\n"

-             "<b>           Arch:</b> %(arch)s\n"

-             "<b>        Version:</b> %(version)s\n"

-             "<b>        Release:</b> %(release)s\n"

-             "<b>           Size:</b> %(size)s\n"

-             "<b>           Repo:</b> %(repo)s\n"

-             "<b>      From repo:</b> %(from_repo)s\n"

-             "<b>        Summary:</b> %(summary)s\n"

-             "<b>            URL:</b> %(url)s\n"

-             "<b>        License:</b> %(license)s\n\n"

-             "\n\n"

-         )

- 

-         # Grab yum info from installed package

-         if bodhi_update.variant == 'installed':

-             yum_pkg = bodhi_update.yum_package

-         elif bodhi_update.variant == 'available':

-             # Search for package

-             for key in self.__installed_packages.keys():

-                 if self.__installed_packages[key].name == bodhi_update.yum_package.name:

-                     yum_pkg = self.__installed_packages[key]

-                     break

-         else:

-             yum_pkg = None

- 

-         if yum_pkg is not None:

-             # If we got yum package

-             # fetch info from yum_pkg

-             yum_values['name'] = yum_pkg.name

-             yum_values['arch'] = yum_pkg.arch

-             yum_values['version'] = yum_pkg.version

-             yum_values['release'] = yum_pkg.release

- 

-             # Calculate install time

-             now = datetime.datetime.now()

-             install_age=(now - datetime.datetime.fromtimestamp(yum_pkg.installtime))

-             if install_age.days > 0:

-                 yum_values['installed_timedelta'] = str(install_age.days) + " days"

-             elif install_age.seconds / 60 / 60 > 2:

-                 yum_values['installed_timedelta'] = str(install_age.seconds / 60 / 60) + " hours"

-             else:

-                 yum_values['installed_timedelta'] = str(install_age.seconds / 60) + " minutes"

- 

-             # Calculate package size

-             if yum_pkg.packagesize > 1e6:

-                 # It's better to display human readable number format

-                 # for the package size, e.g. 1 M (as does $ yum info)

-                 yum_values['size'] = "{:0.1f} M".format(round(yum_pkg.packagesize/1e6, 1))

-             else:

-                 yum_values['size'] = "{:0.1f} k".format(round(yum_pkg.packagesize/1e3, 1))

-             yum_values['repo'] = yum_pkg.repo

-             yum_values['from_repo'] = yum_pkg.ui_from_repo

-             yum_values['summary'] = yum_pkg.summary

-             yum_values['url'] = yum_pkg.url

-             yum_values['license'] = yum_pkg.license

-             yum_values['description'] = yum_pkg.description

-             yum_values['installed_version'] = ''

-             if bodhi_update.variant == 'available':

-                 yum_values['installed_version'] = '(installed version)'

-             # Decode all strings found in yum_values to utf-8

-             self.__decode_dict(yum_values)

-             # Map fetched yum info on the yum_format_string

-             # Add to the final browser string

-             text_browser_string += yum_format_string % yum_values

- 

-             ## Related packages

-             self.ui.treeWidget_related_packages.clear()

- 

-             ### Others pkgs category

-             item_others = QtGui.QTreeWidgetItem()

-             item_others.setText(0, "Other packages")

-             self.ui.treeWidget_related_packages.insertTopLevelItem(0, item_others)

-             item_others.setExpanded(True)

- 

-             for key in bodhi_update['relevant_packages']['others'].keys():

-                 rel_pkg = bodhi_update['relevant_packages']['others'][key]

-                 pkg = QtGui.QTreeWidgetItem()

-                 pkg.setText(0, str(rel_pkg.name))

-                 pkg.setToolTip(0, rel_pkg.description)

-                 item_others.insertChild(0, pkg)

- 

-             ### Desktop pkgs category

-             item_desktop = QtGui.QTreeWidgetItem()

-             item_desktop.setText(0, "Desktop packages")

-             self.ui.treeWidget_related_packages.insertTopLevelItem(0, item_desktop)

-             item_desktop.setExpanded(True)

- 

-             for key in bodhi_update['relevant_packages']['desktop'].keys():

-                 rel_pkg = bodhi_update['relevant_packages']['desktop'][key]

-                 pkg = QtGui.QTreeWidgetItem()

-                 pkg.setText(0, str(rel_pkg.name))

-                 pkg.setToolTip(0, rel_pkg.description)

-                 item_desktop.insertChild(0, pkg)

- 

-         else:

-             print "Not in installed packages"

- 

-         ## Bodhi info

-         bodhi_values = {}

-         bodhi_format_string = (

-             "<b>Bodhi Info</b>\n"

-             "<b>         Status:</b> %(status)s\n"

-             "<b>        Release:</b> %(release)s\n"

-             "<b>      Update ID:</b> %(updateid)s\n"

-             "<b>         Builds:</b> %(builds)s"

-             "<b>      Requested:</b> %(request)s\n"

-             "<b>         Pushed:</b> %(pushed)s\n"

-             "<b> Date Submitted:</b> %(date_submitted)s\n"

-             "<b>  Date Released:</b> %(date_released)s\n"

-             "<b>      Submitted:</b> %(submitter)s\n"

-             "<b>          Karma:</b> %(karma)s\n"

-             "<b>   Stable Karma:</b> %(stable_karma)s\n"

-             "<b> Unstable Karma:</b> %(unstable_karma)s\n"

-         )

- 

-         bodhi_values['status'] = bodhi_update['status']

-         bodhi_values['release'] = bodhi_update['release']['long_name']

-         bodhi_values['updateid'] = bodhi_update['updateid']

-         builds_list = bodhi_update['builds']

-         if len(builds_list):

-             build_num = 0

-             builds_string = ""

-             for build_item in builds_list:

-                 if not build_num:

-                     # First build name

-                     builds_string += "%s\n" % build_item['nvr']

-                 else:

-                     # Second and next builds

-                     builds_string += "%s%s\n" % (17 * " ", build_item['nvr'])

-                 build_num += 1

-             bodhi_values['builds'] = builds_string

-         else:

-             bodhi_values['builds'] = "None"

-         bodhi_values['request'] = bodhi_update['request']

-         bodhi_values['pushed'] = "True" if bodhi_update['date_pushed'] else "False"

-         bodhi_values['date_submitted'] = bodhi_update['date_submitted']

-         bodhi_values['date_released'] = bodhi_update['date_pushed']

-         bodhi_values['submitter'] = bodhi_update['submitter']

-         bodhi_values['karma'] = bodhi_update['karma']

-         bodhi_values['stable_karma'] = bodhi_update['stable_karma']

-         bodhi_values['unstable_karma'] = bodhi_update['unstable_karma']

-         bodhi_values['notes'] = bodhi_update['notes']

-         bodhi_values['bodhi_url'] = bodhi_update['bodhi_url']

-         # Decode all strings found in bodhi_values to utf-8

-         self.__decode_dict(bodhi_values)

-         # Map fetched bodhi info on the bodhi_format_string

-         # Add to the final browser string

-         text_browser_string += bodhi_format_string % bodhi_values

- 

-         # First descriptions

-         descriptions_values = {}

-         descriptions_values['yum_description'] = yum_values['description']

-         descriptions_values['bodhi_notes'] = bodhi_values['notes'].replace('\n', '<br>')

-         text_browser_descriptions = (

-             "<b>Yum description</b></pre>"

-             "%(yum_description)s<pre>\n\n"

-             "<b>Bodhi update notes</b></pre>"

-             "%(bodhi_notes)s<pre>\n\n"

-         )

-         text_browser_desc_string = text_browser_descriptions % descriptions_values

- 

-         # Set final browser string text

-         self.ui.textBrowser.setHtml('<pre>' + text_browser_desc_string + text_browser_string + '</pre>')

- 

-         ## Bugs

-         self.ui.treeWidget_bugs.clear()

-         if bodhi_update['bugs_by_id']:

-             for key in bodhi_update['bugs_by_id']:

-                 bug = QtGui.QTreeWidgetItem()

-                 bug.setText(0, str(key))

-                 bug.setText(1, str(bodhi_update['bugs_by_id'][key].encode('utf-8')))

-                 # Set tooltip with bug title

-                 bug.setToolTip(0, str(bodhi_update['bugs_by_id'][key].encode('utf-8')))

-                 bug.setToolTip(1, str(bodhi_update['bugs_by_id'][key].encode('utf-8')))

-                 self.ui.treeWidget_bugs.insertTopLevelItem(0, bug)

- 

-         ## Test cases

-         self.ui.treeWidget_test_cases.clear()

-         test_cases_list = bodhi_update['test_cases']

-         if len(test_cases_list):

-             for test_case_item in reversed(test_cases_list):

-                 tc = QtGui.QTreeWidgetItem()

-                 tc.setText(0, str(test_case_item))

-                 self.ui.treeWidget_test_cases.insertTopLevelItem(0, tc)

- 

-         ## Feedback

-         self.ui.treeWidget_feedback.clear()

-         comments = bodhi_update['formatted_comments']

- 

-         ## Prepare brushes

-         green_brush = QtGui.QBrush(QtCore.Qt.darkGreen)

-         red_brush = QtGui.QBrush(QtCore.Qt.red)

- 

-         ## Load comments

-         if comments:

-             for i in comments:

-                 comment = CustomTreeWidgetItem()

-                 comment_font = comment.font(1)

- 

-                 # Set color and font weight for karma

-                 if i['karma'] == 1:

-                     comment.setForeground(1, green_brush)

-                     comment_font.setBold(True)

-                 if i['karma'] == -1:

-                     comment.setForeground(1, red_brush)

-                     comment_font.setBold(True)

- 

-                 # Set font

-                 comment.setFont(1, comment_font)

-                 # Set vertical alignment to Top

-                 comment.setTextAlignment(0, QtCore.Qt.AlignTop)

-                 comment.setTextAlignment(1, QtCore.Qt.AlignTop)

-                 comment.setTextAlignment(2, QtCore.Qt.AlignTop)

-                 comment.setTextAlignment(3, QtCore.Qt.AlignTop)

-                 # Fill it with text

-                 comment.setText(0, str(i['ord']))

-                 comment.setText(1, str(i['karma']))

-                 comment.setText(2, i['author'])

-                 comment.setText(3, i['text'])

-                 comment.setToolTip(3, i['text'])

-                 self.ui.treeWidget_feedback.insertTopLevelItem(0, comment)

- 

-         # Settings

-         ## Toggle radio button normal/favorite/ignored pkg

-         if bodhi_update['parsed_nvr']['name'] in self.config.favorited_packages:

-             self.ui.settings_pkg_cat_favorite.setChecked(True)

-         elif bodhi_update['parsed_nvr']['name'] in self.config.ignored_packages:

-             self.ui.settings_pkg_cat_ignored.setChecked(True)

-         else:

-             self.ui.settings_pkg_cat_normal.setChecked(True)

- 

- 

-     def exit_threads(self):

-         # Try to properly exit threads

-         # This still need work

-         if not self.pkg_worker.isRunning():

-             self.pkg_worker.exit()

- 

-         for i in range(self.__BODHI_WORKERS_COUNT):

-             if not self.bodhi_workers[i].isRunning():

-                 self.bodhi_workers[i].exit()

- 

- def main():

-     app = QtGui.QApplication(sys.argv)

-     win = MainWindow()

-     win.show()

-     ret = app.exec_()

-     win.dispatcher.stop()

-     win.exit_threads()

-     sys.exit(ret)

- 

- if __name__ == "__main__":

-     main()

- 

- # vim: set expandtab ts=4 sts=4 sw=4 :

src/fedora-gooey-karma.desktop fedora-gooey-karma.desktop
file renamed
file was moved with no change to the file
file removed
-37
@@ -1,37 +0,0 @@ 

- #!/usr/bin/python2 -tt

- # -*- coding:  utf-8 -*-

- 

- #    Fedora Gooey Karma prototype

- #    based on the https://github.com/mkrizek/fedora-gooey-karma

- #

- #    Copyright (C) 2013

- #

- #    This program is free software: you can redistribute it and/or modify

- #    it under the terms of the GNU General Public License as published by

- #    the Free Software Foundation, either version 3 of the License, or

- #    (at your option) any later version.

- #

- #    This program is distributed in the hope that it will be useful,

- #    but WITHOUT ANY WARRANTY; without even the implied warranty of

- #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

- #    GNU General Public License for more details.

- #

- #    You should have received a copy of the GNU General Public License

- #    along with this program.  If not, see <http://www.gnu.org/licenses/>.

- #

- #    Author: Branislav Blaskovic <branislav@blaskovic.sk>

- #    Inspired by: http://code.activestate.com/recipes/578299-pyqt-pyside-

- #                 thread-safe-global-queue-main-loop-int/

- 

- import Queue

- 

- # Queue for main thread

- idle_loop = Queue.Queue()

- 

- def main_thread_call(func, *args, **kwargs):

-     def idle():

-         func(*args, **kwargs)

-         return False

-     idle_loop.put(idle)

- 

- # vim: set expandtab ts=4 sts=4 sw=4 :

@@ -1,55 +0,0 @@ 

- #!/usr/bin/python2 -tt

- # -*- coding:  utf-8 -*-

- 

- #    Fedora Gooey Karma prototype

- #    based on the https://github.com/mkrizek/fedora-gooey-karma

- #

- #    Copyright (C) 2013

- #

- #    This program is free software: you can redistribute it and/or modify

- #    it under the terms of the GNU General Public License as published by

- #    the Free Software Foundation, either version 3 of the License, or

- #    (at your option) any later version.

- #

- #    This program is distributed in the hope that it will be useful,

- #    but WITHOUT ANY WARRANTY; without even the implied warranty of

- #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

- #    GNU General Public License for more details.

- #

- #    You should have received a copy of the GNU General Public License

- #    along with this program.  If not, see <http://www.gnu.org/licenses/>.

- #

- #    Author: Branislav Blaskovic <branislav@blaskovic.sk>

- #    Inspired by: http://code.activestate.com/recipes/578299-pyqt-pyside-

- #                 thread-safe-global-queue-main-loop-int/

- 

- from PySide.QtGui import *

- from PySide.QtCore import *

- 

- from idlequeue import idle_loop

- 

- 

- class ThreadDispatcher(QThread):

-     def __init__(self, parent):

-         QThread.__init__(self)

-         self.parent = parent

- 

-     def run(self):

-         while True:

-             callback = idle_loop.get()

-             if callback is None:

-                 break

-             QApplication.postEvent(self.parent, _Event(callback))

- 

-     def stop(self):

-         idle_loop.put(None)

-         self.wait()

- 

- class _Event(QEvent):

-     EVENT_TYPE = QEvent.Type(QEvent.registerEventType())

- 

-     def __init__(self, callback):

-         QEvent.__init__(self, _Event.EVENT_TYPE)

-         self.callback = callback

- 

- # vim: set expandtab ts=4 sts=4 sw=4 :

file removed
-465
@@ -1,465 +0,0 @@ 

- # -*- coding: utf-8 -*-

- 

- # Form implementation generated from reading ui file 'ui/mainwindow.ui'

- #

- # Created: Sat Sep 21 23:44:03 2013

- #      by: pyside-uic 0.2.13 running on PySide 1.1.0

- #

- # WARNING! All changes made in this file will be lost!

- 

- from PySide import QtCore, QtGui

- 

- class Ui_MainWindow(object):

-     def setupUi(self, MainWindow):

-         MainWindow.setObjectName("MainWindow")

-         MainWindow.resize(1002, 772)

-         self.centralwidget = QtGui.QWidget(MainWindow)

-         self.centralwidget.setObjectName("centralwidget")

-         self.centralWidgetSplitter = QtGui.QVBoxLayout(self.centralwidget)

-         self.centralWidgetSplitter.setObjectName("centralWidgetSplitter")

-         self.horizontalLayout_4 = QtGui.QHBoxLayout()

-         self.horizontalLayout_4.setObjectName("horizontalLayout_4")

-         self.pkgLists = QtGui.QWidget(self.centralwidget)

-         self.pkgLists.setMaximumSize(QtCore.QSize(250, 16777215))

-         self.pkgLists.setObjectName("pkgLists")

-         self.verticalLayout = QtGui.QVBoxLayout(self.pkgLists)

-         self.verticalLayout.setContentsMargins(0, 0, 0, 0)

-         self.verticalLayout.setObjectName("verticalLayout")

-         self.groupBox = QtGui.QGroupBox(self.pkgLists)

-         self.groupBox.setCheckable(False)

-         self.groupBox.setObjectName("groupBox")

-         self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox)

-         self.verticalLayout_5.setObjectName("verticalLayout_5")

-         self.horizontalLayout_2 = QtGui.QHBoxLayout()

-         self.horizontalLayout_2.setObjectName("horizontalLayout_2")

-         self.searchEdit = QtGui.QLineEdit(self.groupBox)

-         font = QtGui.QFont()

-         font.setItalic(True)

-         self.searchEdit.setFont(font)

-         self.searchEdit.setInputMask("")

-         self.searchEdit.setText("")

-         self.searchEdit.setObjectName("searchEdit")

-         self.horizontalLayout_2.addWidget(self.searchEdit)

-         self.pushButton = QtGui.QPushButton(self.groupBox)

-         self.pushButton.setObjectName("pushButton")

-         self.horizontalLayout_2.addWidget(self.pushButton)

-         self.verticalLayout_5.addLayout(self.horizontalLayout_2)

-         self.karmaCheckBox = QtGui.QCheckBox(self.groupBox)

-         self.karmaCheckBox.setChecked(False)

-         self.karmaCheckBox.setObjectName("karmaCheckBox")

-         self.verticalLayout_5.addWidget(self.karmaCheckBox)

-         self.karmaFilterWidget = QtGui.QWidget(self.groupBox)

-         self.karmaFilterWidget.setMinimumSize(QtCore.QSize(0, 0))

-         self.karmaFilterWidget.setObjectName("karmaFilterWidget")

-         self.verticalLayout_8 = QtGui.QVBoxLayout(self.karmaFilterWidget)

-         self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)

-         self.verticalLayout_8.setObjectName("verticalLayout_8")

-         self.karmaFilterUserCombo = QtGui.QComboBox(self.karmaFilterWidget)

-         self.karmaFilterUserCombo.setObjectName("karmaFilterUserCombo")

-         self.karmaFilterUserCombo.addItem("")

-         self.karmaFilterUserCombo.addItem("")

-         self.verticalLayout_8.addWidget(self.karmaFilterUserCombo)

-         self.karmaUsernameEdit = QtGui.QLineEdit(self.karmaFilterWidget)

-         self.karmaUsernameEdit.setDragEnabled(False)

-         self.karmaUsernameEdit.setObjectName("karmaUsernameEdit")

-         self.verticalLayout_8.addWidget(self.karmaUsernameEdit)

-         self.verticalLayout_5.addWidget(self.karmaFilterWidget)

-         self.horizontalLayout = QtGui.QHBoxLayout()

-         self.horizontalLayout.setObjectName("horizontalLayout")

-         self.installedBtn = QtGui.QPushButton(self.groupBox)

-         self.installedBtn.setCheckable(True)

-         self.installedBtn.setChecked(True)

-         self.installedBtn.setAutoDefault(False)

-         self.installedBtn.setDefault(False)

-         self.installedBtn.setFlat(False)

-         self.installedBtn.setObjectName("installedBtn")

-         self.horizontalLayout.addWidget(self.installedBtn)

-         self.availableBtn = QtGui.QPushButton(self.groupBox)

-         self.availableBtn.setCheckable(True)

-         self.availableBtn.setChecked(False)

-         self.availableBtn.setAutoDefault(False)

-         self.availableBtn.setDefault(False)

-         self.availableBtn.setFlat(False)

-         self.availableBtn.setObjectName("availableBtn")

-         self.horizontalLayout.addWidget(self.availableBtn)

-         self.verticalLayout_5.addLayout(self.horizontalLayout)

-         self.verticalLayout.addWidget(self.groupBox)

-         self.pkgList = QtGui.QListWidget(self.pkgLists)

-         self.pkgList.setFrameShadow(QtGui.QFrame.Sunken)

-         self.pkgList.setTabKeyNavigation(False)

-         self.pkgList.setObjectName("pkgList")

-         self.verticalLayout.addWidget(self.pkgList)

-         self.horizontalLayout_5 = QtGui.QHBoxLayout()

-         self.horizontalLayout_5.setObjectName("horizontalLayout_5")

-         self.releaseComboBox = QtGui.QComboBox(self.pkgLists)

-         self.releaseComboBox.setObjectName("releaseComboBox")

-         self.horizontalLayout_5.addWidget(self.releaseComboBox)

-         self.loadPackagesBtn = QtGui.QPushButton(self.pkgLists)

-         self.loadPackagesBtn.setObjectName("loadPackagesBtn")

-         self.horizontalLayout_5.addWidget(self.loadPackagesBtn)

-         self.verticalLayout.addLayout(self.horizontalLayout_5)

-         self.horizontalLayout_4.addWidget(self.pkgLists)

-         self.tabWidget = QtGui.QTabWidget(self.centralwidget)

-         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Maximum)

-         sizePolicy.setHorizontalStretch(6)

-         sizePolicy.setVerticalStretch(0)

-         sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())

-         self.tabWidget.setSizePolicy(sizePolicy)

-         self.tabWidget.setMaximumSize(QtCore.QSize(9000, 9000))

-         self.tabWidget.setMouseTracking(False)

-         self.tabWidget.setStyleSheet("")

-         self.tabWidget.setObjectName("tabWidget")

-         self.tabWhatToTest = QtGui.QWidget()

-         self.tabWhatToTest.setAutoFillBackground(False)

-         self.tabWhatToTest.setStyleSheet("")

-         self.tabWhatToTest.setObjectName("tabWhatToTest")

-         self.horizontalLayout_6 = QtGui.QHBoxLayout(self.tabWhatToTest)

-         self.horizontalLayout_6.setObjectName("horizontalLayout_6")

-         self.toolBoxWhatToTest = QtGui.QToolBox(self.tabWhatToTest)

-         self.toolBoxWhatToTest.setObjectName("toolBoxWhatToTest")

-         self.toolBoxWelcome = QtGui.QWidget()

-         self.toolBoxWelcome.setGeometry(QtCore.QRect(0, 0, 84, 84))

-         self.toolBoxWelcome.setObjectName("toolBoxWelcome")

-         self.verticalLayout_7 = QtGui.QVBoxLayout(self.toolBoxWelcome)

-         self.verticalLayout_7.setObjectName("verticalLayout_7")

-         self.textBrowser_2 = QtGui.QTextBrowser(self.toolBoxWelcome)

-         self.textBrowser_2.setStyleSheet("background-color: rgba(255, 255, 255, 0);")

-         self.textBrowser_2.setFrameShadow(QtGui.QFrame.Plain)

-         self.textBrowser_2.setObjectName("textBrowser_2")

-         self.verticalLayout_7.addWidget(self.textBrowser_2)

-         self.toolBoxWhatToTest.addItem(self.toolBoxWelcome, "")

-         self.toolBoxNegativeKarma = QtGui.QWidget()

-         self.toolBoxNegativeKarma.setGeometry(QtCore.QRect(0, 0, 602, 103))

-         self.toolBoxNegativeKarma.setObjectName("toolBoxNegativeKarma")

-         self.verticalLayout_9 = QtGui.QVBoxLayout(self.toolBoxNegativeKarma)

-         self.verticalLayout_9.setObjectName("verticalLayout_9")

-         self.label_6 = QtGui.QLabel(self.toolBoxNegativeKarma)

-         self.label_6.setObjectName("label_6")

-         self.verticalLayout_9.addWidget(self.label_6)

-         self.tool_pkg_list_negative = QtGui.QTreeWidget(self.toolBoxNegativeKarma)

-         self.tool_pkg_list_negative.setObjectName("tool_pkg_list_negative")

-         self.verticalLayout_9.addWidget(self.tool_pkg_list_negative)

-         self.toolBoxWhatToTest.addItem(self.toolBoxNegativeKarma, "")

-         self.toolBoxRunning = QtGui.QWidget()

-         self.toolBoxRunning.setGeometry(QtCore.QRect(0, 0, 712, 454))

-         self.toolBoxRunning.setObjectName("toolBoxRunning")

-         self.verticalLayout_12 = QtGui.QVBoxLayout(self.toolBoxRunning)

-         self.verticalLayout_12.setObjectName("verticalLayout_12")

-         self.tool_pkg_list_running = QtGui.QTreeWidget(self.toolBoxRunning)

-         self.tool_pkg_list_running.setObjectName("tool_pkg_list_running")

-         self.verticalLayout_12.addWidget(self.tool_pkg_list_running)

-         self.toolBoxWhatToTest.addItem(self.toolBoxRunning, "")

-         self.toolBoxFavorite = QtGui.QWidget()

-         self.toolBoxFavorite.setGeometry(QtCore.QRect(0, 0, 361, 122))

-         self.toolBoxFavorite.setObjectName("toolBoxFavorite")

-         self.toolBoxFavoriteLayout = QtGui.QVBoxLayout(self.toolBoxFavorite)

-         self.toolBoxFavoriteLayout.setObjectName("toolBoxFavoriteLayout")

-         self.tool_pkg_list_favorite = QtGui.QTreeWidget(self.toolBoxFavorite)

-         self.tool_pkg_list_favorite.setObjectName("tool_pkg_list_favorite")

-         self.toolBoxFavoriteLayout.addWidget(self.tool_pkg_list_favorite)

-         self.horizontalLayout_7 = QtGui.QHBoxLayout()

-         self.horizontalLayout_7.setContentsMargins(-1, 0, -1, -1)

-         self.horizontalLayout_7.setObjectName("horizontalLayout_7")

-         self.tool_add_remove_pkg = QtGui.QWidget(self.toolBoxFavorite)

-         self.tool_add_remove_pkg.setMinimumSize(QtCore.QSize(0, 0))

-         self.tool_add_remove_pkg.setObjectName("tool_add_remove_pkg")

-         self.horizontalLayout_9 = QtGui.QHBoxLayout(self.tool_add_remove_pkg)

-         self.horizontalLayout_9.setContentsMargins(0, 0, 0, 0)

-         self.horizontalLayout_9.setObjectName("horizontalLayout_9")

-         self.btn_tool_remove_pkg = QtGui.QPushButton(self.tool_add_remove_pkg)

-         self.btn_tool_remove_pkg.setObjectName("btn_tool_remove_pkg")

-         self.horizontalLayout_9.addWidget(self.btn_tool_remove_pkg)

-         spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)

-         self.horizontalLayout_9.addItem(spacerItem)

-         self.tool_pkg_name = QtGui.QLineEdit(self.tool_add_remove_pkg)

-         self.tool_pkg_name.setObjectName("tool_pkg_name")

-         self.horizontalLayout_9.addWidget(self.tool_pkg_name)

-         self.btn_tool_add_pkg = QtGui.QPushButton(self.tool_add_remove_pkg)

-         self.btn_tool_add_pkg.setObjectName("btn_tool_add_pkg")

-         self.horizontalLayout_9.addWidget(self.btn_tool_add_pkg)

-         self.horizontalLayout_7.addWidget(self.tool_add_remove_pkg)

-         self.toolBoxFavoriteLayout.addLayout(self.horizontalLayout_7)

-         self.toolBoxWhatToTest.addItem(self.toolBoxFavorite, "")

-         self.toolBoxIgnored = QtGui.QWidget()

-         self.toolBoxIgnored.setGeometry(QtCore.QRect(0, 0, 84, 84))

-         self.toolBoxIgnored.setObjectName("toolBoxIgnored")

-         self.toolBoxIgnoredLayout = QtGui.QVBoxLayout(self.toolBoxIgnored)

-         self.toolBoxIgnoredLayout.setObjectName("toolBoxIgnoredLayout")

-         self.tool_pkg_list_ignored = QtGui.QTreeWidget(self.toolBoxIgnored)

-         self.tool_pkg_list_ignored.setObjectName("tool_pkg_list_ignored")

-         self.toolBoxIgnoredLayout.addWidget(self.tool_pkg_list_ignored)

-         self.toolBoxWhatToTest.addItem(self.toolBoxIgnored, "")

-         self.horizontalLayout_6.addWidget(self.toolBoxWhatToTest)

-         self.tabWidget.addTab(self.tabWhatToTest, "")

-         self.TabInfo = QtGui.QWidget()

-         self.TabInfo.setCursor(QtCore.Qt.ArrowCursor)

-         self.TabInfo.setStyleSheet("")

-         self.TabInfo.setObjectName("TabInfo")

-         self.verticalLayout_4 = QtGui.QVBoxLayout(self.TabInfo)

-         self.verticalLayout_4.setObjectName("verticalLayout_4")

-         self.tabWidget_side = QtGui.QTabWidget(self.TabInfo)

-         self.tabWidget_side.setTabPosition(QtGui.QTabWidget.East)

-         self.tabWidget_side.setObjectName("tabWidget_side")

-         self.tabPkg_info = QtGui.QWidget()

-         self.tabPkg_info.setObjectName("tabPkg_info")

-         self.verticalLayout_6 = QtGui.QVBoxLayout(self.tabPkg_info)

-         self.verticalLayout_6.setObjectName("verticalLayout_6")

-         self.splitter_6 = QtGui.QSplitter(self.tabPkg_info)

-         self.splitter_6.setOrientation(QtCore.Qt.Vertical)

-         self.splitter_6.setObjectName("splitter_6")

-         self.splitter_7 = QtGui.QSplitter(self.splitter_6)

-         self.splitter_7.setOrientation(QtCore.Qt.Horizontal)

-         self.splitter_7.setObjectName("splitter_7")

-         self.layoutWidget_2 = QtGui.QWidget(self.splitter_7)

-         self.layoutWidget_2.setObjectName("layoutWidget_2")

-         self.verticalLayout_11 = QtGui.QVBoxLayout(self.layoutWidget_2)

-         self.verticalLayout_11.setContentsMargins(0, 0, 0, 0)

-         self.verticalLayout_11.setObjectName("verticalLayout_11")

-         self.pkgNameLabel = QtGui.QLabel(self.layoutWidget_2)

-         font = QtGui.QFont()

-         font.setPointSize(16)

-         self.pkgNameLabel.setFont(font)

-         self.pkgNameLabel.setCursor(QtCore.Qt.ArrowCursor)

-         self.pkgNameLabel.setMouseTracking(False)

-         self.pkgNameLabel.setFocusPolicy(QtCore.Qt.NoFocus)

-         self.pkgNameLabel.setAcceptDrops(False)

-         self.pkgNameLabel.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)

-         self.pkgNameLabel.setObjectName("pkgNameLabel")

-         self.verticalLayout_11.addWidget(self.pkgNameLabel)

-         self.textBrowser = QtGui.QTextBrowser(self.layoutWidget_2)

-         font = QtGui.QFont()

-         font.setFamily("Monospace")

-         font.setPointSize(8)

-         self.textBrowser.setFont(font)

-         self.textBrowser.setStyleSheet("")

-         self.textBrowser.setObjectName("textBrowser")

-         self.verticalLayout_11.addWidget(self.textBrowser)

-         self.splitter_8 = QtGui.QSplitter(self.splitter_7)

-         self.splitter_8.setOrientation(QtCore.Qt.Vertical)

-         self.splitter_8.setObjectName("splitter_8")

-         self.treeWidget_bugs = QtGui.QTreeWidget(self.splitter_8)

-         self.treeWidget_bugs.setProperty("cursor", QtCore.Qt.ArrowCursor)

-         self.treeWidget_bugs.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)

-         self.treeWidget_bugs.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)

-         self.treeWidget_bugs.setRootIsDecorated(False)

-         self.treeWidget_bugs.setWordWrap(False)

-         self.treeWidget_bugs.setColumnCount(2)

-         self.treeWidget_bugs.setObjectName("treeWidget_bugs")

-         self.treeWidget_test_cases = QtGui.QTreeWidget(self.splitter_8)

-         self.treeWidget_test_cases.setRootIsDecorated(False)

-         self.treeWidget_test_cases.setObjectName("treeWidget_test_cases")

-         self.treeWidget_related_packages = QtGui.QTreeWidget(self.splitter_8)

-         self.treeWidget_related_packages.setObjectName("treeWidget_related_packages")

-         self.verticalLayout_6.addWidget(self.splitter_6)

-         self.tabWidget_side.addTab(self.tabPkg_info, "")

-         self.tabPkg_karma = QtGui.QWidget()

-         self.tabPkg_karma.setObjectName("tabPkg_karma")

-         self.verticalLayout_13 = QtGui.QVBoxLayout(self.tabPkg_karma)

-         self.verticalLayout_13.setObjectName("verticalLayout_13")

-         self.verticalLayout_2 = QtGui.QVBoxLayout()

-         self.verticalLayout_2.setObjectName("verticalLayout_2")

-         self.label = QtGui.QLabel(self.tabPkg_karma)

-         font = QtGui.QFont()

-         font.setPointSize(16)

-         self.label.setFont(font)

-         self.label.setObjectName("label")

-         self.verticalLayout_2.addWidget(self.label)

-         self.horizontalLayout_8 = QtGui.QHBoxLayout()

-         self.horizontalLayout_8.setObjectName("horizontalLayout_8")

-         self.usernameEdit = QtGui.QLineEdit(self.tabPkg_karma)

-         self.usernameEdit.setObjectName("usernameEdit")

-         self.horizontalLayout_8.addWidget(self.usernameEdit)

-         self.passwordEdit = QtGui.QLineEdit(self.tabPkg_karma)

-         self.passwordEdit.setEchoMode(QtGui.QLineEdit.Password)

-         self.passwordEdit.setObjectName("passwordEdit")

-         self.horizontalLayout_8.addWidget(self.passwordEdit)

-         self.karmaBox = QtGui.QComboBox(self.tabPkg_karma)

-         self.karmaBox.setObjectName("karmaBox")

-         self.karmaBox.addItem("")

-         self.karmaBox.addItem("")

-         self.karmaBox.addItem("")

-         self.horizontalLayout_8.addWidget(self.karmaBox)

-         self.sendBtn = QtGui.QPushButton(self.tabPkg_karma)

-         self.sendBtn.setObjectName("sendBtn")

-         self.horizontalLayout_8.addWidget(self.sendBtn)

-         self.verticalLayout_2.addLayout(self.horizontalLayout_8)

-         self.label_2 = QtGui.QLabel(self.tabPkg_karma)

-         font = QtGui.QFont()

-         font.setPointSize(16)

-         self.label_2.setFont(font)

-         self.label_2.setObjectName("label_2")

-         self.verticalLayout_2.addWidget(self.label_2)

-         self.splitter = QtGui.QSplitter(self.tabPkg_karma)

-         self.splitter.setOrientation(QtCore.Qt.Vertical)

-         self.splitter.setHandleWidth(6)

-         self.splitter.setObjectName("splitter")

-         self.commentEdit = QtGui.QPlainTextEdit(self.splitter)

-         self.commentEdit.setMaximumSize(QtCore.QSize(16777215, 80))

-         self.commentEdit.setObjectName("commentEdit")

-         self.treeWidget_feedback = QtGui.QTreeWidget(self.splitter)

-         self.treeWidget_feedback.setMinimumSize(QtCore.QSize(0, 0))

-         self.treeWidget_feedback.setRootIsDecorated(False)

-         self.treeWidget_feedback.setUniformRowHeights(False)

-         self.treeWidget_feedback.setObjectName("treeWidget_feedback")

-         self.treeWidget_feedback.header().setCascadingSectionResizes(False)

-         self.treeWidget_feedback.header().setMinimumSectionSize(30)

-         self.verticalLayout_2.addWidget(self.splitter)

-         self.verticalLayout_13.addLayout(self.verticalLayout_2)

-         self.tabWidget_side.addTab(self.tabPkg_karma, "")

-         self.tabPkg_settings = QtGui.QWidget()

-         self.tabPkg_settings.setObjectName("tabPkg_settings")

-         self.verticalLayout_10 = QtGui.QVBoxLayout(self.tabPkg_settings)

-         self.verticalLayout_10.setObjectName("verticalLayout_10")

-         self.formLayout = QtGui.QFormLayout()

-         self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)

-         self.formLayout.setObjectName("formLayout")

-         self.label_7 = QtGui.QLabel(self.tabPkg_settings)

-         self.label_7.setObjectName("label_7")

-         self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_7)

-         self.settings_pkg_cat_normal = QtGui.QRadioButton(self.tabPkg_settings)

-         self.settings_pkg_cat_normal.setChecked(True)

-         self.settings_pkg_cat_normal.setObjectName("settings_pkg_cat_normal")

-         self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.settings_pkg_cat_normal)

-         self.settings_pkg_cat_favorite = QtGui.QRadioButton(self.tabPkg_settings)

-         self.settings_pkg_cat_favorite.setObjectName("settings_pkg_cat_favorite")

-         self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.settings_pkg_cat_favorite)

-         self.settings_pkg_cat_ignored = QtGui.QRadioButton(self.tabPkg_settings)

-         self.settings_pkg_cat_ignored.setObjectName("settings_pkg_cat_ignored")

-         self.formLayout.setWidget(7, QtGui.QFormLayout.FieldRole, self.settings_pkg_cat_ignored)

-         self.pkg_settings_open_bodhi_update = QtGui.QPushButton(self.tabPkg_settings)

-         self.pkg_settings_open_bodhi_update.setObjectName("pkg_settings_open_bodhi_update")

-         self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.pkg_settings_open_bodhi_update)

-         self.pkg_settings_download_source_rpm = QtGui.QPushButton(self.tabPkg_settings)

-         self.pkg_settings_download_source_rpm.setObjectName("pkg_settings_download_source_rpm")

-         self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.pkg_settings_download_source_rpm)

-         self.label_8 = QtGui.QLabel(self.tabPkg_settings)

-         self.label_8.setObjectName("label_8")

-         self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_8)

-         self.verticalLayout_10.addLayout(self.formLayout)

-         self.tabWidget_side.addTab(self.tabPkg_settings, "")

-         self.verticalLayout_4.addWidget(self.tabWidget_side)

-         self.tabWidget.addTab(self.TabInfo, "")

-         self.horizontalLayout_4.addWidget(self.tabWidget)

-         self.centralWidgetSplitter.addLayout(self.horizontalLayout_4)

-         self.statusList = QtGui.QListWidget(self.centralwidget)

-         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Maximum)

-         sizePolicy.setHorizontalStretch(0)

-         sizePolicy.setVerticalStretch(0)

-         sizePolicy.setHeightForWidth(self.statusList.sizePolicy().hasHeightForWidth())

-         self.statusList.setSizePolicy(sizePolicy)

-         self.statusList.setMaximumSize(QtCore.QSize(16777215, 80))

-         self.statusList.setMouseTracking(True)

-         self.statusList.setSelectionMode(QtGui.QAbstractItemView.NoSelection)

-         self.statusList.setObjectName("statusList")

-         self.centralWidgetSplitter.addWidget(self.statusList)

-         MainWindow.setCentralWidget(self.centralwidget)

-         self.menubar = QtGui.QMenuBar(MainWindow)

-         self.menubar.setGeometry(QtCore.QRect(0, 0, 1002, 21))

-         self.menubar.setObjectName("menubar")

-         self.menuFile = QtGui.QMenu(self.menubar)

-         self.menuFile.setObjectName("menuFile")

-         self.menuHelp = QtGui.QMenu(self.menubar)

-         self.menuHelp.setObjectName("menuHelp")

-         MainWindow.setMenuBar(self.menubar)

-         self.statusBar = QtGui.QStatusBar(MainWindow)

-         self.statusBar.setObjectName("statusBar")

-         MainWindow.setStatusBar(self.statusBar)

-         self.actionQuit = QtGui.QAction(MainWindow)

-         self.actionQuit.setObjectName("actionQuit")

-         self.actionAbout = QtGui.QAction(MainWindow)

-         self.actionAbout.setObjectName("actionAbout")

-         self.menuFile.addAction(self.actionQuit)

-         self.menuHelp.addAction(self.actionAbout)

-         self.menubar.addAction(self.menuFile.menuAction())

-         self.menubar.addAction(self.menuHelp.menuAction())

- 

-         self.retranslateUi(MainWindow)

-         self.tabWidget.setCurrentIndex(1)

-         self.toolBoxWhatToTest.setCurrentIndex(2)

-         self.tabWidget_side.setCurrentIndex(0)

-         self.karmaBox.setCurrentIndex(1)

-         QtCore.QObject.connect(self.karmaCheckBox, QtCore.SIGNAL("toggled(bool)"), self.karmaFilterWidget.setShown)

-         QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL("clicked()"), self.searchEdit.clear)

-         QtCore.QMetaObject.connectSlotsByName(MainWindow)

-         MainWindow.setTabOrder(self.karmaBox, self.sendBtn)

-         MainWindow.setTabOrder(self.sendBtn, self.loadPackagesBtn)

-         MainWindow.setTabOrder(self.loadPackagesBtn, self.availableBtn)

-         MainWindow.setTabOrder(self.availableBtn, self.pkgList)

-         MainWindow.setTabOrder(self.pkgList, self.releaseComboBox)

-         MainWindow.setTabOrder(self.releaseComboBox, self.installedBtn)

- 

-     def retranslateUi(self, MainWindow):

-         MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "Fedora Gooey Karma", None, QtGui.QApplication.UnicodeUTF8))

-         self.groupBox.setTitle(QtGui.QApplication.translate("MainWindow", "Filter", None, QtGui.QApplication.UnicodeUTF8))

-         self.searchEdit.setPlaceholderText(QtGui.QApplication.translate("MainWindow", "Search packages...", None, QtGui.QApplication.UnicodeUTF8))

-         self.pushButton.setToolTip(QtGui.QApplication.translate("MainWindow", "Clear search", None, QtGui.QApplication.UnicodeUTF8))

-         self.pushButton.setText(QtGui.QApplication.translate("MainWindow", "X", None, QtGui.QApplication.UnicodeUTF8))

-         self.karmaCheckBox.setText(QtGui.QApplication.translate("MainWindow", "User filter", None, QtGui.QApplication.UnicodeUTF8))

-         self.karmaFilterUserCombo.setItemText(0, QtGui.QApplication.translate("MainWindow", "Karma not submitted by user", None, QtGui.QApplication.UnicodeUTF8))

-         self.karmaFilterUserCombo.setItemText(1, QtGui.QApplication.translate("MainWindow", "Karma submitted by user", None, QtGui.QApplication.UnicodeUTF8))

-         self.karmaUsernameEdit.setPlaceholderText(QtGui.QApplication.translate("MainWindow", "username for karma filter", None, QtGui.QApplication.UnicodeUTF8))

-         self.installedBtn.setText(QtGui.QApplication.translate("MainWindow", "Installed", None, QtGui.QApplication.UnicodeUTF8))

-         self.availableBtn.setText(QtGui.QApplication.translate("MainWindow", "Available", None, QtGui.QApplication.UnicodeUTF8))

-         self.pkgList.setSortingEnabled(True)

-         self.loadPackagesBtn.setText(QtGui.QApplication.translate("MainWindow", "Reload packages", None, QtGui.QApplication.UnicodeUTF8))

-         self.textBrowser_2.setHtml(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"

- "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"

- "p, li { white-space: pre-wrap; }\n"

- "</style></head><body style=\" font-family:\'Sans Serif\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"

- "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Welcome to<span style=\" font-weight:600;\"> Fedora Gooey Karma</span> tool which helps you with testing new updates for your Fedora.</p>\n"

- "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"

- "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">To load updates, press lower-left <span style=\" font-weight:600;\">Reload packages</span> button. If you are not sure what you should test, wait until all packages are loaded and see sections below this text.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))

-         self.toolBoxWhatToTest.setItemText(self.toolBoxWhatToTest.indexOf(self.toolBoxWelcome), QtGui.QApplication.translate("MainWindow", "Fedora Gooey Karma", None, QtGui.QApplication.UnicodeUTF8))

-         self.label_6.setText(QtGui.QApplication.translate("MainWindow", "It would be nice to re-test updates which has got negative karma. See these packages below.", None, QtGui.QApplication.UnicodeUTF8))

-         self.tool_pkg_list_negative.headerItem().setText(0, QtGui.QApplication.translate("MainWindow", "Package", None, QtGui.QApplication.UnicodeUTF8))

-         self.toolBoxWhatToTest.setItemText(self.toolBoxWhatToTest.indexOf(self.toolBoxNegativeKarma), QtGui.QApplication.translate("MainWindow", "Updates with negative karma", None, QtGui.QApplication.UnicodeUTF8))

-         self.tool_pkg_list_running.headerItem().setText(0, QtGui.QApplication.translate("MainWindow", "Package", None, QtGui.QApplication.UnicodeUTF8))

-         self.toolBoxWhatToTest.setItemText(self.toolBoxWhatToTest.indexOf(self.toolBoxRunning), QtGui.QApplication.translate("MainWindow", "Currently running applications", None, QtGui.QApplication.UnicodeUTF8))

-         self.tool_pkg_list_favorite.headerItem().setText(0, QtGui.QApplication.translate("MainWindow", "Package", None, QtGui.QApplication.UnicodeUTF8))

-         self.btn_tool_remove_pkg.setText(QtGui.QApplication.translate("MainWindow", "Remove selected package", None, QtGui.QApplication.UnicodeUTF8))

-         self.btn_tool_add_pkg.setText(QtGui.QApplication.translate("MainWindow", "Add package", None, QtGui.QApplication.UnicodeUTF8))

-         self.toolBoxWhatToTest.setItemText(self.toolBoxWhatToTest.indexOf(self.toolBoxFavorite), QtGui.QApplication.translate("MainWindow", "Favorite packages", None, QtGui.QApplication.UnicodeUTF8))

-         self.tool_pkg_list_ignored.headerItem().setText(0, QtGui.QApplication.translate("MainWindow", "Package", None, QtGui.QApplication.UnicodeUTF8))

-         self.toolBoxWhatToTest.setItemText(self.toolBoxWhatToTest.indexOf(self.toolBoxIgnored), QtGui.QApplication.translate("MainWindow", "Ignored packages", None, QtGui.QApplication.UnicodeUTF8))

-         self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabWhatToTest), QtGui.QApplication.translate("MainWindow", "What to test", None, QtGui.QApplication.UnicodeUTF8))

-         self.pkgNameLabel.setText(QtGui.QApplication.translate("MainWindow", "Package name", None, QtGui.QApplication.UnicodeUTF8))

-         self.textBrowser.setHtml(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"

- "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"

- "p, li { white-space: pre-wrap; }\n"

- "</style></head><body style=\" font-family:\'Monospace\'; font-size:8pt; font-weight:400; font-style:normal;\">\n"

- "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;\"><br /></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))

-         self.treeWidget_bugs.headerItem().setText(0, QtGui.QApplication.translate("MainWindow", "Bug id", None, QtGui.QApplication.UnicodeUTF8))

-         self.treeWidget_bugs.headerItem().setText(1, QtGui.QApplication.translate("MainWindow", "Title", None, QtGui.QApplication.UnicodeUTF8))

-         self.treeWidget_test_cases.headerItem().setText(0, QtGui.QApplication.translate("MainWindow", "Test cases", None, QtGui.QApplication.UnicodeUTF8))

-         self.treeWidget_related_packages.headerItem().setText(0, QtGui.QApplication.translate("MainWindow", "Related packages", None, QtGui.QApplication.UnicodeUTF8))

-         self.tabWidget_side.setTabText(self.tabWidget_side.indexOf(self.tabPkg_info), QtGui.QApplication.translate("MainWindow", "Info", None, QtGui.QApplication.UnicodeUTF8))

-         self.label.setText(QtGui.QApplication.translate("MainWindow", "FAS credentials", None, QtGui.QApplication.UnicodeUTF8))

-         self.usernameEdit.setPlaceholderText(QtGui.QApplication.translate("MainWindow", "username", None, QtGui.QApplication.UnicodeUTF8))

-         self.passwordEdit.setPlaceholderText(QtGui.QApplication.translate("MainWindow", "password", None, QtGui.QApplication.UnicodeUTF8))

-         self.karmaBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "-1", None, QtGui.QApplication.UnicodeUTF8))

-         self.karmaBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "0", None, QtGui.QApplication.UnicodeUTF8))

-         self.karmaBox.setItemText(2, QtGui.QApplication.translate("MainWindow", "+1", None, QtGui.QApplication.UnicodeUTF8))

-         self.sendBtn.setText(QtGui.QApplication.translate("MainWindow", "Send Karma", None, QtGui.QApplication.UnicodeUTF8))

-         self.label_2.setText(QtGui.QApplication.translate("MainWindow", "Your comment", None, QtGui.QApplication.UnicodeUTF8))

-         self.treeWidget_feedback.setSortingEnabled(True)

-         self.treeWidget_feedback.headerItem().setText(0, QtGui.QApplication.translate("MainWindow", "#", None, QtGui.QApplication.UnicodeUTF8))

-         self.treeWidget_feedback.headerItem().setText(1, QtGui.QApplication.translate("MainWindow", "Karma", None, QtGui.QApplication.UnicodeUTF8))

-         self.treeWidget_feedback.headerItem().setText(2, QtGui.QApplication.translate("MainWindow", "User", None, QtGui.QApplication.UnicodeUTF8))

-         self.treeWidget_feedback.headerItem().setText(3, QtGui.QApplication.translate("MainWindow", "Comment", None, QtGui.QApplication.UnicodeUTF8))

-         self.tabWidget_side.setTabText(self.tabWidget_side.indexOf(self.tabPkg_karma), QtGui.QApplication.translate("MainWindow", "Comments", None, QtGui.QApplication.UnicodeUTF8))

-         self.label_7.setText(QtGui.QApplication.translate("MainWindow", "Package category", None, QtGui.QApplication.UnicodeUTF8))

-         self.settings_pkg_cat_normal.setText(QtGui.QApplication.translate("MainWindow", "Normal package", None, QtGui.QApplication.UnicodeUTF8))

-         self.settings_pkg_cat_favorite.setText(QtGui.QApplication.translate("MainWindow", "Favorite package", None, QtGui.QApplication.UnicodeUTF8))

-         self.settings_pkg_cat_ignored.setText(QtGui.QApplication.translate("MainWindow", "Ignore this package", None, QtGui.QApplication.UnicodeUTF8))

-         self.pkg_settings_open_bodhi_update.setText(QtGui.QApplication.translate("MainWindow", "Open bodhi update in web browser", None, QtGui.QApplication.UnicodeUTF8))

-         self.pkg_settings_download_source_rpm.setText(QtGui.QApplication.translate("MainWindow", "Download source RPM", None, QtGui.QApplication.UnicodeUTF8))

-         self.label_8.setText(QtGui.QApplication.translate("MainWindow", "Tools", None, QtGui.QApplication.UnicodeUTF8))

-         self.tabWidget_side.setTabText(self.tabWidget_side.indexOf(self.tabPkg_settings), QtGui.QApplication.translate("MainWindow", "Settings", None, QtGui.QApplication.UnicodeUTF8))

-         self.tabWidget.setTabText(self.tabWidget.indexOf(self.TabInfo), QtGui.QApplication.translate("MainWindow", "Package info", None, QtGui.QApplication.UnicodeUTF8))

-         self.statusList.setToolTip(QtGui.QApplication.translate("MainWindow", "Press and hold mouse button to expand", None, QtGui.QApplication.UnicodeUTF8))

-         self.statusList.setSortingEnabled(False)

-         self.menuFile.setTitle(QtGui.QApplication.translate("MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8))

-         self.menuHelp.setTitle(QtGui.QApplication.translate("MainWindow", "Help", None, QtGui.QApplication.UnicodeUTF8))

-         self.actionQuit.setText(QtGui.QApplication.translate("MainWindow", "Quit", None, QtGui.QApplication.UnicodeUTF8))

-         self.actionAbout.setText(QtGui.QApplication.translate("MainWindow", "About Fedora Gooey Karma", None, QtGui.QApplication.UnicodeUTF8))

- 

file removed
-105
@@ -1,105 +0,0 @@ 

- #!/usr/bin/python2 -tt

- # -*- coding:  utf-8 -*-

- 

- #    Fedora Gooey Karma prototype

- #    based on the https://github.com/mkrizek/fedora-gooey-karma

- #

- #    Copyright (C) 2013

- #

- #    This program is free software: you can redistribute it and/or modify

- #    it under the terms of the GNU General Public License as published by

- #    the Free Software Foundation, either version 3 of the License, or

- #    (at your option) any later version.

- #

- #    This program is distributed in the hope that it will be useful,

- #    but WITHOUT ANY WARRANTY; without even the implied warranty of

- #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

- #    GNU General Public License for more details.

- #

- #    You should have received a copy of the GNU General Public License

- #    along with this program.  If not, see <http://www.gnu.org/licenses/>.

- #

- #    Author: Branislav Blaskovic <branislav@blaskovic.sk>

- #    Author: Tomas Meszaros <exo@tty.sk>

- 

- import yum

- import rpm

- import datetime

- import koji

- from PySide import QtCore

- from yum.misc import getCacheDir

- from idlequeue import *

- 

- class PackagesWorker(QtCore.QThread):

- 

-     def __init__(self, queue, bodhi_workers_queue, bodhi_workers_count, main_thread, parent=None):

-         super(PackagesWorker, self).__init__(parent)

- 

-         self.main_thread = main_thread

- 

-         self.queue = queue

-         self.bodhi_workers_queue = bodhi_workers_queue

-         self.bodhi_workers_count = bodhi_workers_count

- 

-         self.yb = yum.YumBase()

-         cachedir = getCacheDir()

-         self.yb.repos.setCacheDir(cachedir)

- 

-         # RPM Transactions

-         self.rpmTS = rpm.TransactionSet()

- 

-     def set_release(self, release):

-         self.releasever = release

- 

-     def run(self):

-         while True:

-             releasever = self.queue.get()

- 

-             # Start loading packages

-             main_thread_call(self.main_thread.installed_pkg_list_loading_info)

-             self.load_installed(releasever)

-             # Wait for all packages to be loaded from bodhi

-             self.bodhi_workers_queue.join()

-             main_thread_call(self.main_thread.save_installed_pkg_list, releasever)

- 

-             self.queue.task_done()

- 

-     def load_installed(self, releasever):

-         # Load from yum rpmdb all installed packages

-         self.installed_packages = self.yb.rpmdb.returnPackages()

- 

-         # Send it to all bodhi_workers

-         for i in range(self.bodhi_workers_count):

-             self.bodhi_workers_queue.put(['set_installed_packages', ['bodhi_worker' + str(i), self.installed_packages]])

- 

-         # Wait for Bodhi workers to finish

-         self.bodhi_workers_queue.join()

- 

-         # Send installed packages to GUI

-         main_thread_call(self.main_thread.set_installed_packages,

-                          self.installed_packages)

- 

-         # Grab it from Koji

-         session = koji.ClientSession('http://koji.fedoraproject.org/kojihub')

-         tagged_packages = session.listTagged('f' + str(releasever) + '-updates-testing')

- 

-         # Prepare packages into dictionary to find it faster

-         pkgs_dict = {}

-         for pkg in self.installed_packages:

-             pkgs_dict[pkg.name] = pkg

- 

-         # See packages for choosen release

-         pkgsForBodhi = []

-         for tagged_pkg in tagged_packages:

-             if tagged_pkg['package_name'] in pkgs_dict.keys():

-                 pkgsForBodhi.append(pkgs_dict[tagged_pkg['package_name']])

- 

-         # Send these packages to BodhiWorker queue

-         main_thread_call(self.main_thread.set_num_of_pkgs_to_process,

-                          len(pkgsForBodhi))

- 

-         for pkg in pkgsForBodhi:

-             self.bodhi_workers_queue.put(['package_update', pkg])

- 

- 

- # vim: set expandtab ts=4 sts=4 sw=4 :

file removed
-78
@@ -1,78 +0,0 @@ 

- #!/usr/bin/python2 -tt

- # -*- coding:  utf-8 -*-

- 

- #    Fedora Gooey Karma prototype

- #    based on the https://github.com/mkrizek/fedora-gooey-karma

- #

- #    Copyright (C) 2013

- #

- #    This program is free software: you can redistribute it and/or modify

- #    it under the terms of the GNU General Public License as published by

- #    the Free Software Foundation, either version 3 of the License, or

- #    (at your option) any later version.

- #

- #    This program is distributed in the hope that it will be useful,

- #    but WITHOUT ANY WARRANTY; without even the implied warranty of

- #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

- #    GNU General Public License for more details.

- #

- #    You should have received a copy of the GNU General Public License

- #    along with this program.  If not, see <http://www.gnu.org/licenses/>.

- #

- #    Author: Branislav Blaskovic <branislav@blaskovic.sk>

- 

- import threading

- 

- from fedora.client import AuthError

- from fedora.client import ServerError

- from fedora.client.bodhi import BodhiClient

- 

- from idlequeue import *

- 

- class SendKarma(threading.Thread):

-     def __init__(self, package, username, password, message, karma, main_thread, parent=None):

-         #super(SendKarma, self).__init__(parent)

-         threading.Thread.__init__(self)

-         self.package = package

-         self.username = username

-         self.password = password

-         self.message = message

-         self.karma = karma

-         self.main_thread = main_thread

- 

-     def run(self):

-         bc = BodhiClient()

-         bc.username = self.username

-         bc.password = self.password

- 

-         # Try send it 3 times if ServerError occours

-         for retry in range(3):

-             try:

-                 # Send comment to bodhi

-                 bc.comment(self.package["title"], self.message, karma=self.karma)

-                 message = "Comment submitted successfully."

-                 message2 = ("Reloading bodhi update for "

-                            + str(self.package['itemlist_name']) + "...")

-                 main_thread_call(self.main_thread.add_status_item, message)

-                 main_thread_call(self.main_thread.add_status_item, message2)

- 

-                 # Reload bodhi update

-                 main_thread_call(self.main_thread.bodhi_workers_queue.put,

-                          ['package_update', self.package['yum_package']])

-                 # Clean up after sending

-                 main_thread_call(self.main_thread.sending_done, self.username, self.password)

-                 return

-             except AuthError:

-                 message = "Invalid username or password. Please try again."

-                 main_thread_call(self.main_thread.add_status_item,

-                          message)

-                 break

-             except ServerError, e:

-                 message = "Server error %s" % str(e)

-                 main_thread_call(self.main_thread.add_status_item,

-                          message)

- 

-         # In case of errors, return button and others back

-         main_thread_call(self.main_thread.sending_done, self.username, self.password)

- 

- # vim: set expandtab ts=4 sts=4 sw=4 :

file removed
-130
@@ -1,130 +0,0 @@ 

- #!/usr/bin/python2 -tt

- # -*- coding:  utf-8 -*-

- 

- #    Fedora Gooey Karma prototype

- #    based on the https://github.com/mkrizek/fedora-gooey-karma

- #

- #    Copyright (C) 2013

- #

- #    This program is free software: you can redistribute it and/or modify

- #    it under the terms of the GNU General Public License as published by

- #    the Free Software Foundation, either version 3 of the License, or

- #    (at your option) any later version.

- #

- #    This program is distributed in the hope that it will be useful,

- #    but WITHOUT ANY WARRANTY; without even the implied warranty of

- #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

- #    GNU General Public License for more details.

- #

- #    You should have received a copy of the GNU General Public License

- #    along with this program.  If not, see <http://www.gnu.org/licenses/>.

- #

- #    Author: Branislav Blaskovic <branislav@blaskovic.sk>

- 

- from PySide import QtGui

- 

- class Toolbox:

-     def __init__(self, main):

-         # Grab MainWindow instance

-         self.main = main

- 

-     def __toolbox_current_tab(self):

-         # What is the currently selected toolbox?

-         if self.main.ui.toolBoxWhatToTest.currentIndex() == self.main.ui.toolBoxWhatToTest.count() -1:

-             return 'ignored'

-         else:

-             return 'favorite'

- 

-     def negative_karma_clicked(self, item, column):

-         # Get package name even if comment selected

-         if item.parent() is not None:

-             item = item.parent()

- 

-         # Set package name as search text

-         self.main.ui.searchEdit.setText(str(item.text(0)))

- 

-     def currently_running_clicked(self, item, column):

-         # Get package name even if comment selected

-         if item.parent() is not None:

-             item = item.parent()

- 

-         # Set package name as search text

-         self.main.ui.searchEdit.setText(str(item.text(0)))

- 

-     def favorite_item_clicked(self, item, column):

-         # Get package name

-         # Do this only when package is selected (not the header text)

-         if item.parent() is not None:

-             self.main.ui.searchEdit.setText(str(item.text(0)))

- 

-     def move_toolbox_buttons(self, index):

-         ## Copy widget with pkg list tools to current index one

-         if self.__toolbox_current_tab() == 'ignored':

-             self.main.ui.toolBoxIgnoredLayout.addWidget(self.main.ui.tool_add_remove_pkg)

-         else:

-             self.main.ui.toolBoxFavoriteLayout.addWidget(self.main.ui.tool_add_remove_pkg)

- 

-     def config_add_package(self):

-         # Add package from lineedit to config according to selected toolbox

-         if self.__toolbox_current_tab() == 'ignored':

-             self.main.config.ignored_packages.add_package(self.main.ui.tool_pkg_name.text())

-         else:

-             self.main.config.favorited_packages.add_package(self.main.ui.tool_pkg_name.text())

-         self.update_favorite_ignored_pkg_lists()

-         self.main.ui.tool_pkg_name.clear()

-         self.main.config.save_config()

- 

-     def config_remove_package(self):

-         # Removes selected package

-         if self.__toolbox_current_tab() == 'ignored':

-             try:

-                 self.main.config.ignored_packages.remove_package(self.main.ui.tool_pkg_list_ignored.currentItem().text(0))

-             except:

-                 pass

-         else:

-             try:

-                 self.main.config.favorited_packages.remove_package(self.main.ui.tool_pkg_list_favorite.currentItem().text(0))

-             except:

-                 pass

-         self.main.config.save_config()

-         self.update_favorite_ignored_pkg_lists()

- 

-     def update_favorite_ignored_pkg_lists(self):

-         self.main.ui.tool_pkg_list_ignored.clear()

-         self.main.ui.tool_pkg_list_favorite.clear()

- 

-         # Prepare list of package names

-         pkg_names = []

-         for key in self.main.installed_updates.keys():

-             pkg_names.append(self.main.installed_updates[key].parsed_nvr['name'])

- 

-         # Top level items

-         def create_top_level_item(text, widget):

-             item = QtGui.QTreeWidgetItem()

-             item.setText(0, text)

-             widget.insertTopLevelItem(0, item)

-             item.setExpanded(True)

-             return item

- 

-         # Top level items

-         ## Set names

-         fav_not_available = create_top_level_item('Bodhi update not available', self.main.ui.tool_pkg_list_favorite)

-         fav_available = create_top_level_item('Bodhi update available', self.main.ui.tool_pkg_list_favorite)

- 

-         # Favorite packages

-         for pkg in self.main.config.favorited_packages:

-             item = QtGui.QTreeWidgetItem()

-             item.setText(0, pkg)

-             # If this package name is in available packages

-             if pkg in pkg_names:

-                 fav_available.addChild(item)

-             else:

-                 fav_not_available.addChild(item)

- 

-         # Ignored packages

-         for pkg in self.main.config.ignored_packages:

-             item = QtGui.QTreeWidgetItem()

-             item.setText(0, pkg)

-             self.main.ui.tool_pkg_list_ignored.insertTopLevelItem(0, item)

- 

- # vim: set expandtab ts=4 sts=4 sw=4 :

file removed
-906
@@ -1,906 +0,0 @@ 

- <?xml version="1.0" encoding="UTF-8"?>

- <ui version="4.0">

-  <class>MainWindow</class>

-  <widget class="QMainWindow" name="MainWindow">

-   <property name="geometry">

-    <rect>

-     <x>0</x>

-     <y>0</y>

-     <width>1002</width>

-     <height>772</height>

-    </rect>

-   </property>

-   <property name="windowTitle">

-    <string>Fedora Gooey Karma</string>

-   </property>

-   <widget class="QWidget" name="centralwidget">

-    <layout class="QVBoxLayout" name="centralWidgetSplitter">

-     <item>

-      <layout class="QHBoxLayout" name="horizontalLayout_4">

-       <item>

-        <widget class="QWidget" name="pkgLists" native="true">

-         <property name="maximumSize">

-          <size>

-           <width>250</width>

-           <height>16777215</height>

-          </size>

-         </property>

-         <layout class="QVBoxLayout" name="verticalLayout">

-          <item>

-           <widget class="QGroupBox" name="groupBox">

-            <property name="title">

-             <string>Filter</string>

-            </property>

-            <property name="checkable">

-             <bool>false</bool>

-            </property>

-            <layout class="QVBoxLayout" name="verticalLayout_5">

-             <item>

-              <layout class="QHBoxLayout" name="horizontalLayout_2">

-               <item>

-                <widget class="QLineEdit" name="searchEdit">

-                 <property name="font">

-                  <font>

-                   <italic>true</italic>

-                  </font>

-                 </property>

-                 <property name="inputMask">

-                  <string/>

-                 </property>

-                 <property name="text">

-                  <string/>

-                 </property>

-                 <property name="placeholderText">

-                  <string>Search packages...</string>

-                 </property>

-                </widget>

-               </item>

-               <item>

-                <widget class="QPushButton" name="pushButton">

-                 <property name="toolTip">

-                  <string>Clear search</string>

-                 </property>

-                 <property name="text">

-                  <string>X</string>

-                 </property>

-                </widget>

-               </item>

-              </layout>

-             </item>

-             <item>

-              <widget class="QCheckBox" name="karmaCheckBox">

-               <property name="text">

-                <string>User filter</string>

-               </property>

-               <property name="checked">

-                <bool>false</bool>

-               </property>

-              </widget>

-             </item>

-             <item>

-              <widget class="QWidget" name="karmaFilterWidget" native="true">

-               <property name="minimumSize">

-                <size>

-                 <width>0</width>

-                 <height>0</height>

-                </size>

-               </property>

-               <layout class="QVBoxLayout" name="verticalLayout_8">

-                <item>

-                 <widget class="QComboBox" name="karmaFilterUserCombo">

-                  <item>

-                   <property name="text">

-                    <string>Karma not submitted by user</string>

-                   </property>

-                  </item>

-                  <item>

-                   <property name="text">

-                    <string>Karma submitted by user</string>

-                   </property>

-                  </item>

-                 </widget>

-                </item>

-                <item>

-                 <widget class="QLineEdit" name="karmaUsernameEdit">

-                  <property name="dragEnabled">

-                   <bool>false</bool>

-                  </property>

-                  <property name="placeholderText">

-                   <string>username for karma filter</string>

-                  </property>

-                 </widget>

-                </item>

-               </layout>

-              </widget>

-             </item>

-             <item>

-              <layout class="QHBoxLayout" name="horizontalLayout">

-               <item>

-                <widget class="QPushButton" name="installedBtn">

-                 <property name="text">

-                  <string>Installed</string>

-                 </property>

-                 <property name="checkable">

-                  <bool>true</bool>

-                 </property>

-                 <property name="checked">

-                  <bool>true</bool>

-                 </property>

-                 <property name="autoDefault">

-                  <bool>false</bool>

-                 </property>

-                 <property name="default">

-                  <bool>false</bool>

-                 </property>

-                 <property name="flat">

-                  <bool>false</bool>

-                 </property>

-                </widget>

-               </item>

-               <item>

-                <widget class="QPushButton" name="availableBtn">

-                 <property name="text">

-                  <string>Available</string>

-                 </property>

-                 <property name="checkable">

-                  <bool>true</bool>

-                 </property>

-                 <property name="checked">

-                  <bool>false</bool>

-                 </property>

-                 <property name="autoDefault">

-                  <bool>false</bool>

-                 </property>

-                 <property name="default">

-                  <bool>false</bool>

-                 </property>

-                 <property name="flat">

-                  <bool>false</bool>

-                 </property>

-                </widget>

-               </item>

-              </layout>

-             </item>

-            </layout>

-           </widget>

-          </item>

-          <item>

-           <widget class="QListWidget" name="pkgList">

-            <property name="frameShadow">

-             <enum>QFrame::Sunken</enum>

-            </property>

-            <property name="tabKeyNavigation">

-             <bool>false</bool>

-            </property>

-            <property name="sortingEnabled">

-             <bool>true</bool>

-            </property>

-           </widget>

-          </item>

-          <item>

-           <layout class="QHBoxLayout" name="horizontalLayout_5">

-            <item>

-             <widget class="QComboBox" name="releaseComboBox"/>

-            </item>

-            <item>

-             <widget class="QPushButton" name="loadPackagesBtn">

-              <property name="text">

-               <string>Reload packages</string>

-              </property>

-             </widget>

-            </item>

-           </layout>

-          </item>

-         </layout>

-        </widget>

-       </item>

-       <item>

-        <widget class="QTabWidget" name="tabWidget">

-         <property name="sizePolicy">

-          <sizepolicy hsizetype="Maximum" vsizetype="Maximum">

-           <horstretch>6</horstretch>

-           <verstretch>0</verstretch>

-          </sizepolicy>

-         </property>

-         <property name="maximumSize">

-          <size>

-           <width>9000</width>

-           <height>9000</height>

-          </size>

-         </property>

-         <property name="mouseTracking">

-          <bool>false</bool>

-         </property>

-         <property name="styleSheet">

-          <string notr="true"/>

-         </property>

-         <property name="currentIndex">

-          <number>1</number>

-         </property>

-         <widget class="QWidget" name="tabWhatToTest">

-          <property name="autoFillBackground">

-           <bool>false</bool>

-          </property>

-          <property name="styleSheet">

-           <string notr="true"/>

-          </property>

-          <attribute name="title">

-           <string>What to test</string>

-          </attribute>

-          <layout class="QHBoxLayout" name="horizontalLayout_6">

-           <item>

-            <widget class="QToolBox" name="toolBoxWhatToTest">

-             <property name="currentIndex">

-              <number>2</number>

-             </property>

-             <widget class="QWidget" name="toolBoxWelcome">

-              <property name="geometry">

-               <rect>

-                <x>0</x>

-                <y>0</y>

-                <width>84</width>

-                <height>84</height>

-               </rect>

-              </property>

-              <attribute name="label">

-               <string>Fedora Gooey Karma</string>

-              </attribute>

-              <layout class="QVBoxLayout" name="verticalLayout_7">

-               <item>

-                <widget class="QTextBrowser" name="textBrowser_2">

-                 <property name="styleSheet">

-                  <string notr="true">background-color: rgba(255, 255, 255, 0);</string>

-                 </property>

-                 <property name="frameShadow">

-                  <enum>QFrame::Plain</enum>

-                 </property>

-                 <property name="html">

-                  <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;

- &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;

- p, li { white-space: pre-wrap; }

- &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;

- &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Welcome to&lt;span style=&quot; font-weight:600;&quot;&gt; Fedora Gooey Karma&lt;/span&gt; tool which helps you with testing new updates for your Fedora.&lt;/p&gt;

- &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;

- &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;To load updates, press lower-left &lt;span style=&quot; font-weight:600;&quot;&gt;Reload packages&lt;/span&gt; button. If you are not sure what you should test, wait until all packages are loaded and see sections below this text.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>

-                 </property>

-                </widget>

-               </item>

-              </layout>

-             </widget>

-             <widget class="QWidget" name="toolBoxNegativeKarma">

-              <property name="geometry">

-               <rect>

-                <x>0</x>

-                <y>0</y>

-                <width>602</width>

-                <height>103</height>

-               </rect>

-              </property>

-              <attribute name="label">

-               <string>Updates with negative karma</string>

-              </attribute>

-              <layout class="QVBoxLayout" name="verticalLayout_9">

-               <item alignment="Qt::AlignTop">

-                <widget class="QLabel" name="label_6">

-                 <property name="text">

-                  <string>It would be nice to re-test updates which has got negative karma. See these packages below.</string>

-                 </property>

-                </widget>

-               </item>

-               <item>

-                <widget class="QTreeWidget" name="tool_pkg_list_negative">

-                 <column>

-                  <property name="text">

-                   <string>Package</string>

-                  </property>

-                 </column>

-                </widget>

-               </item>

-              </layout>

-             </widget>

-             <widget class="QWidget" name="toolBoxRunning">

-              <property name="geometry">

-               <rect>

-                <x>0</x>

-                <y>0</y>

-                <width>712</width>

-                <height>454</height>

-               </rect>

-              </property>

-              <attribute name="label">

-               <string>Currently running applications</string>

-              </attribute>

-              <layout class="QVBoxLayout" name="verticalLayout_12">

-               <item>

-                <widget class="QTreeWidget" name="tool_pkg_list_running">

-                 <column>

-                  <property name="text">

-                   <string>Package</string>

-                  </property>

-                 </column>

-                </widget>

-               </item>

-              </layout>

-             </widget>

-             <widget class="QWidget" name="toolBoxFavorite">

-              <property name="geometry">

-               <rect>

-                <x>0</x>

-                <y>0</y>

-                <width>361</width>

-                <height>122</height>

-               </rect>

-              </property>

-              <attribute name="label">

-               <string>Favorite packages</string>

-              </attribute>

-              <layout class="QVBoxLayout" name="toolBoxFavoriteLayout">

-               <item>

-                <widget class="QTreeWidget" name="tool_pkg_list_favorite">

-                 <column>

-                  <property name="text">

-                   <string>Package</string>

-                  </property>

-                 </column>

-                </widget>

-               </item>

-               <item>

-                <layout class="QHBoxLayout" name="horizontalLayout_7">

-                 <property name="topMargin">

-                  <number>0</number>

-                 </property>

-                 <item>

-                  <widget class="QWidget" name="tool_add_remove_pkg" native="true">

-                   <property name="minimumSize">

-                    <size>

-                     <width>0</width>

-                     <height>0</height>

-                    </size>

-                   </property>

-                   <layout class="QHBoxLayout" name="horizontalLayout_9">

-                    <item>

-                     <widget class="QPushButton" name="btn_tool_remove_pkg">

-                      <property name="text">

-                       <string>Remove selected package</string>

-                      </property>

-                     </widget>

-                    </item>

-                    <item>

-                     <spacer name="horizontalSpacer">

-                      <property name="orientation">

-                       <enum>Qt::Horizontal</enum>

-                      </property>

-                      <property name="sizeHint" stdset="0">

-                       <size>

-                        <width>40</width>

-                        <height>20</height>

-                       </size>

-                      </property>

-                     </spacer>

-                    </item>

-                    <item>

-                     <widget class="QLineEdit" name="tool_pkg_name"/>

-                    </item>

-                    <item>

-                     <widget class="QPushButton" name="btn_tool_add_pkg">

-                      <property name="text">

-                       <string>Add package</string>

-                      </property>

-                     </widget>

-                    </item>

-                   </layout>

-                  </widget>

-                 </item>

-                </layout>

-               </item>

-              </layout>

-             </widget>

-             <widget class="QWidget" name="toolBoxIgnored">

-              <property name="geometry">

-               <rect>

-                <x>0</x>

-                <y>0</y>

-                <width>84</width>

-                <height>84</height>

-               </rect>

-              </property>

-              <attribute name="label">

-               <string>Ignored packages</string>

-              </attribute>

-              <layout class="QVBoxLayout" name="toolBoxIgnoredLayout">

-               <item>

-                <widget class="QTreeWidget" name="tool_pkg_list_ignored">

-                 <column>

-                  <property name="text">

-                   <string>Package</string>

-                  </property>

-                 </column>

-                </widget>

-               </item>

-              </layout>

-             </widget>

-            </widget>

-           </item>

-          </layout>

-         </widget>

-         <widget class="QWidget" name="TabInfo">

-          <property name="cursor">

-           <cursorShape>ArrowCursor</cursorShape>

-          </property>

-          <property name="styleSheet">

-           <string notr="true"/>

-          </property>

-          <attribute name="title">

-           <string>Package info</string>

-          </attribute>

-          <layout class="QVBoxLayout" name="verticalLayout_4">

-           <item alignment="Qt::AlignTop">

-            <widget class="QTabWidget" name="tabWidget_side">

-             <property name="tabPosition">

-              <enum>QTabWidget::East</enum>

-             </property>

-             <property name="currentIndex">

-              <number>0</number>

-             </property>

-             <widget class="QWidget" name="tabPkg_info">

-              <attribute name="title">

-               <string>Info</string>

-              </attribute>

-              <layout class="QVBoxLayout" name="verticalLayout_6">

-               <item>

-                <widget class="QSplitter" name="splitter_6">

-                 <property name="orientation">

-                  <enum>Qt::Vertical</enum>

-                 </property>

-                 <widget class="QSplitter" name="splitter_7">

-                  <property name="orientation">

-                   <enum>Qt::Horizontal</enum>

-                  </property>

-                  <widget class="QWidget" name="layoutWidget_2">

-                   <layout class="QVBoxLayout" name="verticalLayout_11">

-                    <item>

-                     <widget class="QLabel" name="pkgNameLabel">

-                      <property name="font">

-                       <font>

-                        <pointsize>16</pointsize>

-                       </font>

-                      </property>

-                      <property name="cursor">

-                       <cursorShape>ArrowCursor</cursorShape>

-                      </property>

-                      <property name="mouseTracking">

-                       <bool>false</bool>

-                      </property>

-                      <property name="focusPolicy">

-                       <enum>Qt::NoFocus</enum>

-                      </property>

-                      <property name="acceptDrops">

-                       <bool>false</bool>

-                      </property>

-                      <property name="text">

-                       <string>Package name</string>

-                      </property>

-                      <property name="textInteractionFlags">

-                       <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>

-                      </property>

-                     </widget>

-                    </item>

-                    <item>

-                     <widget class="QTextBrowser" name="textBrowser">

-                      <property name="font">

-                       <font>

-                        <family>Monospace</family>

-                        <pointsize>8</pointsize>

-                       </font>

-                      </property>

-                      <property name="styleSheet">

-                       <string notr="true"/>

-                      </property>

-                      <property name="html">

-                       <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;

- &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;

- p, li { white-space: pre-wrap; }

- &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Monospace'; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;

- &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>

-                      </property>

-                     </widget>

-                    </item>

-                   </layout>

-                  </widget>

-                  <widget class="QSplitter" name="splitter_8">

-                   <property name="orientation">

-                    <enum>Qt::Vertical</enum>

-                   </property>

-                   <widget class="QTreeWidget" name="treeWidget_bugs">

-                    <property name="cursor" stdset="0">

-                     <cursorShape>ArrowCursor</cursorShape>

-                    </property>

-                    <property name="verticalScrollBarPolicy">

-                     <enum>Qt::ScrollBarAsNeeded</enum>

-                    </property>

-                    <property name="horizontalScrollBarPolicy">

-                     <enum>Qt::ScrollBarAsNeeded</enum>

-                    </property>

-                    <property name="rootIsDecorated">

-                     <bool>false</bool>

-                    </property>

-                    <property name="wordWrap">

-                     <bool>false</bool>

-                    </property>

-                    <property name="columnCount">

-                     <number>2</number>

-                    </property>

-                    <column>

-                     <property name="text">

-                      <string>Bug id</string>

-                     </property>

-                    </column>

-                    <column>

-                     <property name="text">

-                      <string>Title</string>

-                     </property>

-                    </column>

-                   </widget>

-                   <widget class="QTreeWidget" name="treeWidget_test_cases">

-                    <property name="rootIsDecorated">

-                     <bool>false</bool>

-                    </property>

-                    <column>

-                     <property name="text">

-                      <string>Test cases</string>

-                     </property>

-                    </column>

-                   </widget>

-                   <widget class="QTreeWidget" name="treeWidget_related_packages">

-                    <column>

-                     <property name="text">

-                      <string>Related packages</string>

-                     </property>

-                    </column>

-                   </widget>

-                  </widget>

-                 </widget>

-                </widget>

-               </item>

-              </layout>

-             </widget>

-             <widget class="QWidget" name="tabPkg_karma">

-              <attribute name="title">

-               <string>Comments</string>

-              </attribute>

-              <layout class="QVBoxLayout" name="verticalLayout_13">

-               <item>

-                <layout class="QVBoxLayout" name="verticalLayout_2">

-                 <item>

-                  <widget class="QLabel" name="label">

-                   <property name="font">

-                    <font>

-                     <pointsize>16</pointsize>

-                    </font>

-                   </property>

-                   <property name="text">

-                    <string>FAS credentials</string>

-                   </property>

-                  </widget>

-                 </item>

-                 <item>

-                  <layout class="QHBoxLayout" name="horizontalLayout_8">

-                   <item>

-                    <widget class="QLineEdit" name="usernameEdit">

-                     <property name="placeholderText">

-                      <string>username</string>

-                     </property>

-                    </widget>

-                   </item>

-                   <item>

-                    <widget class="QLineEdit" name="passwordEdit">

-                     <property name="echoMode">

-                      <enum>QLineEdit::Password</enum>

-                     </property>

-                     <property name="placeholderText">

-                      <string>password</string>

-                     </property>

-                    </widget>

-                   </item>

-                   <item>

-                    <widget class="QComboBox" name="karmaBox">

-                     <property name="currentIndex">

-                      <number>1</number>

-                     </property>

-                     <item>

-                      <property name="text">

-                       <string>-1</string>

-                      </property>

-                     </item>

-                     <item>

-                      <property name="text">

-                       <string>0</string>

-                      </property>

-                     </item>

-                     <item>

-                      <property name="text">

-                       <string>+1</string>

-                      </property>

-                     </item>

-                    </widget>

-                   </item>

-                   <item>

-                    <widget class="QPushButton" name="sendBtn">

-                     <property name="text">

-                      <string>Send Karma</string>

-                     </property>

-                    </widget>

-                   </item>

-                  </layout>

-                 </item>

-                 <item>

-                  <widget class="QLabel" name="label_2">

-                   <property name="font">

-                    <font>

-                     <pointsize>16</pointsize>

-                    </font>

-                   </property>

-                   <property name="text">

-                    <string>Your comment</string>

-                   </property>

-                  </widget>

-                 </item>

-                 <item>

-                  <widget class="QSplitter" name="splitter">

-                   <property name="orientation">

-                    <enum>Qt::Vertical</enum>

-                   </property>

-                   <property name="handleWidth">

-                    <number>6</number>

-                   </property>

-                   <widget class="QPlainTextEdit" name="commentEdit">

-                    <property name="maximumSize">

-                     <size>

-                      <width>16777215</width>

-                      <height>80</height>

-                     </size>

-                    </property>

-                   </widget>

-                   <widget class="QTreeWidget" name="treeWidget_feedback">

-                    <property name="minimumSize">

-                     <size>

-                      <width>0</width>

-                      <height>0</height>

-                     </size>

-                    </property>

-                    <property name="rootIsDecorated">

-                     <bool>false</bool>

-                    </property>

-                    <property name="uniformRowHeights">

-                     <bool>false</bool>

-                    </property>

-                    <property name="sortingEnabled">

-                     <bool>true</bool>

-                    </property>

-                    <attribute name="headerCascadingSectionResizes">

-                     <bool>false</bool>

-                    </attribute>

-                    <attribute name="headerMinimumSectionSize">

-                     <number>30</number>

-                    </attribute>

-                    <column>

-                     <property name="text">

-                      <string>#</string>

-                     </property>

-                     <property name="textAlignment">

-                      <set>AlignRight|AlignVCenter</set>

-                     </property>

-                    </column>

-                    <column>

-                     <property name="text">

-                      <string>Karma</string>

-                     </property>

-                    </column>

-                    <column>

-                     <property name="text">

-                      <string>User</string>

-                     </property>

-                     <property name="font">

-                      <font>

-                       <weight>75</weight>

-                       <bold>true</bold>

-                      </font>

-                     </property>

-                    </column>

-                    <column>

-                     <property name="text">

-                      <string>Comment</string>

-                     </property>

-                    </column>

-                   </widget>

-                  </widget>

-                 </item>

-                </layout>

-               </item>

-              </layout>

-             </widget>

-             <widget class="QWidget" name="tabPkg_settings">

-              <attribute name="title">

-               <string>Settings</string>

-              </attribute>

-              <layout class="QVBoxLayout" name="verticalLayout_10">

-               <item>

-                <layout class="QFormLayout" name="formLayout">

-                 <property name="fieldGrowthPolicy">

-                  <enum>QFormLayout::ExpandingFieldsGrow</enum>

-                 </property>

-                 <item row="5" column="0">

-                  <widget class="QLabel" name="label_7">

-                   <property name="text">

-                    <string>Package category</string>

-                   </property>

-                  </widget>

-                 </item>

-                 <item row="5" column="1">

-                  <widget class="QRadioButton" name="settings_pkg_cat_normal">

-                   <property name="text">

-                    <string>Normal package</string>

-                   </property>

-                   <property name="checked">

-                    <bool>true</bool>

-                   </property>

-                  </widget>

-                 </item>

-                 <item row="6" column="1">

-                  <widget class="QRadioButton" name="settings_pkg_cat_favorite">

-                   <property name="text">

-                    <string>Favorite package</string>

-                   </property>

-                  </widget>

-                 </item>

-                 <item row="7" column="1">

-                  <widget class="QRadioButton" name="settings_pkg_cat_ignored">

-                   <property name="text">

-                    <string>Ignore this package</string>

-                   </property>

-                  </widget>

-                 </item>

-                 <item row="3" column="1">

-                  <widget class="QPushButton" name="pkg_settings_open_bodhi_update">

-                   <property name="text">

-                    <string>Open bodhi update in web browser</string>

-                   </property>

-                  </widget>

-                 </item>

-                 <item row="4" column="1">

-                  <widget class="QPushButton" name="pkg_settings_download_source_rpm">

-                   <property name="text">

-                    <string>Download source RPM</string>

-                   </property>

-                  </widget>

-                 </item>

-                 <item row="3" column="0">

-                  <widget class="QLabel" name="label_8">

-                   <property name="text">

-                    <string>Tools</string>

-                   </property>

-                  </widget>

-                 </item>

-                </layout>

-               </item>

-              </layout>

-             </widget>

-            </widget>

-           </item>

-          </layout>

-         </widget>

-        </widget>

-       </item>

-      </layout>

-     </item>

-     <item>

-      <widget class="QListWidget" name="statusList">

-       <property name="sizePolicy">

-        <sizepolicy hsizetype="Expanding" vsizetype="Maximum">

-         <horstretch>0</horstretch>

-         <verstretch>0</verstretch>

-        </sizepolicy>

-       </property>

-       <property name="maximumSize">

-        <size>

-         <width>16777215</width>

-         <height>80</height>

-        </size>

-       </property>

-       <property name="mouseTracking">

-        <bool>true</bool>

-       </property>

-       <property name="toolTip">

-        <string>Press and hold mouse button to expand</string>

-       </property>

-       <property name="selectionMode">

-        <enum>QAbstractItemView::NoSelection</enum>

-       </property>

-       <property name="sortingEnabled">

-        <bool>false</bool>

-       </property>

-      </widget>

-     </item>

-    </layout>

-   </widget>

-   <widget class="QMenuBar" name="menubar">

-    <property name="geometry">

-     <rect>

-      <x>0</x>

-      <y>0</y>

-      <width>1002</width>

-      <height>21</height>

-     </rect>

-    </property>

-    <widget class="QMenu" name="menuFile">

-     <property name="title">

-      <string>File</string>

-     </property>

-     <addaction name="actionQuit"/>

-    </widget>

-    <widget class="QMenu" name="menuHelp">

-     <property name="title">

-      <string>Help</string>

-     </property>

-     <addaction name="actionAbout"/>

-    </widget>

-    <addaction name="menuFile"/>

-    <addaction name="menuHelp"/>

-   </widget>

-   <widget class="QStatusBar" name="statusBar"/>

-   <action name="actionQuit">

-    <property name="text">

-     <string>Quit</string>

-    </property>

-   </action>

-   <action name="actionAbout">

-    <property name="text">

-     <string>About Fedora Gooey Karma</string>

-    </property>

-   </action>

-  </widget>

-  <tabstops>

-   <tabstop>karmaBox</tabstop>

-   <tabstop>sendBtn</tabstop>

-   <tabstop>loadPackagesBtn</tabstop>

-   <tabstop>availableBtn</tabstop>

-   <tabstop>pkgList</tabstop>

-   <tabstop>releaseComboBox</tabstop>

-   <tabstop>installedBtn</tabstop>

-  </tabstops>

-  <resources/>

-  <connections>

-   <connection>

-    <sender>karmaCheckBox</sender>

-    <signal>toggled(bool)</signal>

-    <receiver>karmaFilterWidget</receiver>

-    <slot>setShown(bool)</slot>

-    <hints>

-     <hint type="sourcelabel">

-      <x>84</x>

-      <y>96</y>

-     </hint>

-     <hint type="destinationlabel">

-      <x>40</x>

-      <y>142</y>

-     </hint>

-    </hints>

-   </connection>

-   <connection>

-    <sender>pushButton</sender>

-    <signal>clicked()</signal>

-    <receiver>searchEdit</receiver>

-    <slot>clear()</slot>

-    <hints>

-     <hint type="sourcelabel">

-      <x>220</x>

-      <y>70</y>

-     </hint>

-     <hint type="destinationlabel">

-      <x>188</x>

-      <y>69</y>

-     </hint>

-    </hints>

-   </connection>

-  </connections>

- </ui>

file added
+93
@@ -0,0 +1,93 @@ 

+ <?xml version="1.0" encoding="UTF-8"?>

+ <ui version="4.0">

+  <class>Login</class>

+  <widget class="QDialog" name="Login">

+   <property name="geometry">

+    <rect>

+     <x>0</x>

+     <y>0</y>

+     <width>250</width>

+     <height>300</height>

+    </rect>

+   </property>

+   <property name="sizePolicy">

+    <sizepolicy hsizetype="Fixed" vsizetype="Fixed">

+     <horstretch>0</horstretch>

+     <verstretch>0</verstretch>

+    </sizepolicy>

+   </property>

+   <property name="minimumSize">

+    <size>

+     <width>250</width>

+     <height>300</height>

+    </size>

+   </property>

+   <property name="maximumSize">

+    <size>

+     <width>250</width>

+     <height>300</height>

+    </size>

+   </property>

+   <property name="windowTitle">

+    <string>Login</string>

+   </property>

+   <widget class="QWidget" name="gridLayoutWidget">

+    <property name="geometry">

+     <rect>

+      <x>0</x>

+      <y>0</y>

+      <width>241</width>

+      <height>291</height>

+     </rect>

+    </property>

+    <layout class="QGridLayout" name="gridLayout">

+     <item row="5" column="0">

+      <widget class="QLineEdit" name="Password">

+       <property name="text">

+        <string/>

+       </property>

+       <property name="echoMode">

+        <enum>QLineEdit::Password</enum>

+       </property>

+      </widget>

+     </item>

+     <item row="2" column="0">

+      <widget class="QLabel" name="label_username">

+       <property name="text">

+        <string>Username</string>

+       </property>

+      </widget>

+     </item>

+     <item row="4" column="0">

+      <widget class="QLabel" name="label_Password">

+       <property name="text">

+        <string>Password</string>

+       </property>

+      </widget>

+     </item>

+     <item row="7" column="0">

+      <widget class="QComboBox" name="fedoraReleases"/>

+     </item>

+     <item row="6" column="0">

+      <widget class="QLabel" name="label_FeodraVersion">

+       <property name="text">

+        <string>Fedora Version</string>

+       </property>

+      </widget>

+     </item>

+     <item row="8" column="0">

+      <widget class="QPushButton" name="saveButton">

+       <property name="text">

+        <string>Save</string>

+       </property>

+      </widget>

+     </item>

+     <item row="3" column="0">

+      <widget class="QLineEdit" name="Username"/>

+     </item>

+    </layout>

+   </widget>

+  </widget>

+  <resources/>

+  <connections/>

+ </ui>

file added
+603
@@ -0,0 +1,603 @@ 

+ <?xml version="1.0" encoding="UTF-8"?>

+ <ui version="4.0">

+  <class>MainWindow</class>

+  <widget class="QMainWindow" name="MainWindow">

+   <property name="geometry">

+    <rect>

+     <x>0</x>

+     <y>0</y>

+     <width>1031</width>

+     <height>766</height>

+    </rect>

+   </property>

+   <property name="mouseTracking">

+    <bool>false</bool>

+   </property>

+   <property name="windowTitle">

+    <string>MainWindow</string>

+   </property>

+   <widget class="QWidget" name="centralwidget">

+    <layout class="QGridLayout" name="gridLayout">

+     <item row="1" column="4">

+      <widget class="QPushButton" name="loginButton">

+       <property name="text">

+        <string>Login</string>

+       </property>

+      </widget>

+     </item>

+     <item row="3" column="0" colspan="5">

+      <widget class="QFrame" name="frame">

+       <property name="enabled">

+        <bool>true</bool>

+       </property>

+       <property name="autoFillBackground">

+        <bool>false</bool>

+       </property>

+       <property name="locale">

+        <locale language="English" country="UnitedKingdom"/>

+       </property>

+       <property name="frameShape">

+        <enum>QFrame::StyledPanel</enum>

+       </property>

+       <property name="frameShadow">

+        <enum>QFrame::Raised</enum>

+       </property>

+       <layout class="QGridLayout" name="gridLayout_2">

+        <item row="28" column="5">

+         <widget class="QComboBox" name="karmaBox">

+          <property name="currentText">

+           <string>0</string>

+          </property>

+          <property name="currentIndex">

+           <number>1</number>

+          </property>

+          <item>

+           <property name="text">

+            <string>1</string>

+           </property>

+          </item>

+          <item>

+           <property name="text">

+            <string>0</string>

+           </property>

+          </item>

+          <item>

+           <property name="text">

+            <string>-1</string>

+           </property>

+          </item>

+         </widget>

+        </item>

+        <item row="12" column="4">

+         <widget class="QLabel" name="Karma">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <weight>50</weight>

+            <bold>false</bold>

+            <kerning>true</kerning>

+           </font>

+          </property>

+          <property name="cursor">

+           <cursorShape>ArrowCursor</cursorShape>

+          </property>

+          <property name="layoutDirection">

+           <enum>Qt::LeftToRight</enum>

+          </property>

+          <property name="text">

+           <string>__</string>

+          </property>

+          <property name="alignment">

+           <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>

+          </property>

+         </widget>

+        </item>

+        <item row="1" column="3">

+         <widget class="QLabel" name="UpdateType">

+          <property name="text">

+           <string>__</string>

+          </property>

+         </widget>

+        </item>

+        <item row="10" column="6">

+         <widget class="QLabel" name="Request">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <weight>50</weight>

+            <bold>false</bold>

+            <kerning>true</kerning>

+           </font>

+          </property>

+          <property name="cursor">

+           <cursorShape>ArrowCursor</cursorShape>

+          </property>

+          <property name="layoutDirection">

+           <enum>Qt::LeftToRight</enum>

+          </property>

+          <property name="text">

+           <string/>

+          </property>

+          <property name="alignment">

+           <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>

+          </property>

+         </widget>

+        </item>

+        <item row="7" column="3" colspan="6">

+         <widget class="QTextBrowser" name="Release_notes"/>

+        </item>

+        <item row="13" column="3" colspan="6">

+         <widget class="QTreeWidget" name="treeWidget_comment">

+          <column>

+           <property name="text">

+            <string>#</string>

+           </property>

+          </column>

+          <column>

+           <property name="text">

+            <string>karma</string>

+           </property>

+          </column>

+          <column>

+           <property name="text">

+            <string>critpath</string>

+           </property>

+          </column>

+          <column>

+           <property name="text">

+            <string>user</string>

+           </property>

+          </column>

+          <column>

+           <property name="text">

+            <string>comment</string>

+           </property>

+          </column>

+         </widget>

+        </item>

+        <item row="9" column="5">

+         <widget class="QLabel" name="Status_static">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <weight>75</weight>

+            <bold>true</bold>

+            <kerning>true</kerning>

+           </font>

+          </property>

+          <property name="cursor">

+           <cursorShape>ArrowCursor</cursorShape>

+          </property>

+          <property name="layoutDirection">

+           <enum>Qt::LeftToRight</enum>

+          </property>

+          <property name="text">

+           <string>Status</string>

+          </property>

+          <property name="alignment">

+           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>

+          </property>

+         </widget>

+        </item>

+        <item row="17" column="3">

+         <widget class="QLabel" name="label_2">

+          <property name="text">

+           <string>Comment</string>

+          </property>

+         </widget>

+        </item>

+        <item row="5" column="3" colspan="4">

+         <widget class="QLabel" name="Package_name_main">

+          <property name="maximumSize">

+           <size>

+            <width>1000</width>

+            <height>1000</height>

+           </size>

+          </property>

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <pointsize>22</pointsize>

+            <weight>50</weight>

+            <bold>false</bold>

+           </font>

+          </property>

+          <property name="text">

+           <string>Package Name</string>

+          </property>

+         </widget>

+        </item>

+        <item row="6" column="3">

+         <widget class="QLabel" name="Package_breif">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <pointsize>12</pointsize>

+            <weight>50</weight>

+            <bold>false</bold>

+           </font>

+          </property>

+          <property name="text">

+           <string>breif</string>

+          </property>

+         </widget>

+        </item>

+        <item row="9" column="6">

+         <widget class="QLabel" name="Status">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <weight>50</weight>

+            <bold>false</bold>

+            <kerning>true</kerning>

+           </font>

+          </property>

+          <property name="cursor">

+           <cursorShape>ArrowCursor</cursorShape>

+          </property>

+          <property name="layoutDirection">

+           <enum>Qt::LeftToRight</enum>

+          </property>

+          <property name="text">

+           <string>__</string>

+          </property>

+          <property name="alignment">

+           <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>

+          </property>

+         </widget>

+        </item>

+        <item row="10" column="3">

+         <widget class="QLabel" name="Date_static">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <weight>75</weight>

+            <bold>true</bold>

+            <kerning>true</kerning>

+           </font>

+          </property>

+          <property name="cursor">

+           <cursorShape>ArrowCursor</cursorShape>

+          </property>

+          <property name="layoutDirection">

+           <enum>Qt::LeftToRight</enum>

+          </property>

+          <property name="text">

+           <string>date submitted</string>

+          </property>

+          <property name="alignment">

+           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>

+          </property>

+         </widget>

+        </item>

+        <item row="28" column="6" colspan="2">

+         <widget class="QPushButton" name="pushButton">

+          <property name="text">

+           <string>Submit</string>

+          </property>

+         </widget>

+        </item>

+        <item row="0" column="0" rowspan="29">

+         <widget class="QFrame" name="frame_2">

+          <property name="minimumSize">

+           <size>

+            <width>300</width>

+            <height>600</height>

+           </size>

+          </property>

+          <property name="maximumSize">

+           <size>

+            <width>300</width>

+            <height>16777215</height>

+           </size>

+          </property>

+          <property name="frameShape">

+           <enum>QFrame::StyledPanel</enum>

+          </property>

+          <property name="frameShadow">

+           <enum>QFrame::Raised</enum>

+          </property>

+          <layout class="QGridLayout" name="gridLayout_3">

+           <item row="1" column="0" colspan="2">

+            <widget class="QListWidget" name="listWidget"/>

+           </item>

+           <item row="10" column="0">

+            <widget class="QLabel" name="label_4">

+             <property name="text">

+              <string>Page number:</string>

+             </property>

+            </widget>

+           </item>

+           <item row="10" column="1">

+            <widget class="QLabel" name="PageNum">

+             <property name="text">

+              <string>1</string>

+             </property>

+            </widget>

+           </item>

+           <item row="11" column="0" colspan="2">

+            <widget class="QPushButton" name="fetchUpdatesButton">

+             <property name="text">

+              <string>Fetch Updates</string>

+             </property>

+            </widget>

+           </item>

+           <item row="0" column="0" colspan="2">

+            <widget class="QLineEdit" name="lineEdit"/>

+           </item>

+           <item row="8" column="0">

+            <widget class="QPushButton" name="previousButton">

+             <property name="text">

+              <string>Previous</string>

+             </property>

+            </widget>

+           </item>

+           <item row="8" column="1">

+            <widget class="QPushButton" name="nextButton">

+             <property name="text">

+              <string>Next</string>

+             </property>

+            </widget>

+           </item>

+          </layout>

+         </widget>

+        </item>

+        <item row="12" column="3">

+         <widget class="QLabel" name="Karma_static">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <weight>75</weight>

+            <bold>true</bold>

+            <kerning>true</kerning>

+           </font>

+          </property>

+          <property name="cursor">

+           <cursorShape>ArrowCursor</cursorShape>

+          </property>

+          <property name="layoutDirection">

+           <enum>Qt::LeftToRight</enum>

+          </property>

+          <property name="text">

+           <string>Karma</string>

+          </property>

+          <property name="alignment">

+           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>

+          </property>

+         </widget>

+        </item>

+        <item row="9" column="4">

+         <widget class="QLabel" name="Release">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <weight>50</weight>

+            <bold>false</bold>

+            <kerning>true</kerning>

+           </font>

+          </property>

+          <property name="cursor">

+           <cursorShape>ArrowCursor</cursorShape>

+          </property>

+          <property name="layoutDirection">

+           <enum>Qt::LeftToRight</enum>

+          </property>

+          <property name="text">

+           <string>__</string>

+          </property>

+          <property name="alignment">

+           <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>

+          </property>

+         </widget>

+        </item>

+        <item row="28" column="4">

+         <widget class="QLabel" name="karmaText">

+          <property name="text">

+           <string>Karma</string>

+          </property>

+         </widget>

+        </item>

+        <item row="10" column="5">

+         <widget class="QLabel" name="Request_static">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <weight>75</weight>

+            <bold>true</bold>

+            <kerning>true</kerning>

+           </font>

+          </property>

+          <property name="cursor">

+           <cursorShape>ArrowCursor</cursorShape>

+          </property>

+          <property name="layoutDirection">

+           <enum>Qt::LeftToRight</enum>

+          </property>

+          <property name="text">

+           <string>Request</string>

+          </property>

+          <property name="alignment">

+           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>

+          </property>

+         </widget>

+        </item>

+        <item row="12" column="6">

+         <widget class="QLabel" name="Submit_user">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <weight>50</weight>

+            <bold>false</bold>

+            <kerning>true</kerning>

+           </font>

+          </property>

+          <property name="cursor">

+           <cursorShape>ArrowCursor</cursorShape>

+          </property>

+          <property name="layoutDirection">

+           <enum>Qt::LeftToRight</enum>

+          </property>

+          <property name="text">

+           <string>__</string>

+          </property>

+          <property name="alignment">

+           <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>

+          </property>

+         </widget>

+        </item>

+        <item row="12" column="5">

+         <widget class="QLabel" name="Submitter_static">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <weight>75</weight>

+            <bold>true</bold>

+            <kerning>true</kerning>

+           </font>

+          </property>

+          <property name="cursor">

+           <cursorShape>ArrowCursor</cursorShape>

+          </property>

+          <property name="layoutDirection">

+           <enum>Qt::LeftToRight</enum>

+          </property>

+          <property name="text">

+           <string>Submitter</string>

+          </property>

+          <property name="alignment">

+           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>

+          </property>

+         </widget>

+        </item>

+        <item row="18" column="3" colspan="6">

+         <widget class="QTextEdit" name="commentEdit">

+          <property name="maximumSize">

+           <size>

+            <width>16777215</width>

+            <height>100</height>

+           </size>

+          </property>

+         </widget>

+        </item>

+        <item row="9" column="3">

+         <widget class="QLabel" name="Release_static">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <weight>75</weight>

+            <bold>true</bold>

+            <kerning>true</kerning>

+           </font>

+          </property>

+          <property name="cursor">

+           <cursorShape>ArrowCursor</cursorShape>

+          </property>

+          <property name="layoutDirection">

+           <enum>Qt::LeftToRight</enum>

+          </property>

+          <property name="text">

+           <string>Release</string>

+          </property>

+          <property name="alignment">

+           <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>

+          </property>

+         </widget>

+        </item>

+        <item row="10" column="4">

+         <widget class="QLabel" name="Date_submitted">

+          <property name="font">

+           <font>

+            <family>OpenSymbol</family>

+            <weight>50</weight>

+            <bold>false</bold>

+            <kerning>true</kerning>

+           </font>

+          </property>

+          <property name="cursor">

+           <cursorShape>ArrowCursor</cursorShape>

+          </property>

+          <property name="layoutDirection">

+           <enum>Qt::LeftToRight</enum>

+          </property>

+          <property name="text">

+           <string>__</string>

+          </property>

+          <property name="alignment">

+           <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>

+          </property>

+         </widget>

+        </item>

+        <item row="26" column="4">

+         <widget class="QLabel" name="critpathText">

+          <property name="text">

+           <string>critpath</string>

+          </property>

+         </widget>

+        </item>

+        <item row="26" column="5">

+         <widget class="QComboBox" name="critpathBox">

+          <property name="currentText">

+           <string>0</string>

+          </property>

+          <property name="currentIndex">

+           <number>1</number>

+          </property>

+          <item>

+           <property name="text">

+            <string>1</string>

+           </property>

+          </item>

+          <item>

+           <property name="text">

+            <string>0</string>

+           </property>

+          </item>

+          <item>

+           <property name="text">

+            <string>-1</string>

+           </property>

+          </item>

+         </widget>

+        </item>

+       </layout>

+       <zorder>Karma_static</zorder>

+       <zorder>frame_2</zorder>

+       <zorder>Package_breif</zorder>

+       <zorder>commentEdit</zorder>

+       <zorder>Package_name_main</zorder>

+       <zorder>Release_static</zorder>

+       <zorder>Date_static</zorder>

+       <zorder>pushButton</zorder>

+       <zorder>Release</zorder>

+       <zorder>Date_submitted</zorder>

+       <zorder>Karma</zorder>

+       <zorder>Submitter_static</zorder>

+       <zorder>Request_static</zorder>

+       <zorder>Submit_user</zorder>

+       <zorder>Status_static</zorder>

+       <zorder>Status</zorder>

+       <zorder>Request</zorder>

+       <zorder>UpdateType</zorder>

+       <zorder>karmaBox</zorder>

+       <zorder>karmaText</zorder>

+       <zorder>label_2</zorder>

+       <zorder>Release_notes</zorder>

+       <zorder>treeWidget_comment</zorder>

+       <zorder>critpathText</zorder>

+       <zorder>critpathBox</zorder>

+      </widget>

+     </item>

+     <item row="1" column="3" alignment="Qt::AlignRight">

+      <widget class="QLabel" name="usernamLable">

+       <property name="text">

+        <string>Username</string>

+       </property>

+      </widget>

+     </item>

+    </layout>

+   </widget>

+   <widget class="QStatusBar" name="statusbar"/>

+  </widget>

+  <resources/>

+  <connections/>

+ </ui>

no initial comment

Hi,

I didn't look at the code yet, but please, remove .vscode directory from the PR, there is no need to have it in the repository.

Also, you can leave COPYING and AUTHORS file in place for now.

okay,
The code isn't perfect yet, but the project is at least working right now.
I'll be working on this for a while.
oh yeah, I'll add ".vscode" to gitignore
and add back the COPYING and AUTHORS files.

And... it doesn't seem to work at all, I can't type anything into the app.

https://i.imgur.com/3gPDLD3.png

Reproduced on F31 and F30 (by @lbrabec).

Also, can you provide list of packages needed to run the app? I was able to do it after some googling, but it should be in the readme file.

ohh yeah, I'll do that.
and will look into the issue

On Tue, Aug 27, 2019 at 6:55 PM Franti=C5=A1ek Zatloukal pagure@pagure.io
wrote:

frantisekz commented on the pull-request: python2 to python3 port that
you are following:
``
And... it doesn't seem to work at all, I can't type anything into the app=
.

https://i.imgur.com/3gPDLD3.png

Reproduced on F31 and F30 (by @lbrabec).

Also, can you provide list of packages needed to run the app? I was able
to do it after some googling, but it should be in the readme file.
``

To reply, visit the link below or just reply to this email
https://pagure.io/fedora-qa/fedora-gooey-karma/pull-request/8

@frantisekz this project works just fine. Author has just not yet enabled multi-threading I guess, which i suppose he will.

@frantisekz this project works just fine. Author has just not yet enabled multi-threading I guess, which i suppose he will.

This has nothing to do with multi-threading. It is broken on GNOME Xorg Session and works on Wayland. I've tried it in clean F31 VM right now.

It is really important that i runs also in Xorg sessions.

You need also python3-bodhi-client to run it

I'd prefer to use fedora package names, so python3-qt5 instead of PyQt5 , and it needs also python3-pyside2. You can leave pip package names in requirements.txt

What is the purpose of having both src/fedora-gooey-karma and src/FedoraGooeyKarma?

They seem almost identical:

$ diff src/fedora-gooey-karma src/FedoraGooeyKarma
29a30
> 
141c142,143
<                 try: 
---
>                 try:
>                         print("fetching")
213c215
<                                         response = self.comment(t, self.ui.commentEdit.toPlainText(), self.ui.karmaBox.currentText(),self.ui.critpathBox.currentText())
---
>                                         self.comment(t, self.ui.commentEdit.toPlainText(), self.ui.karmaBox.currentText(),self.ui.critpathBox.currentText())
216c218
<                                 response = self.comment(t, self.ui.commentEdit.toPlainText(), self.ui.karmaBox.currentText())
---
>                                 self.comment(t, self.ui.commentEdit.toPlainText(), self.ui.karmaBox.currentText())

What is the point of using both PyQt5 and Pyside2? Pick one and use only that. Some differences are described here: https://www.learnpyqt.com/blog/pyqt5-vs-pyside2/

Also, as you are importing it directly, both pyside2 and pyqt5, only one will end up being used:

from PySide2 import QtCore, QtGui, QtWidgets
from PyQt5 import QtCore, QtGui, QtWidgets

@frantisekz Yes, I realised most of the things you commented here.
I've been looking for the Xorg fix right now, for now, I'll close this PR and get back to this repo once I fix the bugs.

about using the fedora packages instead of python ones,
the fedora packages are somewhat broken or Idk what's up with that if I run the program on them, It doesn't work, so I'll have to stick with python packages for now.

also, thanks for testing it properly. much appreciated.

Sure, take your time :)

(Regarding the Fedora packages, if this tool is to be packaged in Fedora, it has to use Fedora packages, not those from pip. I did all the testing with Fedora (F31) packages and it worked well on Wayland session.)

3 new commits added

  • gitignore fix
  • gitignore fix
  • clean unused files and deps
4 years ago

1 new commit added

  • no connection error and fetchlist on next page
4 years ago