Commit Graph
46 Commits
Author SHA1 Message Date
Vincent Jacques 41c2b94f95 Add a copyright and license notice (issue #16) 2012-06-03 19:56:33 +01:00
Vincent Jacques 5e725fcaeb Make generated code closer to correct code 2012-06-03 14:03:14 +02:00
Vincent Jacques d261b4ba46 Factorize checking of status 2012-06-03 11:33:37 +02:00
Vincent Jacques 76f05598f4 Use datetime where it makes sence (issue #41) 2012-06-02 08:28:34 +01:00
Vincent Jacques 1527a836b3 Structure more parameters
We will HAVE to reduce differences between generated
code and code that actualy works...
2012-06-01 21:16:42 +01:00
Vincent Jacques d6215894a4 Remove many useless conversions to string 2012-06-01 20:11:33 +01:00
Vincent Jacques 8b6d463cd9 Generate code for complex parameters
(+ find bug in Repository.create_commit with parents !)
2012-06-01 19:41:50 +01:00
Vincent Jacques b3fce397c0 Restore compatibility with Python 2.6
Remove:
- dict comprehensions
- unittest.TestCase.assertRaises with only one argument
2012-06-01 19:05:02 +01:00
Vincent Jacques 9954a3fd1b Manual implementation of typing of last parameters 2012-06-01 18:54:35 +01:00
Vincent Jacques 9f248338ff Refactor switches in templates: step 2 2012-06-01 18:04:25 +02:00
Vincent Jacques ca390879f0 Refactor switches in templates: step 1 2012-05-31 21:53:27 +01:00
Vincent Jacques 0cc1743b3c A litle bit more structure 2012-05-31 19:43:33 +01:00
Vincent Jacques 94b12a18f4 Acknowledge that some attributes/parameters are variant dictionaries 2012-05-31 19:12:10 +01:00
Vincent Jacques 71a5e9751d Refactor assertions about parameters 2012-05-31 18:27:54 +01:00
Vincent Jacques 6f564e5aca Use a special value for not set attributes and parameters 2012-05-31 18:04:22 +02:00
Vincent Jacques ccf59e62af Make 'isCompletable = True' the default case 2012-05-31 18:07:03 +02:00
Vincent Jacques 3837e6b418 Factorize repeated code in base class GithubObject 2012-05-30 20:40:14 +01:00
Vincent Jacques 61e2fa67ac Only one class per file 2012-05-30 19:07:55 +01:00
Vincent Jacques da89613a8d Remove _identity from json description 2012-05-30 19:03:12 +02:00
Vincent Jacques 7248e66831 Check HTTP status on all requests 2012-05-30 18:58:18 +02:00
Vincent Jacques 12d427464f Remove the notion of ImmediateCompletion 2012-05-30 19:00:37 +02:00
Vincent Jacques 7a622975d6 Improve type asserts on lists 2012-05-30 18:43:29 +02:00
Vincent Jacques ca6e7ef9ce Automatic implementation of url_parameters 2012-05-29 19:00:57 +01:00
Vincent Jacques d57aea6a89 Split template for GithubObject 2012-05-29 18:43:20 +01:00
Vincent Jacques eaa1bbe268 Revert "Remove one argument of Requester.request"
We will need it soon for all url parameters not yet used

This reverts commit 9fa4e8ff5e.

Conflicts:

	codegen/templates/GithubObject.MethodBody.DoRequest.py
		src/github/Organization.py
2012-05-29 18:10:12 +02:00
Vincent Jacques d6835ff949 dos2unix 2012-05-28 18:29:08 +02:00
Vincent Jacques c4bebd9a11 Assert types of parameters of methods of Repository and RepositoryKey 2012-05-27 15:59:49 +01:00
Vincent Jacques 49d86183a9 Start to assert the type of the arguments 2012-05-27 15:46:30 +01:00
Vincent Jacques 9fa4e8ff5e Remove one argument of Requester.request 2012-05-27 15:10:44 +01:00
Vincent Jacques a12b56492f Fix many attribute types 2012-05-27 14:58:06 +01:00
Vincent Jacques b419859573 Generate code for parent url 2012-05-27 13:44:01 +01:00
Vincent Jacques 075d3d961d Generate code for url quoting 2012-05-27 13:30:38 +01:00
Vincent Jacques 4bf2e31da7 Generate correct code for variadic complex parameter 2012-05-27 13:13:29 +01:00
Vincent Jacques 5aceaa19f2 Reduce differences between generated code and correct code 2012-05-27 13:06:50 +01:00
Vincent Jacques 306e43bbff Move 'todo's out of generated code 2012-05-27 12:24:21 +01:00
Vincent Jacques 855cc5dbd6 Do not assert that we know all the attributes we receive 2012-05-27 12:19:45 +01:00
Vincent Jacques 93dcae5cf2 Remove branch coverage for optional attributes (temporary?) 2012-05-27 08:37:17 +01:00
Vincent Jacques a39af6a0aa Improve test coverage 2012-05-26 21:53:55 +01:00
Vincent Jacques ca974699b0 Retrieve rate limiting information 2012-05-21 13:15:34 +02:00
Vincent Jacques 799d22a39e Remove __completed from non-completable classes 2012-05-19 07:08:25 +01:00
Vincent Jacques c75cb64d90 Improve message when we check that we know all attributes 2012-05-12 15:43:38 +02:00
Vincent Jacques 6945921c52 Use NoCompletion when creating an object from the result of a request 2012-05-12 15:29:15 +02:00
Vincent Jacques a72d8b1358 Improve management of lazy completion 2012-05-12 15:28:07 +02:00
Vincent Jacques 350c7a3726 Remove repeated code 2012-05-12 15:00:23 +02:00
Vincent Jacques dc1a8f8c9d Assert that we know all attributes
To be removed before release, since this would break the application if
github.com adds a new attribute
2012-05-12 13:20:32 +02:00
Vincent Jacques d631e83b79 Move files around 2012-05-10 18:10:17 +02:00