Commit graph

18 commits

Author SHA1 Message Date
Santiago Torres
30b97a8a7a Changed the logger tag
tuf.devtools -> tuf.developer_tool
2014-04-04 14:08:17 -04:00
Santiago Torres
1a353c08d4 Added support for project names.
Project name is now an argument of the project constructor and the
create_new project function.

The project_name field defines the rolename to add to the roledb, the
filename to create and adds a new field to the project.cfg file.
2014-04-03 14:00:33 -04:00
Santiago Torres
a16dd6095e file open is now done with the "with" statement
The with statement is a more "native" way to do the same thing, it is
done that way not.
2014-04-02 23:12:38 -04:00
Santiago Torres
99b2ad40a7 release_signable was renamed to project_signable
release_signable didn't make too much sense in such context and was
renamed to a more accurate and descriptive variable name.
2014-04-02 23:11:29 -04:00
Santiago Torres
9cb1181bc3 Updated constant definitions, they are imported from tuf.developer_tool
This makes it easier to propagate design changes through the two
different tools.

A tuf.constants module would be a good addition to this.
2014-04-02 23:09:35 -04:00
Santiago Torres
561e85959b Removed a local definition of the prompt and get_password methods
The local _prompt and _get_password methods were deleted in order to use
the version contained in the tuf.repository_tools. The main motivation
of this change is to provide code reutilization
2014-04-01 23:43:24 -04:00
Santiago Torres
1a9f9eb0be updated method descriptions in the comment blocks 2014-04-01 14:53:08 -04:00
Santiago Torres
4a35d53d2f Added a comment block describing the project.cfg file 2014-04-01 14:52:23 -04:00
Santiago Torres
6337f59a2e Fixed whitespace errors between methods. 2014-04-01 14:48:06 -04:00
Santiago Torres
036ac692a6 fixed references to the repository tool in comments. 2014-04-01 14:45:56 -04:00
Santiago Torres
ae3b3a01d6 Removed commented lines and fixed minor comments
Some unused methods were commented for testing, they shouldn't appear in
upstream
2014-04-01 13:49:41 -04:00
Santiago Torres
5495331d81 Updaated the module name in the comments, fixed comment references 2014-04-01 13:40:40 -04:00
Santiago Torres
ff9fdd833b The _check_if_partial_loaded method was renamed
The repository tool now provides a method called
"_metadata_is_partially_loaded" to provide the same functionality, the
return type changed so the flow of this module had to adapt to the new
function:

_check_if_partial_loaded() -> updated the roleinfo data as an effect

_metadata_is_partially_loaded -> returns a boolean and forces us to
update the roleinfo data.
2014-04-01 12:51:33 -04:00
Santiago Torres
0c6918b702 Updated the load project method to include the Targets inherittance
The load_project contained statements that called the previously
included "targets" instance, since we now inherit Targets, we don't
require them, the statements were updated the following way:

self._targets

to a plain:

self
2014-03-31 20:44:53 -04:00
Santiago Torres
cace6820de Added soft wrappers for the add_verification_key method
The add verification key method now prohibits the ability to have more
than one key in the Project role, however, delegations do support
having more.

This is the suggested behavior as of this version, removing these two
wapper functions would prevent to have this limitation but would require
the extension of the write_project_configuration function
2014-03-31 19:10:02 -04:00
Santiago Torres
a6525ee985 Updated the developer tool to inherit the Targets object
The motivation behind this change is code reutilization and quick
updating. Most of the methods called in the old version of the developer
tool immediate to the targets counterpart. The calling convention now
resembles more objective intended without losing any functionality and
with automatic updates from any changes in the repository_tool.

The project object used to have a Targets object contained. This did
make more sense in a conceptual way (a project could have had more roles
than only targets). However, after reviewing the functionality of the
tool, it seems clear that the best way to adopt the changes
automatically is to inherit the targets object.

Soft wrappers are still to be made, we need to override the
add_verification_key method to in order to avoid having more than one
key on the project.
2014-03-31 18:47:56 -04:00
Santiago Torres
0b72d27599 changed the prefix argument in create project to location_in_repository
This is intended to make the function more user-friendly by having a
more self-explanatory argument name.
2014-03-24 13:41:30 -04:00
Santiago Torres
4f5f2c68b0 Renamed devtools to the appropriate name 2014-03-16 15:36:42 -04:00
Renamed from tuf/devtools.py (Browse further)