| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| """ |
| The CentOS Artwork Repository Toolbox (art) command line interface. |
| |
| This script provides a command line interface (cli) to operate local |
| working copies of CentOS Artwork Repository. Most of the actions this |
| script can perform relay on CentOS Artwork Repository files and |
| directories standard structure. The CentOS Artwork Repository standard |
| structure is described inside the `Repo' class as docstrings. The |
| `Repo' class is available in the repository.py file. |
| |
| In order to make this script available along CentOS Artwork Repository |
| you need create a link to the file art-cli.py inside /home/centos/bin/ |
| directory. For example: |
| |
| $ mkdir /home/centos/bin/ |
| $ cd /home/centos/bin/ |
| $ ln -s /home/centos/artwork/trunk/Scripts/Python/centos-art-cli.py centos-art |
| |
| Note that we used the `centos' lower-case word as username. This is a |
| convention[1] that let us create a common absolute path for people to |
| store the CentOS Artwork Repository working copy. |
| |
| [1:] Absolute paths are used Inkscape to import raster images |
| inside SVG files--well, to link them really. If everyone |
| downloading a working copy of CentOS Artwork Repository uses its |
| one absolute path there is no way to garantee that all images |
| imported inside SVG design templates will be displayed correctly |
| in all downloaded working copies. That is because, there is no way |
| to garantee that everyone's working copy is placed in the same |
| absolute path the raster image was imported the first time. So the |
| absolute path name convenction is needed. |
| |
| The centos-art-cli.py script let you to: |
| |
| * Render images and texts using common design models and |
| translations. |
| |
| * Navigate the repository structure. |
| |
| * Get information about repository structures. |
| |
| * Test themes. |
| |
| """ |
| |
| |
| from framework import Framework |
| |
| def main(): |
| fw = Framework() |
| fw.list('Brands') |
| |
| if __name__ == '__main__': main() |