installation-report-generator-0.2.3/0000755000175300017540000000000011165176050017403 5ustar alessioalessioinstallation-report-generator-0.2.3/AUTHORS0000644000175300017540000000035011165175621020454 0ustar alessioalessioThis program was originally written by: Alessio Treglia Active developers: Alessio Treglia Andrea Gasparini Logo designer: Maurizio Moriconi installation-report-generator-0.2.3/COPYING0000644000175300017540000010456711165175621020456 0ustar alessioalessio GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. 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. installation-report-generator - A small program to generate installation report of Ubuntu on laptops Copyright (C) 2008 Alessio Treglia 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 . 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: installation-report-generator Copyright (C) 2008 Alessio Treglia 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 . 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 . installation-report-generator-0.2.3/ChangeLog0000644000175300017540000001027411165175762021172 0ustar alessioalessio2009-04-02 Alessio Treglia * Release 0.2.3: - Refresh Italian translations, add Spanish and French ones. - Fix some markers used in glade file. - Adjust setup.py to install all language packs. 2009-02-27 Alessio Treglia * Release 0.2.2: - Minor changes to the .desktop file, now gnome-app-install should list this. 2009-02-05 Alessio Treglia * Release 0.2.1: - Import translations from Launchpad. * Update TODO. 2009-01-25 Alessio Treglia * 0.2.0 released. * 0.2 FINAL freeze: - glade/main_window.glade: + Removed gutsy from releases; it'll reach soon its end of life. - Now load header.png dinamically. - Removed translations, waiting for updates. 2009-01-24 Alessio Treglia * All new-style classes. * irgenerator/globals.py: - Add PIXMAPS path. * setup.py: - Install all PIXMAPS in the right path. * glade/*.glade: - Change some elements from translatable to not-translatable. 2009-01-21 Alessio Treglia * New logo is ready! Thanks to Maurizio Moriconi. - glade/about_dialog.glade: + Add Maurizio to Artists field. * Beautify ChangeLog and README, add AUTHORS. * Update po/messages.po 2009-01-21 Alessio Treglia * Release 0.2beta1: - Add plugin support. - Renewed UI, changed header.png. - Change glade/header.png. - plugins/*.py + Add UbuntuItWikiPlugin and HelloPlugin (use only for test purposes). - setup.py + Added plugins. 2009-01-10 Alessio Treglia * Turn on maintainer mode. * Import Italian translations. * Attempt to apply Low-coupling/High coesion pattern (package core). * Update copyright notices at the beginning of the sources. * Update setup.py, prepare for the translations import. 2008-12-29 Alessio Treglia * Version 0.1.8: - Add translations template (po/messages.po). - Removed sysinfo from core package (unuseful). - Ready for Jaunty now. 2008-11-12 Alessio Treglia * Added manpage. 2008-11-09 Alessio Treglia * Version 0.1.7: - Fixed .desktop file. - Rename glade/ubuntu_logo.png in glade/installation-report-generator.png. 2008-11-06 Alessio Treglia * Version 0.1.6: - Fixed license notes in source files. 2008-10-24 Alessio Treglia * Version 0.1.5: * Now modules are organized into packages. * Added full support to Ubuntu 8.10 «Intrepid Ibex». 2008-10-16 Alessio Treglia * Version 0.1.4: - UI review: + Added VGA field. + Added about dialog. - Introduced adapters. - Code optimization and clean. 2008-10-14 Alessio Treglia * Version 0.1.3: - irgenerator/main.py: + Removed user id check, now it's unnecessary to be root. - irgenerator/sysinfo.py: + Corrected functions to retrieve information about cpu and memory. - irgenerator/core.py: + Corrected autodetect option, code cleaning. - irgenerator/template.py: + Fixed notebook template, added website field. - Removed irgenerator/errors.py, now unnecessary. - glade/main_window.glade: + Added website label and entry. - misc/installation-report-generator.desktop: + Fixed Exec value, now the program runs without root permissions. 2008-10-13 Alessio Treglia * Version 0.1.2: - irgenerator/core.py: + Fixed issue with button previous (LP: #282276). + Fixed tab wait's behavior (LP: #282277). 2008-10-09 Alessio Treglia * Version 0.1.1: - irgenerator/sysinfo.py: + New function get_cpuinfo() (LP: #281220). - irgenerator/template.py: + Fixed page template. 2008-10-09 Alessio Treglia * irgenerator/globals.py: - Removed import pygtk, fixed FTBFS. 2008-10-08 Alessio Treglia * Initial release. installation-report-generator-0.2.3/README0000644000175300017540000000235011165175621020266 0ustar alessioalessioCopyright (C) 2008 Alessio Treglia This file is part of installation-report-generator. installation-report-generator 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. installation-report-generator 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 installation-report-generator. If not, see . -------------------------------------------------------------------------------------------- To convert the logo from SVG format to PNG format, install imagemagick then type: $ cd images $ convert -render -background transparent -resize 48x48! installation-report-generator.svg installation-report-generator.png To generate the .pot file, type: $ xgettext irgenerator/*.py irgenerator/core/*.py irgenerator/ui/*.py irgenerator/util/*.py plugins/*.py glade/main_window.glade glade/about_dialog.glade installation-report-generator-0.2.3/TODO0000644000175300017540000000101111165175621020067 0ustar alessioalessio * Autodetect VGA NOT STARTED * Allow user to add sections to the page NOT STARTED * About dialog DONE * More template, let templates be a user choice STARTED,NEEDS WORK * Organize modules into packages DONE * Use sysfs to get system informations DEFERRED * Plugins support DONE * New logo DONE installation-report-generator-0.2.3/glade/0000755000175300017540000000000011165175621020462 5ustar alessioalessioinstallation-report-generator-0.2.3/glade/about_dialog.glade0000644000175300017540000000350011165175621024107 0ustar alessioalessio 5 False GTK_WIN_POS_CENTER_ON_PARENT GDK_WINDOW_TYPE_HINT_DIALOG False Installation Report Generator Copyright © 2008 Alessio Treglia http://www.alessiotreglia.com/installation-report-generator Project's website translator-credits Maurizio Moriconi <bugman@ubuntu.com> True True 2 True GTK_BUTTONBOX_END False GTK_PACK_END installation-report-generator-0.2.3/glade/main_window.glade0000644000175300017540000012676511165175621024014 0ustar alessioalessio 450 450 GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_STRUCTURE_MASK Installation Report Generator False GTK_WIN_POS_CENTER_ON_PARENT 450 450 GDK_WINDOW_TYPE_HINT_DIALOG False True 2 True gtk-missing-image False 1 True True False False 0 True True True <b>Welcome to Installation Report Generator!</b> False False 30 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_STRUCTURE_MASK This program will help you to gather information about your hardware and software configuration, in order to prepare a page for the Italian wiki. For more information about Ubuntu-it Wiki and Laptop section, visit http://wiki.ubuntu-it.org/Hardware/Notebook. True 1 True _Intro tab False True True Enter laptop details: False False 30 True 6 6 12 12 True 6 2 12 6 True True 1 2 4 5 True 0 _Graphic card: True entry_vga 4 5 True True 1 2 5 6 True 0 Vendor's _website: True entry_website 5 6 True True True Leave blank to autodetect 1 2 3 4 True True True Leave blank to autodetect 1 2 2 3 True True 1 2 1 2 True True 1 2 True 0 M_emory size: True entry_memory 3 4 True 0 _CPU: True entry_cpu 2 3 True 0 _Model: True entry_model 1 2 True 0 _Vendor: True entry_vendor 1 1 True _Configuration tab 1 False True True Select the distribution you are using: False False 30 True 100 100 True True True True Ubuntu 9.04 0 True radiobutton_hardy False False True True Ubuntu 8.10 0 True radiobutton_hardy False False 1 True True Ubuntu 8.04 0 True False False 2 True True Ubuntu 6.06 0 True radiobutton_hardy False False 3 30 True True _Auto-detect True 0 True 1 1 2 True _Distribution tab 2 False True True Select the template you would like to use: False False 30 True 100 100 True True False False 1 5 True _Plugin tab 3 False True True True Laptop configuration: False False 30 True 6 6 6 6 True 15 True 6 2 6 12 True 0 True 1 2 5 6 True 0 <b>Graphic card:</b> True 5 6 True 0 <i>Autodetect</i> True 1 2 4 5 True 0 <b>Memory:</b> True 4 5 True 0 <i>Autodetect</i> True 1 2 3 4 True 0 <b>CPU:</b> True 3 4 True 0 1 2 2 3 True 0 <b>Website:</b> True 2 3 True 0 <i>Autodetect</i> True 1 2 1 2 True 0 <b>Distribution:</b> True 1 2 True 0 1 2 True 0 <b>Laptop:</b> True 0 False False 1 True Press «OK» to confirm False False 1 3 True _Wait tab 4 False True True Copy and paste the following text in a new test page: True False False 30 True 6 6 12 12 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC True True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_STRUCTURE_MASK False GTK_WRAP_WORD 1 4 True _Final tab 5 False 2 True GTK_BUTTONBOX_END True True True gtk-about True 0 True True True gtk-go-back True 0 1 True True True gtk-go-forward True 0 2 True True True gtk-ok True 0 3 True True True gtk-quit True 0 4 False GTK_PACK_END installation-report-generator-0.2.3/images/0000755000175300017540000000000011165175621020653 5ustar alessioalessioinstallation-report-generator-0.2.3/images/installation-report-generator.svg0000644000175300017540000015636111165175621027406 0ustar alessioalessio image/svg+xml installation-report-generator-0.2.3/images/header.png0000644000175300017540000006175011165175621022622 0ustar alessioalessioPNG  IHDRZmsRGBbKGD pHYs  tIME" IDATxwUg^)BII'P *AC(X&H EBMh!=!g7پ{vݲ{C 7ܙ3gyU4.,AB8}6{^cg(! C/8f'Y|&O懶;k!mY5~p[Hɂ>[ԧuԟ]1|Hqul۶m۶m۶m۶}MEb3//D(P(Uz®i`L{^] X!AVxXE +|)p.dƻ/7sWž CLa&U|Ag4 ~!f/'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+r>{|<=F{*Ue{_5- sh'T #4y{^` _NTlSg)f3w O0B~p}}Pd xuyhU#8=Plx |FotYJ0H5#&HH PbĄLȪѓebL%\i4CJj=Y`i nƠ)9} &( c eʓu}*~oBbɷSqlc{0T{:@w=cßZBe*ocF75 /?U&\ ZJ↮F?s%>IENDB`installation-report-generator-0.2.3/images/installation-report-generator.png0000644000175300017540000002026211165175621027361 0ustar alessioalessioPNG  IHDR00%bKGDC pHYsHHFk> vpAg00W =IDATxgxUնsB! $7 (AE ("" M#EwC(H;mps>_ƓP悲LY,uuu ]xJuD0|a\|˰m())aaaUҤIya$!rKmɁɁc7'M>1U~UG- H_|AD=P85gggViZPzeH[-J(D-QKԺ@q̑92\Ot= #G]bw\] 8lCHLLLLL_@Ձc1XUxk]Ԇ Qbz+888 m689ALcӠlNٜ9_?~~}()){w{w{w;NJ- eQeQeQRW@tEg+] ⱀW+ŕ~~~ʧxaAÂA 8$AI%ýý{N _0|xơs:lllZKr#TQf-Y] o&΄m9i7A^EpwweF;WSWSWS=fvm;x<÷v ڱAaaaya2붮ۺn P YYYmmm{x 888AvԡPu('''CIǒ%Ashimڧu8{xO eNL>ډIPZni4@E@R{!o@D.C$$$$$$@OH6)Ru\s8ғy{{d1xw r󗜿@̋!יuBȩ3 p7ׁjTs Pj F\b <E5BEa'ONޑ#{d>}'eOʞ{2ve+B#Me-jcuvLѺ<8!ĭlRIMu۩nyEt|=`2ooi¯_K]ek hdAF5OI?Cp>|y0a oA5D '9EEl'Րh@E&kT'bSFڿ} )eqIL}Ub=>c;m^k;wr\mΦܗ%dY L ?2ML)"E\IQqGU^uE04ymH#-_K~-Ax'?-h[2G}7n3g X6:;9;9;WlclclcyFѣ{^LT.K`J*\P' P(C!Zk/]rr/mq8ItI==ГCJ%.q{O ?P5US5l& 4i|Y+s~rpmwU$e,RG"P 022Qn@1UoK],f9ENppp?nGg2М4w7n5^50};)~p\B % k\EkhLcߋm G9ꒃ<'s~݅}TTT E/ϔ ~.Pga B'4ae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gN1(egggLW-bPT%dU6T>dd#8D&;'3c~0D+E<.ʹy L͹~%JxPv>|7Qc_; [<;c!6QKl~/<ޘBjx x?m x-K7Id1gMsN>Q+BpWbEGLi2:2@T?Gx(a`,5(N,`L|% + MQe2P P| S]ȍr; '8"U9=J9[_]x&=wBS@6sAffī&7,4&)}R` ;&o2M#rx﷍rnN$qO{hѷr$ 2bHUsEQtDRL1.?V|,asEaVq//ӭ֭\am_w(Q޾4 5)&cAh"6-sdqxċ<+#y 6Oų#DKt&pMb9 OӇ1 Shc %Penycj}^%^-.R_ fb&T,e˦M/x<}maw d@9MonGA2q`gnonE ڀJ/7ԃD>cI}MV3'rcAwz*Ec Nt`Lcj@F#щ.j7@9Y8N4Ml1CN&* Xq b.RA b+b+B57Q%15|tͨ5 R)fX V0f!jխ+98(_S0`ȑEvL9c.otwcTdVӆlS,."ĕJv%FldS~|X5P QG؅^||q1 Ԇc-kUkAl"Phƣ>0Bpˉ);;ñ['VB˿_2 ^MW,#5흋't?JC%|.k/0zHIENDB`installation-report-generator-0.2.3/irgenerator/0000755000175300017540000000000011165175621021727 5ustar alessioalessioinstallation-report-generator-0.2.3/irgenerator/core/0000755000175300017540000000000011165175621022657 5ustar alessioalessioinstallation-report-generator-0.2.3/irgenerator/core/template.py0000644000175300017540000002421011165175621025043 0ustar alessioalessio#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2008-2009 Alessio Treglia # Copyright (C) 2008 Andrea Gasparini # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . distributions = [ 'Ubuntu', 'Kubuntu', 'Xubuntu', 'Edubuntu', 'Ubuntu Studio' ] releases = { '9.04' : 'Jaunty Jackalope', '8.10' : 'Intrepid Ibex', '8.04' : 'Hardy Heron', '7.10' : 'Gutsy Gibbon', '6.06' : 'Dapper Drake' } notebook_it = \ """#format wiki #LANGUAGE it [[BR]] ||[[BR]] |||| {*} '''Scheda tecnica'''||[[BR]] || ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Marca:'''||<#eae5da : 35%% style="border: medium none ;"(> %(vendor)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Modello:'''||<#eae5da : 35%% style="border: medium none ;"(> %(model)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Memoria RAM:'''||<#eae5da : 35%% style="border: medium none ;"(> %(memory)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Processore:'''||<#eae5da : 35%% style="border: medium none ;"(> %(cpu)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Scheda video:'''||<#eae5da : 35%% style="border: medium none ;"(> %(vga)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Distribuzione utilizzata:'''||<#eae5da : 35%% style="border: medium none ;"(>Ubuntu %(release)s «%(codename)s» ||<#eae5da : 15%% style="border: medium none ;">|| ||[[BR]] ||[[BR]] ||[[BR]] || ||[[Immagine(NotebookModello/notebookprova.png,150,)]] ||In questa pagina è riportato il resoconto dell'installazione di '''Ubuntu %(release)s''' «'''%(codename)s'''» sul portatile '''%(vendor)s %(model)s'''.|| Inoltre verranno riportate le informazioni generali sul riconoscimento dell'hardware e i possibili metodi di installazione. = Installazione = = Rilevamento dell'hardware = == Dispositivi connessi == Per verificare il corretto rilevamento dell'hardware del portatile, digitare in un terminale il seguente comando: {{{ lspci }}} Il comando precedente restituirà una schermata simile alla seguente: {{{ %(peripherals)s }}} == Processore == Per visualizzare i dettagli sul processore, aprire in lettura il file `/proc/cpuinfo`, digitando in una finestra di terminale il seguente comando: {{{ cat /proc/cpuinfo }}} Il risultato sarà simile al seguente: {{{ %(cpuinfo)s }}} ||[[Immagine(Icone/Piccole/warning.png,100,left)]] ||'''I valori differiscono a seconda dei modelli di processori, qui si fa riferimento al ''%(cpu)s''.''' || = Configurazione dei componenti = Inserire un elenco dei componenti con le relative istruzioni utili alla loro configurazione. A seconda della situazione, si potranno verificare due casi: * Se il componente è stato riconosciuto in modo automatico, inserire il seguente testo: ''Riconosciuto/a automaticamente'' {OK} * Se il componente non è stato riconosciuto (o lo è stato soltanto parzialmente), indicare la procedura per configurarlo affinché venga rilevato correttamente. ||[[Immagine(Icone/Piccole/note.png,100,center)]] ||''Inserire solo i dispositivi il cui funzionamento è stato verificato.'' || == Scheda video == == Scheda audio == == Interfacce di rete == == Touchpad == == Tasti rapidi == == Bluetooth == = Ulteriori risorse = * [%(website)s Sito ufficiale del produttore] ---- CategoryHardware""" notebook_en = \ """#format wiki #LANGUAGE en [[BR]] ||[[BR]] |||| {*} '''Data sheet'''||[[BR]] || ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Vendor:'''||<#eae5da : 35%% style="border: medium none ;"(> %(vendor)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Model:'''||<#eae5da : 35%% style="border: medium none ;"(> %(model)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Memory:'''||<#eae5da : 35%% style="border: medium none ;"(> %(memory)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Processor:'''||<#eae5da : 35%% style="border: medium none ;"(> %(cpu)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Video card:'''||<#eae5da : 35%% style="border: medium none ;"(> %(vga)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Distribution used:'''||<#eae5da : 35%% style="border: medium none ;"(>Ubuntu %(release)s «%(codename)s» ||<#eae5da : 15%% style="border: medium none ;">|| ||[[BR]] ||[[BR]] ||[[BR]] || ||[[Immagine(NotebookModello/notebookprova.png,150,)]] ||This page reports the installation of '''Ubuntu %(release)s''' «'''%(codename)s'''» on a '''%(vendor)s %(model)s''' notebook.|| Are reported as wellgeneral informations about hardware and installation methods. = Installation = = Gathering hardware informations = == Connectecd devices == Please verify the correct detection of the notebook devices, typing in a shell the following command: {{{ lspci }}} Il comando precedente restituirà una schermata simile alla seguente: It'll return an output like this: {{{ %(peripherals)s }}} == Processor == In order to see processor details, you could read the file `/proc/cpuinfo`, typing in a shell the following command: {{{ cat /proc/cpuinfo }}} The result should be like this: {{{ %(cpuinfo)s }}} ||[[Immagine(Icone/Piccole/warning.png,100,left)]] ||'''Values could change on different models, values above are referring to ''%(cpu)s''.''' || = Components configuration = Inserire un elenco dei componenti con le relative istruzioni utili alla loro configurazione. A seconda della situazione, si potranno verificare due casi: Insert a list of components with some instruction related useful for his configuration. Depending on the situation, you could see two cases: * Se il componente è stato riconosciuto in modo automatico, inserire il seguente testo: * Il component went recognized automatically, inser the following text: ''Automatically recognized'' {OK} * Il the device was not recognized at all or partially, please insert the steps for configuring it correctly. ||[[Immagine(Icone/Piccole/note.png,100,center)]] ||''Insert only those devices for which the functionality are virified.'' || == Video devices == == Audio devices == == Net interfaces == == Touchpad == == HotKey == == Bluetooth == = Other resources= * [%(website)s Official vendor site] ---- CategoryHardware""" installation-report-generator-0.2.3/irgenerator/core/__init__.py0000644000175300017540000000161011165175621024766 0ustar alessioalessio#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2008-2009 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . __all__ = ["report", "template", "configs", "backends", "plugcentral"] installation-report-generator-0.2.3/irgenerator/core/backends.py0000644000175300017540000000536411165175621025013 0ustar alessioalessio#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2008-2009 Alessio Treglia # Copyright (C) 2008 Andrea Gasparini # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . import thread, threading, time import irgenerator, irgenerator.util, irgenerator.globals from irgenerator.util.sysinfo import SystemInfo import template class WikiPage(threading.Thread): def __init__(self, obj,template_type='it'): threading.Thread.__init__(self) self.obj = obj self.hwconfig = obj.model self.template = self.choice_template(template_type) self.page = '\n'.join(["## Generated by Installation Report Generator %s" % irgenerator.globals.get_version(), self.template ]) def __get_the_page(self): peripherals = SystemInfo.get_lspci() cpuinfo = SystemInfo.get_cpuinfo() if self.hwconfig.release.strip() == '': self.hwconfig.release = SystemInfo.get_release() if self.hwconfig.cpu.strip() == '': self.hwconfig.cpu = SystemInfo.get_cpu() if self.hwconfig.memory.strip() == '': self.hwconfig.memory = SystemInfo.get_memory() codename = template.releases[self.hwconfig.release] self.page = self.page % {'vendor':self.hwconfig.vendor, 'model':self.hwconfig.model, 'memory':self.hwconfig.memory, 'cpu':self.hwconfig.cpu, 'release':self.hwconfig.release,'codename':codename, 'vga':self.hwconfig.vga, 'peripherals':peripherals,'cpuinfo':cpuinfo, 'website':self.hwconfig.website} time.sleep(0.5) def run(self): self.obj.activity_check = 1 self.__get_the_page() self.obj.activity_check = -1 self.obj.report_is_ready() #self.obj.update_buttons(button_forward='show') #self.obj.view['progressbar_wait'].set_text(_("Press «Forward»")) thread.exit() def choice_template(self,type): if 'it' in type : return template.notebook_it else: return template.notebook_en installation-report-generator-0.2.3/irgenerator/core/configs.py0000644000175300017540000000230311165175621024657 0ustar alessioalessio#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2008-2009 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . import os import irgenerator.globals config = {} try: configurations = open( os.path.join( os.path.expanduser('~'), irgenerator.globals.RCFILE ) ).read() for line in configurations.split('\n'): if line.startswith('#') or len(line) == 0 : continue values = line.split('=') config[ values[0].strip() ] = values[1].strip() except IOError: pass installation-report-generator-0.2.3/irgenerator/core/plugcentral.py0000644000175300017540000000562211165175621025556 0ustar alessioalessio#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2009 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . import os, sys import thread, threading, time import irgenerator.globals __doc__ = irgenerator.globals.__doc__ class VirtualClassInstanceError(Exception): def __init__(self): Exception.__init__(self, "can't create a virtual class instance") class VirtualMethodCallError(Exception): def __init__(self): Exception.__init__(self, "can't call a virtual method") class IPlugin: def __init__(self): if self.__class__.__name__ == "IPlugin": raise VirtualClassInstanceError def get_report(self): raise VirtualMethodError class AbstractPlugin(threading.Thread): def __init__(self, active_obj=None, hwconfig=None): if self.__class__.__name__ != 'AbstractPlugin': threading.Thread.__init__(self) self.obj = active_obj self.hwconfig = hwconfig else: raise VirtualClassInstanceError def run(self): raise VirtualMethodError def set_active_obj(self, active_obj): self.obj = active_obj def set_hwconfig(self, hwconfig): self.hwconfig = hwconfig class PluginCentral(object): from irgenerator.globals import PLUGINS_PATH plugins_list = set (map(lambda x: x.split('.')[0], os.listdir(PLUGINS_PATH))) loaded_plugins = dict() @staticmethod def load_plugin(name): plugin = None try: # check if it has just been loaded plugin = PluginCentral.loaded_plugins[name] except KeyError: # load the plugin sys.path.append(PluginCentral.PLUGINS_PATH) plugin_module = __import__(name) plugin = getattr(plugin_module, name + 'Plugin') PluginCentral.loaded_plugins[name] = plugin # and insert in to the dict sys.path.pop() return plugin # return the class @staticmethod def get_available_plugins(): plugins_description = dict() for name in PluginCentral.plugins_list: plugin = PluginCentral.load_plugin(name) if plugin.enabled: plugins_description[name] = plugin.description return plugins_description installation-report-generator-0.2.3/irgenerator/core/report.py0000644000175300017540000000221511165175621024544 0ustar alessioalessio#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2008-2009 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . import irgenerator.globals import gtkmvc __doc__ = irgenerator.globals.__doc__ class HardwareConfiguration(gtkmvc.Model): __properties__ = { 'vendor' : '', 'model' : '', 'cpu' : '', 'memory' : '', 'vga' : '', 'release' : '', 'website' : ''} def __init__(self): gtkmvc.Model.__init__(self) installation-report-generator-0.2.3/irgenerator/ui/0000755000175300017540000000000011165175621022344 5ustar alessioalessioinstallation-report-generator-0.2.3/irgenerator/ui/__init__.py0000644000175300017540000000147111165175621024460 0ustar alessioalessio#!/usr/bin/env python # Copyright (C) 2008 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . __all__ = ["gtk_ui"] installation-report-generator-0.2.3/irgenerator/ui/gtk_ui.py0000644000175300017540000002361511165175621024207 0ustar alessioalessio#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2008-2009 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . try: import gtkmvc gtkmvc.require("1.2.1") except AssertionError: raise EnvironmentError, _("Missing PyGTK MVC") try: import pygtk pygtk.require20() except AssertionError: raise EnvironmentError, _("Missing PyGTK+") import gobject, gtk, gtk.glade, gtk.gdk import irgenerator, irgenerator.globals, irgenerator.core from irgenerator.core import report, backends from irgenerator.core.plugcentral import PluginCentral #from core import report, backends def progress_timeout(pbobj): if pbobj.activity_check == 1: pbobj.view['progressbar_wait'].pulse() elif pbobj.activity_check == 0: pbobj.view['progressbar_wait'].set_fraction(0.0) else: pbobj.view['progressbar_wait'].set_fraction(1.0) return True class MainWindowView(gtkmvc.View): def __init__(self, ctrl): gtkmvc.View.__init__(self, ctrl, irgenerator.globals.GLADE_MAIN_WINDOW) class AboutDialog(object): def __init__(self): glade_XML = gtk.glade.XML(irgenerator.globals.GLADE_ABOUT_DIALOG) self.__dialog = glade_XML.get_widget('about_dialog') self.__dialog.set_version(irgenerator.globals.get_version()) self.__dialog.set_license(irgenerator.globals.LICENSE) self.__dialog.set_icon_from_file(irgenerator.globals.LOGO_PNG) self.__dialog.set_logo(gtk.gdk.pixbuf_new_from_file(irgenerator.globals.LOGO_SVG)) self.__dialog.set_authors(['Alessio Treglia ', 'Installation Report Generator Developers http://launchpad.net/~irgenerator-developers']) def show(self): self.__dialog.run() self.__dialog.hide() class MainWindowCtrl(gtkmvc.Controller): def showMessageDialog(self, type, message_format): md = gtk.MessageDialog(flags=gtk.DIALOG_MODAL, buttons=gtk.BUTTONS_CLOSE,type=type,message_format=message_format) pixbuf = gtk.gdk.pixbuf_new_from_file(irgenerator.globals.LOGO_PNG) md.set_icon(pixbuf) md.run() md.destroy() def update_buttons(self, **show_buttons): for i in show_buttons: getattr(self.view[i], show_buttons[i])() def show_tab_intro(self): self.update_buttons(button_forward='show', button_back='hide', button_ok='hide', button_exit='hide', button_about='show') def show_tab_configuration(self): self.update_buttons(button_forward='show', button_back='show', button_ok='hide', button_exit='hide', button_about='hide') def show_tab_distribution(self): self.update_buttons(button_forward='show', button_back='show', button_ok='hide', button_exit='hide', button_about='hide') def show_tab_plugin(self): # just done :) self.update_buttons(button_forward='show', button_back='show', button_ok='hide', button_exit='hide', button_about='hide') def show_tab_wait(self): self.update_buttons(button_forward='hide', button_back='show', button_ok='show', button_exit='hide', button_about='hide') def show_tab_final(self): self.update_buttons(button_forward='hide', button_back='hide', button_exit='show', button_about='show') textview_content = self.report #self.wpage.page buf = gtk.TextBuffer() buf.set_text(textview_content) self.view['textview_final'].set_buffer(buf) def on_button_forward_clicked(self, widget, data=None): def goto_tab_configuration(): self.view['notebook'].next_page() self.show_tab_configuration() def goto_tab_distribution(): # validate informations entered by user if self.model.model.strip() == '' or self.model.vendor.strip() == '' or self.model.vga.strip() == '': self.showMessageDialog(type=gtk.MESSAGE_ERROR, message_format=_("You must fill vendor, model and vga fields.")) else: self.view['notebook'].next_page() self.show_tab_distribution() def goto_tab_plugin(): if not self.view['checkbutton_distribution_autodetect'].get_active(): for i in self.view['radiobutton_hardy'].get_group(): if i.get_active(): self.model.release = i.get_label().replace('Ubuntu', '').strip() break else: self.model.release = '' self.view['notebook'].next_page() self.show_tab_plugin() def goto_tab_wait(): self.view['notebook'].next_page() self.show_tab_wait() def goto_tab_final(): self.view['notebook'].next_page() self.show_tab_final() cur_page = self.view['notebook'].get_current_page() (goto_tab_configuration, goto_tab_distribution, goto_tab_plugin, goto_tab_wait, goto_tab_final)[cur_page]() def on_button_back_clicked(self, widget, data=None): cur_page = self.view['notebook'].get_current_page() (self.show_tab_intro, self.show_tab_configuration, self.show_tab_distribution, self.show_tab_plugin)[cur_page-1]() self.view['notebook'].prev_page() def on_button_ok_clicked(self, widget, data=None): self.update_buttons(button_back='hide', button_ok='hide') self.view['progressbar_wait'].set_text(_("Please wait...")) # Load plugin and run it self.backend = PluginCentral.load_plugin(self.selected_plugin)() self.backend.set_active_obj(self) self.backend.set_hwconfig(self.model) self.backend.start() def on_button_exit_clicked(self, widget, data=None): self.destroy(widget) def on_checkbutton_distribution_autodetect_toggled(self, widget, data=None): for i in self.view['radiobutton_hardy'].get_group(): (i.set_flags, i.unset_flags)[widget.get_active()](gtk.SENSITIVE) def on_combobox_plugin_changed(self, widget, data=None): self.selected_plugin = self.view['combobox_plugin'].get_active_text() self.view['combobox_plugin'].set_tooltip_text(self.available_plugins[self.selected_plugin]) def report_is_ready(self): """ Notices to the controller that the report is ready. """ self.report = self.backend.get_report() # get the report self.update_buttons(button_forward='show') # show the correct buttons configuration self.view['progressbar_wait'].set_text(_("Press «Forward»")) # changes pbar's status def destroy(self, widget, data=None): gobject.source_remove(self.timer) gtk.main_quit() def show(self): self.view['main_window'].show() def register_adapters(self): # L'introduzione degli adapters comporta # alcune modifiche nel file Glade. self.adapt("vendor") self.adapt("model") self.adapt("cpu") self.adapt("memory") self.adapt("vga") self.adapt("website") def register_view(self, view): gtkmvc.Controller.register_view(self, view) self.__setup_widgets() self.show_tab_intro() def on_button_about_clicked(self, widget, data=None): self.about_dialog.show() def property_vendor_value_change(self, model, old, new): self.view['laptoplabel'].set_text(' '.join([new,model.model])) def property_model_value_change(self, model, old, new): self.view['laptoplabel'].set_text(' '.join([model.vendor,new])) def property_cpu_value_change(self, model, old, new): if new.strip() == '': self.view['cpulabel'].set_markup(self.autodetect_str) else: self.view['cpulabel'].set_text(new) def property_memory_value_change(self, model, old, new): if new.strip() == '': self.view['memorylabel'].set_markup(self.autodetect_str) else: self.view['memorylabel'].set_text(new) def property_vga_value_change(self, model, old, new): self.view['vgalabel'].set_text(new) def property_website_value_change(self, model, old, new): self.view['websitelabel'].set_text(new) def property_release_value_change(self, model, old, new): if new.strip() == '': self.view['distributionlabel'].set_markup(self.autodetect_str) else: self.view['distributionlabel'].set_text(' '.join(['Ubuntu', new])) def __setup_widgets(self): # Set window icon self.view['main_window'].set_icon_from_file(irgenerator.globals.LOGO_PNG) # update available plugins list map(self.view['combobox_plugin'].append_text, self.available_plugins) self.view['combobox_plugin'].set_active(0) self.view['image_head'].set_from_file(irgenerator.globals.HEADER_PNG) def __init__(self, model): gtkmvc.Controller.__init__(self, model) self.timer = gobject.timeout_add(100, progress_timeout, self) self.activity_check = 0 #self.wpage = irgenerator.core.backends.WikiPage(self) ## Test plugin support self.available_plugins = PluginCentral.get_available_plugins() #self.__setup_widgets() self.selected_plugin = '' self.backend = None #PluginCentral.load_plugin('UbuntuItWiki')()#(self, self.model) self.report = None self.autodetect_str = _('Autodetect') self.about_dialog = AboutDialog() installation-report-generator-0.2.3/irgenerator/util/0000755000175300017540000000000011165175621022704 5ustar alessioalessioinstallation-report-generator-0.2.3/irgenerator/util/sysinfo.py0000644000175300017540000000477011165175621024760 0ustar alessioalessio#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2008-2009 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . import os, commands def get_raw_lsb_release(): return commands.getoutput('lsb_release -r') def get_raw_lshw(): return commands.getoutput('lshw') def get_raw_lspci(): return commands.getoutput('lspci') def get_raw_lshw(): return commands.getoutput('lshw') def get_raw_cpuinfo(): return commands.getoutput('cat /proc/cpuinfo') def get_cpuinfo(): return commands.getoutput('cat /proc/cpuinfo | grep "model name"') def _get_parsed_lshw(): lshw = [] raw_lshw = get_raw_lshw().split() for i in raw_lshw: # IT'S NEEDED TO BE ROOT! lshw.append(''.join(i.split(':'))) return lshw def get_vendor(): l = _get_parsed_lshw() for i in range(len(l)): if l[i] == 'vendor': return l[i+1] return None def get_product(): l = _get_parsed_lshw() for i in range(len(l)): if l[i] == 'product': return l[i+1] return None def get_release(): return get_raw_lsb_release().split()[1] def get_cpu(): return get_cpuinfo().split('\n')[0].split('\t: ')[1] def get_memory(): memory_tag_found = False l = _get_parsed_lshw() for i in range(len(l)): if l[i] == 'size' and memory_tag_found: return l[i+1] elif l[i] == '*-memory': memory_tag_found = True else: pass class SystemInfo(object): @staticmethod def get_lspci(): return get_raw_lspci() @staticmethod def get_cpuinfo(): return get_raw_cpuinfo() @staticmethod def get_cpu(): return get_cpu() @staticmethod def get_memory(): return get_memory() @staticmethod def get_release(): return get_release() installation-report-generator-0.2.3/irgenerator/util/__init__.py0000644000175300017540000000152711165175621025022 0ustar alessioalessio#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2008-2009 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . __all__ = ['sysinfo'] installation-report-generator-0.2.3/irgenerator/__init__.py0000644000175300017540000000161311165175621024041 0ustar alessioalessio#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2008-2009 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . import globals __doc__ = globals.__doc__ __all__ = ['main', 'globals'] installation-report-generator-0.2.3/irgenerator/main.py0000644000175300017540000000350511165175621023230 0ustar alessioalessio#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2008-2009 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . import pygtk, gtk, gtk.glade import locale, gettext import os, commands import optparse import irgenerator, irgenerator.globals import irgenerator.core.report, irgenerator.ui.gtk_ui __doc__ = irgenerator.globals.__doc__ LOCALE_PATH = irgenerator.globals.LANG_PATH locale.setlocale(locale.LC_ALL, '') for module in gtk.glade, gettext: module.bindtextdomain('installation-report-generator', LOCALE_PATH) module.textdomain('installation-report-generator') import __builtin__ __builtin__._ = gettext.gettext def main(): usage = (_("usage: %s [options]") % irgenerator.globals.SHORT_APPNAME) parser = optparse.OptionParser(usage=usage, version=' '.join([irgenerator.globals.SHORT_APPNAME,irgenerator.globals.get_version()])) (options, args) = parser.parse_args() # UI initialization m = irgenerator.core.report.HardwareConfiguration() c = irgenerator.ui.gtk_ui.MainWindowCtrl(m) v = irgenerator.ui.gtk_ui.MainWindowView(c) c.show() gtk.main() if __name__ == "__main__": main() installation-report-generator-0.2.3/irgenerator/globals.py0000644000175300017540000000700511165175621023726 0ustar alessioalessio#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2008-2009 Alessio Treglia # Copyright (C) 2008 Andrea Gasparini # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . AUTHOR = "Alessio Treglia" AUTHOR_EMAIL = "quadrispro@ubuntu.com" SHORT_APPNAME = "installation-report-generator" VERSION = (0,2,3) get_version = lambda: '.'.join(map(str, list(VERSION))) __doc__ = """\ This file is part of installation-report-generator installation-report-generator v%s - A simple application to help in the generation of the installation report of Ubuntu on laptops. Copyright © 2008-2009 Alessio Treglia 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. """ % get_version() LICENSE = """ 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, write to the Free Software \ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. """ MAINTAINER_MODE_ON = 0 APP_PATH = ("/usr/share/installation-report-generator/", "/home/alessio/Documenti/devel/0.2/")[MAINTAINER_MODE_ON] get_app_path = lambda x: ''.join([APP_PATH, x]) LANG_PATH = ("/usr/share/locale", get_app_path("po/"))[MAINTAINER_MODE_ON] GLADE_PATH = get_app_path("glade/") PIXMAPS_PATH = ("/usr/share/pixmaps/installation-report-generator/", get_app_path("images/"))[MAINTAINER_MODE_ON] PLUGINS_PATH = get_app_path("plugins/") GLADE_MAIN_WINDOW = ''.join([GLADE_PATH, 'main_window.glade']) GLADE_ABOUT_DIALOG = ''.join([GLADE_PATH, 'about_dialog.glade']) LOGO_PNG = ''.join([PIXMAPS_PATH, 'installation-report-generator.png']) LOGO_SVG = ''.join([PIXMAPS_PATH, 'installation-report-generator.svg']) HEADER_PNG = ''.join([PIXMAPS_PATH, 'header.png']) RCFILE = ".irgenerator.rc" installation-report-generator-0.2.3/misc/0000755000175300017540000000000011165175621020341 5ustar alessioalessioinstallation-report-generator-0.2.3/misc/installation-report-generator.1.gz0000644000175300017540000000411411165175621027040 0ustar alessioalessio @Iinstallation-report-generator.1Xms6_\B!Q{dLb{$Mَ!XV|o](MC=cXv˾{&B1"ÿSrHm6:rH9WFWb m,EҬD\;L7!G􄽭v:^v|âa^ݒÖW[^*cu9pZy$h&_55wUy Qn*8M-}ϫ̙rN'%44iyxD;fyCX'䱾wqIdZ{}K.*K_g(oEF ٰrF d*y,!gNBJ'w2©|-2 ie#~۔Vyp*A,ȮlkvI>{^jݎgiRz+jw1^iC)c4[x6j ;J :?pj,Y YX6 {:aT} Q߭ޏOwf2ŃMW`֬ l݅QDV2)!ԲF䪜Tv5qVXkB_cF,0e#~L y)]yY8mSdNU)5g䱃c>]t?&h/^]Nf/r;L8b?ˡ YhGRFɊ>Ǘ G!ohȇĕRh"XfʠHi1' qIrȥ2n5I/L]N$*Y|nsS9@^\jRDNuqy5OKϟ鯹M=Jd|EFڰVM,Ҵ 'Y^YB [$S|8]?M83lj8Y12+:|ʆdŋB=’4-?W4Lh1cWms)o 26s(t\g- h!b1Ht%4XT4d )ICa-*|Ș6{pҘ'6V̋&բ^_{908;l^Bf^AsCk42}yinstallation-report-generator-0.2.3/misc/installation-report-generator.desktop0000644000175300017540000000070511165175621027734 0ustar alessioalessio[Desktop Entry] Categories=GTK;System;Settings; Exec=installation-report-generator GenericName=Installation Report Generator Icon=installation-report-generator Name=Installation Report Generator Name[it]=Generatore di rapporto dell'installazione Comment=Collect installation data for support purposes Comment[it]=Colleziona dati dell'installazione per scopi di supporto Terminal=false Type=Application X-AppInstall-Package=installation-report-generator installation-report-generator-0.2.3/plugins/0000755000175300017540000000000011165175621021067 5ustar alessioalessioinstallation-report-generator-0.2.3/plugins/Hello.py0000644000175300017540000000415311165175621022507 0ustar alessioalessio#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2009 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . from irgenerator.util.sysinfo import SystemInfo from irgenerator.core.plugcentral import IPlugin, AbstractPlugin #if not _: # only for test purposes # _ = lambda x: x __version__ = (1,0) class HelloPlugin(IPlugin, AbstractPlugin): description = _("""This is an example plugin, don't use it for support purposes!""") enabled = False def __init__(self, active_obj=None, hwconfig=None): IPlugin.__init__(self) AbstractPlugin.__init__(self, active_obj, hwconfig) self.report = '\n'.join([ "Vendor: %(vendor)s", "Model: %(model)s", "CPU: %(cpu)s", "RAM: %(memory)s", "VGA: %(vga)s", "Release: %(release)s", "Website: %(website)s"]) def get_report(self): return self.report def run(self): self.obj.activity_check = 1 self.report = self.report % {'vendor':self.hwconfig.vendor, 'model':self.hwconfig.model, 'memory':self.hwconfig.memory, 'cpu':self.hwconfig.cpu, 'release':self.hwconfig.release,'vga':self.hwconfig.vga, 'website':self.hwconfig.website} self.obj.activity_check = -1 self.obj.report_is_ready() installation-report-generator-0.2.3/plugins/UbuntuItWiki.py0000644000175300017540000001725711165175621024060 0ustar alessioalessio#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2009 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . import thread, time import irgenerator.globals from irgenerator.util.sysinfo import SystemInfo from irgenerator.core.plugcentral import IPlugin, AbstractPlugin #if not _: # _ = lambda x: x # only for test purposes __version__ = (1,0) distributions = [ 'Ubuntu', 'Kubuntu', 'Xubuntu', 'Edubuntu', 'Ubuntu Studio' ] releases = { '9.04' : 'Jaunty Jackalope', '8.10' : 'Intrepid Ibex', '8.04' : 'Hardy Heron', # "end-of-the-line" for gutsy on April '09 # '7.10' : 'Gutsy Gibbon', '6.06' : 'Dapper Drake' } template = \ """#format wiki #LANGUAGE it [[BR]] ||[[BR]] |||| {*} '''Scheda tecnica'''||[[BR]] || ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Marca:'''||<#eae5da : 35%% style="border: medium none ;"(> %(vendor)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Modello:'''||<#eae5da : 35%% style="border: medium none ;"(> %(model)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Memoria RAM:'''||<#eae5da : 35%% style="border: medium none ;"(> %(memory)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Processore:'''||<#eae5da : 35%% style="border: medium none ;"(> %(cpu)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Scheda video:'''||<#eae5da : 35%% style="border: medium none ;"(> %(vga)s||<#eae5da : 15%% style="border: medium none ;">|| ||<#eae5da : 15%% style="border: medium none ;">||<#eae5da : 35%% style="border: medium none ;"(> '''Distribuzione utilizzata:'''||<#eae5da : 35%% style="border: medium none ;"(>Ubuntu %(release)s «%(codename)s» ||<#eae5da : 15%% style="border: medium none ;">|| ||[[BR]] ||[[BR]] ||[[BR]] || ||[[Immagine(NotebookModello/notebookprova.png,150,)]] ||In questa pagina è riportato il resoconto dell'installazione di '''Ubuntu %(release)s''' «'''%(codename)s'''» sul portatile '''%(vendor)s %(model)s'''.|| Inoltre verranno riportate le informazioni generali sul riconoscimento dell'hardware e i possibili metodi di installazione. = Installazione = = Rilevamento dell'hardware = == Dispositivi connessi == Per verificare il corretto rilevamento dell'hardware del portatile, digitare in un terminale il seguente comando: {{{ lspci }}} Il comando precedente restituirà una schermata simile alla seguente: {{{ %(peripherals)s }}} == Processore == Per visualizzare i dettagli sul processore, aprire in lettura il file `/proc/cpuinfo`, digitando in una finestra di terminale il seguente comando: {{{ cat /proc/cpuinfo }}} Il risultato sarà simile al seguente: {{{ %(cpuinfo)s }}} ||[[Immagine(Icone/Piccole/warning.png,100,left)]] ||'''I valori differiscono a seconda dei modelli di processori, qui si fa riferimento al ''%(cpu)s''.''' || = Configurazione dei componenti = Inserire un elenco dei componenti con le relative istruzioni utili alla loro configurazione. A seconda della situazione, si potranno verificare due casi: * Se il componente è stato riconosciuto in modo automatico, inserire il seguente testo: ''Riconosciuto/a automaticamente'' {OK} * Se il componente non è stato riconosciuto (o lo è stato soltanto parzialmente), indicare la procedura per configurarlo affinché venga rilevato correttamente. ||[[Immagine(Icone/Piccole/note.png,100,center)]] ||''Inserire solo i dispositivi il cui funzionamento è stato verificato.'' || == Scheda video == == Scheda audio == == Interfacce di rete == == Touchpad == == Tasti rapidi == == Bluetooth == = Ulteriori risorse = * [%(website)s Sito ufficiale del produttore] ---- CategoryHardware""" class UbuntuItWikiPlugin(IPlugin, AbstractPlugin): description = _("""This plugin contains the notebook template of \ Ubuntu Italian Community's wiki. Please submit your report to http://forum.ubuntu-it.org/index.php/board,46.0.html \ or http://qa.alessiotreglia.com""") enabled = True def __init__(self, active_obj=None, hwconfig=None): IPlugin.__init__(self) AbstractPlugin.__init__(self, active_obj, hwconfig) self.report = '\n'.join(["## Generated by Installation Report Generator %s" % irgenerator.globals.get_version(), template ]) def __get_the_page(self): peripherals = SystemInfo.get_lspci() cpuinfo = SystemInfo.get_cpuinfo() if self.hwconfig.release.strip() == '': self.hwconfig.release = SystemInfo.get_release() if self.hwconfig.cpu.strip() == '': self.hwconfig.cpu = SystemInfo.get_cpu() if self.hwconfig.memory.strip() == '': self.hwconfig.memory = SystemInfo.get_memory() codename = releases[self.hwconfig.release] self.report = self.report % {'vendor':self.hwconfig.vendor, 'model':self.hwconfig.model, 'memory':self.hwconfig.memory, 'cpu':self.hwconfig.cpu, 'release':self.hwconfig.release,'codename':codename, 'vga':self.hwconfig.vga, 'peripherals':peripherals,'cpuinfo':cpuinfo, 'website':self.hwconfig.website} time.sleep(0.5) def run(self): self.obj.activity_check = 1 self.__get_the_page() self.obj.activity_check = -1 self.obj.report_is_ready() #self.obj.update_buttons(button_forward='show') #self.obj.view['progressbar_wait'].set_text(_("Press «Forward»")) thread.exit() def get_report(self): return self.report installation-report-generator-0.2.3/po/0000755000175300017540000000000011165175621020024 5ustar alessioalessioinstallation-report-generator-0.2.3/po/es/0000755000175300017540000000000011165175621020433 5ustar alessioalessioinstallation-report-generator-0.2.3/po/es/LC_MESSAGES/0000755000175300017540000000000011165175621022220 5ustar alessioalessioinstallation-report-generator-0.2.3/po/es/LC_MESSAGES/installation-report-generator.mo0000644000175300017540000000123011165175621030547 0ustar alessioalessio,<PQdtranslator-creditsProject-Id-Version: installation-report-generator Report-Msgid-Bugs-To: FULL NAME POT-Creation-Date: 2009-01-21 19:11+0100 PO-Revision-Date: 2009-03-05 22:59+0000 Last-Translator: FULL NAME Language-Team: Spanish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Launchpad-Export-Date: 2009-04-02 01:00+0000 X-Generator: Launchpad (build Unknown) Launchpad Contributions: DiegoJ https://launchpad.net/~diegojromerolopez juancarlospaco https://launchpad.net/~juancarlospacoinstallation-report-generator-0.2.3/po/fr/0000755000175300017540000000000011165175621020433 5ustar alessioalessioinstallation-report-generator-0.2.3/po/fr/LC_MESSAGES/0000755000175300017540000000000011165175621022220 5ustar alessioalessioinstallation-report-generator-0.2.3/po/fr/LC_MESSAGES/installation-report-generator.mo0000644000175300017540000001000111165175621030543 0ustar alessioalessio#4/L *?N]0m5 0>P_n&*=: +" N[apx c q     C * CH A & - # = T h ~ %  2 7 M> &j 7  ! -9    # !" CPU:Distribution:Graphic card:Laptop:Memory:Website:Welcome to Installation Report Generator!AutodetectCopy and paste the following text in a new test page:Enter laptop details:Installation Report GeneratorLaptop configuration:M_emory size:Missing PyGTK MVCMissing PyGTK+Please wait...Press «Forward»Press «OK» to confirmProject's websiteSelect the distribution you are using:Select the template you would like to use:This is an example plugin, don't use it for support purposes!This plugin contains the notebook template of Ubuntu Italian Community's wiki. Please submit your report to http://forum.ubuntu-it.org/index.php/board,46.0.html or http://qa.alessiotreglia.comThis program will help you to gather information about your hardware and software configuration, in order to prepare a page for the Italian wiki. For more information about Ubuntu-it Wiki and Laptop section, visit http://wiki.ubuntu-it.org/Hardware/Notebook. Ubuntu 9.04Vendor's _website:You must fill vendor, model and vga fields._Auto-detect_CPU:_Graphic card:_Model:_Vendor:translator-creditsusage: %s [options]Project-Id-Version: installation-report-generator Report-Msgid-Bugs-To: FULL NAME POT-Creation-Date: 2009-01-21 19:11+0100 PO-Revision-Date: 2009-03-22 12:22+0000 Last-Translator: Bruno Patri Language-Team: French MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Launchpad-Export-Date: 2009-04-02 01:00+0000 X-Generator: Launchpad (build Unknown) CPU :Distribution :Carte graphique :Ordinateur portable :Mémoire :Site Web :Bienvenue dans le générateur de rapport d'installation !Détection automatiqueCopiez et collez le texte suivant dans une nouvelle page de test :Entrer les informations à propos de votre ordinateur portable :Générateur du rapport d'installationConfiguration de votre ordinateur portable :Quantité d_e mémoire :PyGTK MVC est manquantPyGTK+ est manquantVeuillez patienter...Cliquez sur « Suivant »Cliquez sur « OK » pour confirmerSite Web du projetSélectionnez la distribution que vous utilisez :Sélectionnez le modèle que vous souhaitez utiliser :Ceci est un exemple de greffon, ne l'utilisez pas dans un but d'assistance !Ce greffon contient le modèle d'ordinateur portable pour le wiki de la communauté Ubuntu italienne. Veuillez envoyer votre rapport à http://forum.ubuntu-it.org/index.php/board,46.0.html ou http://qa.alessiotreglia.comCe programme vous aidera à rassembler des informations sur votre configuration matérielle et logicielle, dans le but de préparer une page pour le wiki italien. Pour plus d'informations sur le wiki et la section portables de Ubuntu-it, visitez http://wiki.ubuntu-it.org/Hardware/Notebook. Ubuntu 9.04Site _Web du vendeur :Vous devez remplir les champs vendeur, modèle, et vga.Détection _automatique_CPU :Carte _graphique :_Modèle :_Vendeur :Launchpad Contributions: Bruno Patri https://launchpad.net/~bruno-patri Damien Haïkal https://launchpad.net/~damien-haikal Maijin https://launchpad.net/~maijin-liveutilisation : %s [options]installation-report-generator-0.2.3/po/it/0000755000175300017540000000000011165175621020440 5ustar alessioalessioinstallation-report-generator-0.2.3/po/it/LC_MESSAGES/0000755000175300017540000000000011165175621022225 5ustar alessioalessioinstallation-report-generator-0.2.3/po/it/LC_MESSAGES/installation-report-generator.mo0000644000175300017540000000766411165175621030575 0ustar alessioalessio#4/L *?N]0m5 0>P_n&*=: +" N[apx h t     =  C& "j (       ' E $[ 2 ? * 9![lr       # !" CPU:Distribution:Graphic card:Laptop:Memory:Website:Welcome to Installation Report Generator!AutodetectCopy and paste the following text in a new test page:Enter laptop details:Installation Report GeneratorLaptop configuration:M_emory size:Missing PyGTK MVCMissing PyGTK+Please wait...Press «Forward»Press «OK» to confirmProject's websiteSelect the distribution you are using:Select the template you would like to use:This is an example plugin, don't use it for support purposes!This plugin contains the notebook template of Ubuntu Italian Community's wiki. Please submit your report to http://forum.ubuntu-it.org/index.php/board,46.0.html or http://qa.alessiotreglia.comThis program will help you to gather information about your hardware and software configuration, in order to prepare a page for the Italian wiki. For more information about Ubuntu-it Wiki and Laptop section, visit http://wiki.ubuntu-it.org/Hardware/Notebook. Ubuntu 9.04Vendor's _website:You must fill vendor, model and vga fields._Auto-detect_CPU:_Graphic card:_Model:_Vendor:translator-creditsusage: %s [options]Project-Id-Version: installation-report-generator Report-Msgid-Bugs-To: FULL NAME POT-Creation-Date: 2009-01-21 19:11+0100 PO-Revision-Date: 2009-03-02 20:42+0000 Last-Translator: Alessio Treglia Language-Team: Italian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Launchpad-Export-Date: 2009-04-02 01:00+0000 X-Generator: Launchpad (build Unknown) CPU:Distribuzione:Scheda video:Notebook:Memoria:Sito web:Benvenuto nel generatore del rapporto di installazione!AutorilevamentoCopiare e incollare il seguente testo in una nuova pagina di prova:Inserisci i dettagli del notebook:Generatore del rapporto di installazioneConfigurazione notebook:Dimensione m_emoria:PyGTK MVC mancantePyGTK+ mancanteAttendere...Premere «Avanti»Premere «OK» per confermareSito web del progettoSelezionare la distribuzione in uso:Selezionare il modello che si desidera utilizzare:Questo é un plugin d'esempio, non usare per scopi di supporto!Questo plugin contiene il modello per i notebook del wiki della Comunità Italiana di Ubuntu. Si prega di inviare il proprio rapporto a http://forum.ubuntu-it.org/index.php/board,46.0.html o http://qa.alessiotreglia.comQuesto programma sarà d'aiuto nella raccolta di informazioni sulla propria configurazione hardware e software, al fine di preparare una pagina per il wiki italiano. Per ulteriori informazioni sul wiki di Ubuntu-it e sulla sezione Notebook, visitare http://wiki.ubuntu-it.org/Hardware/Notebook. Ubuntu 9.04Sito _web del produttore:È necessario riempire i campi produttore, modello e vga._Autorilevamento_CPU:Scheda _video:_Modello:_Produttore:Launchpad Contributions: Alessio Treglia https://launchpad.net/~quadrispro Francesco Baldini https://launchpad.net/~francesco-baldini Simone Oberti https://launchpad.net/~simone-obo Launchpad Contributions: Alessio Treglia https://launchpad.net/~quadrisprouso: %s [options]installation-report-generator-0.2.3/po/messages.po0000644000175300017540000000677511165175621022212 0ustar alessioalessio# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-01-21 19:11+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: irgenerator/main.py:43 #, python-format msgid "usage: %s [options]" msgstr "" #: irgenerator/ui/gtk_ui.py:25 msgid "Missing PyGTK MVC" msgstr "" #: irgenerator/ui/gtk_ui.py:31 msgid "Missing PyGTK+" msgstr "" #: irgenerator/ui/gtk_ui.py:100 msgid "You must fill vendor, model and vga fields." msgstr "" #: irgenerator/ui/gtk_ui.py:129 msgid "Please wait..." msgstr "" #: irgenerator/ui/gtk_ui.py:149 msgid "Press «Forward»" msgstr "" #: irgenerator/ui/gtk_ui.py:208 glade/main_window.glade:539 #: glade/main_window.glade:565 glade/main_window.glade:615 msgid "Autodetect" msgstr "" #: plugins/Hello.py:28 msgid "This is an example plugin, don't use it for support purposes!" msgstr "" #: plugins/UbuntuItWiki.py:119 msgid "" "This plugin contains the notebook template of Ubuntu Italian Community's " "wiki.\n" "\n" "Please submit your report to http://forum.ubuntu-it.org/index.php/board,46.0." "html or http://qa.alessiotreglia.com" msgstr "" #: glade/main_window.glade:9 msgid "Installation Report Generator" msgstr "" #: glade/main_window.glade:45 msgid "Welcome to Installation Report Generator!" msgstr "" #: glade/main_window.glade:58 msgid "" "This program will help you to gather information about your hardware and " "software configuration, in order to prepare a page for the Italian wiki.\n" "\n" "For more information about Ubuntu-it Wiki and Laptop section, visit http://" "wiki.ubuntu-it.org/Hardware/Notebook.\n" "\n" "\n" msgstr "" #: glade/main_window.glade:88 msgid "Enter laptop details:" msgstr "" #: glade/main_window.glade:126 msgid "_Graphic card:" msgstr "" #: glade/main_window.glade:151 msgid "Vendor's _website:" msgstr "" #: glade/main_window.glade:214 msgid "M_emory size:" msgstr "" #: glade/main_window.glade:227 msgid "_CPU:" msgstr "" #: glade/main_window.glade:240 msgid "_Model:" msgstr "" #: glade/main_window.glade:253 msgid "_Vendor:" msgstr "" #: glade/main_window.glade:287 msgid "Select the distribution you are using:" msgstr "" #: glade/main_window.glade:310 msgid "Ubuntu 9.04" msgstr "" #: glade/main_window.glade:386 msgid "_Auto-detect" msgstr "" #: glade/main_window.glade:425 msgid "Select the template you would like to use:" msgstr "" #: glade/main_window.glade:484 msgid "Laptop configuration:" msgstr "" #: glade/main_window.glade:527 msgid "Graphic card:" msgstr "" #: glade/main_window.glade:553 msgid "Memory:" msgstr "" #: glade/main_window.glade:579 msgid "CPU:" msgstr "" #: glade/main_window.glade:603 msgid "Website:" msgstr "" #: glade/main_window.glade:629 msgid "Distribution:" msgstr "" #: glade/main_window.glade:651 msgid "Laptop:" msgstr "" #: glade/main_window.glade:672 msgid "Press «OK» to confirm" msgstr "" #: glade/main_window.glade:702 msgid "Copy and paste the following text in a new test page:" msgstr "" #: glade/about_dialog.glade:14 msgid "Project's website" msgstr "" #: glade/about_dialog.glade:16 msgid "translator-credits" msgstr "" installation-report-generator-0.2.3/scripts/0000755000175300017540000000000011165175621021075 5ustar alessioalessioinstallation-report-generator-0.2.3/scripts/installation-report-generator0000755000175300017540000000012411165175621027016 0ustar alessioalessio#!/usr/bin/env python import irgenerator, irgenerator.main irgenerator.main.main() installation-report-generator-0.2.3/setup.py0000644000175300017540000000523411165175656021134 0ustar alessioalessio#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2008 Alessio Treglia # # This file is part of installation-report-generator. # # installation-report-generator 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. # # installation-report-generator 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 installation-report-generator. If not, see . from distutils.core import setup import irgenerator, irgenerator.globals from irgenerator.globals import * import os langs = ['it', 'es', 'fr'] def languages_path(): result = [] for i in langs: result.append(("/usr/share/locale/%s/LC_MESSAGES/"%i, ["po/%s/LC_MESSAGES/installation-report-generator.mo"%i])) return result setup(name = SHORT_APPNAME, version = '.'.join(map(str,VERSION)), description = 'A simple application to help in the generation of the installation report of Ubuntu on laptops.', author = AUTHOR, author_email = AUTHOR_EMAIL, url = 'http://www.alessiotreglia.com/installation-report-generator', license = 'GNU GPL v3', requires = ['pygtk', 'gtk', 'gtkmvc'], platform = ['Platform independent'], #scripts = [''], packages = ['irgenerator', 'irgenerator.core', 'irgenerator.ui', 'irgenerator.util'], data_files = [('/usr/share/pixmaps', ['images/installation-report-generator.png']), ('/usr/share/pixmaps/installation-report-generator', ['images/header.png', 'images/installation-report-generator.png', 'images/installation-report-generator.svg']), ('/usr/share/applications', ['misc/installation-report-generator.desktop']), ('/usr/share/man/man1', ['misc/installation-report-generator.1.gz']), ('/usr/share/installation-report-generator/glade', ['glade/main_window.glade', 'glade/about_dialog.glade']), ('/usr/share/installation-report-generator/plugins', ['plugins/UbuntuItWiki.py', 'plugins/Hello.py']), ('/usr/bin', ['scripts/installation-report-generator'])] + languages_path() )