Commit Graph

1528 Commits

Author SHA1 Message Date
lxnay
380f57b523 Entropy/DistributionUGCInterface:
- when inserting an image, verify that is really an image
- add flood control feature when inserting a document (comment, file, image, video...)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2403 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-18 08:50:57 +00:00
lxnay
836eadc822 Entropy/entropyTools:
- add functions useful to verify if a file is an image (supported png, jpeg, bmp, gif)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2402 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-18 08:49:07 +00:00
lxnay
046bcd66ee Entropy/entropyTools:
- parallelTask: make nuke() exception configurable


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2398 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-17 13:03:07 +00:00
lxnay
f464b54255 Entropy/UGCClientInterface:
- remove debugging output on send_document_autosense()
Entropy/UGCCacheInterface:
- add multithreading lock handling to clean_* functions
- add clear_cache() method
- improve alldocs cache handling


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2387 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-16 21:02:40 +00:00
lxnay
a093dc1734 Entropy/entropyConstants:
- add repoid key to etpConst['server_repositories']


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2386 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-16 20:59:57 +00:00
lxnay
051de39d8a Entropy/entropyConstants:
- add document types descriptions (singular form)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2381 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-15 16:22:35 +00:00
lxnay
bc52cdeb02 Entropy/entropyTools:
- add kill method to parallelTask class


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2380 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-15 16:21:46 +00:00
lxnay
52a16c2f67 Entropy/outputTools:
- make readtext() plopping proper unicode strings

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2379 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-15 16:21:09 +00:00
lxnay
9af2dd6de9 Entropy/UGCCacheInterface:
- add UGCClientInterface.get_docs() cache infrastructure
Entropy/Socket/OpenSSL:
- add SysCallError exception handling
Entropy/entropyConstants:
- add ugc types description


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2375 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-07 19:50:20 +00:00
lxnay
a9b49c4e91 Entropy/RepoInterface:
- fix a typo in ____construct_paths() and add 'profile.link' item
- run_sync(): remove self.Entropy.update_ugc_cache() call, not needed
Entropy/EquoInterface:
- loadRepositoryDatabase(): verify that repository id really exists
Entropy/DistributionUGCCommands:
- fix commands syntax
Entropy/UGCCacheInterface:
- support multi-threaded mode
- improve performance
- get_package_downloads(): return 0 instead of None in case of errors
- get_downloads_cache(), get_vote_cache(): check against pickle load exceptions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2368 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-05 18:33:22 +00:00
lxnay
6f91fbdc5a Entropy/DistributionUGCInterface:
- get_ugc_alldownloads(): force values to int()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2366 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 15:20:30 +00:00
lxnay
703656912a Entropy/UGCCacheInterface:
- new general purpose UGC caching infrastructure to speed up iterations when no up-to-date data is needed
Entropy/UGCClientInterface:
- move every caching related function to the new UGCCacheInterface class
- add some caching stuff
- make is_repository_eapi3_aware() faster
Entropy/DistributionUGCInterface:
- fix an error inside the query of get_ugc_alldownloads()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2365 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 15:13:45 +00:00
lxnay
f62a9f87c2 Entropy/SSL:
- remove debugging output
- improve SSL support by ironing out its socket interface


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2364 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 12:20:42 +00:00
lxnay
76b85350f8 Entropy:
testing SSL on big transfers


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2363 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 11:48:20 +00:00
lxnay
bf0c175b9d Entropy:
testing SSL on big transfers


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2362 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 11:42:49 +00:00
lxnay
2082bce726 Entropy:
testing SSL on big transfers


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2361 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 11:39:12 +00:00
lxnay
1493014901 whoops
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2360 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 11:04:55 +00:00
lxnay
7a023dd7d0 Entropy/SocketHostInterface:
- add some debugging code
- try to split stream into multiple chunks on transmit()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2359 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 11:03:22 +00:00
lxnay
0695e72048 Entropy/SocketHostInterface:
- add support for noop string
- add some testing code


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2358 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 10:54:50 +00:00
lxnay
f34d98ca3c Entropy/SocketHostInterface:
- improve transmitter on SSL


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2357 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 10:37:32 +00:00
lxnay
0a4edd8b28 Entropy/SocketHostInterface:
- workaround pyOpenSSL bug on sendall, connection tends to die, use send
Entropy/UGCClientInterface:
- improve performance of ugc_get_allvotes() and ugc_get_alldownloads()
- fix a bug with the selection of the connection port when ssl_connection is disabled


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2356 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-31 10:22:28 +00:00
lxnay
6bbed4e2e3 Entropy/misc:
- cosmetic changes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2350 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-27 20:37:35 +00:00
lxnay
686ea56525 Entropy/DistributionUGCInterface:
- workaround mysql library issue when using SQL statement 'IN' in a single item list


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2349 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-27 18:47:25 +00:00
lxnay
3718292f7a Entropy/DistributionUGCInterface:
- cast list to tuple in queries using SQL 'IN' statement


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2348 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-27 18:39:03 +00:00
lxnay
3cbdcd53b1 Entropy/UGC Server Interface:
- move extra metadata collection to its own function DistributionUGCInterface._get_ugc_extra_metadata()
- make every single data retrieval function in DistributionUGCInterface to use _get_ugc_extra_metadata()
Entropy/RepositorySocketClientInterface:
- add separated show_progress bool to enable file transfer progress output while keeping other messages disabled through quiet
Entropy/UGCClientInterface:
- add show_progress parameter
- add helper function send_document_autosense() to ease document upload
- add helper function remove_document_autosense() to ease document removal


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2347 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-27 17:59:36 +00:00
lxnay
d4f1f88da2 Entropy/DistributionUGCInterface:
- get_ugc_metadata_doctypes(): provide URL for uploaded items


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2346 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-27 08:45:44 +00:00
lxnay
d033fcb154 Entropy/UGC Client/Server Interface
- implement new command ugc:get_documents_by_identifiers to allow retrieval of documents through their identifiers


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2345 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 18:35:58 +00:00
lxnay
2fdfb3a9b3 Entropy/DistributionUGCInterface:
- get_ugc_metadata_doctypes(): retrieve more information regarding each item


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2344 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 17:00:26 +00:00
lxnay
06eb4c661b Entropy/UGC Server Interface:
- move keywords and pkgkey retrieval to DistributionUGCInterface.get_ugc_metadata_doctypes_by_identifiers


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2343 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 16:09:13 +00:00
lxnay
8d26e98678 Entropy/UGC Server Interface:
- _get_generic_doctypes_by_identifiers(): get keywords and package key too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2342 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 16:05:23 +00:00
lxnay
a7537a0d7b Entropy/UGC Server Interface:
- add two commands to allow text-based documents retrieval by their identifiers (iddoc)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2341 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 13:31:17 +00:00
lxnay
3b425c3b41 Entropy/UGC Interface:
- move UGC package vote range to etpConst['ugc_voterange']
- add voting support to Equo


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2340 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 13:00:10 +00:00
lxnay
76c16149ad Entropy/Server Interface:
- export binary packages expiration days setting to server.conf


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2339 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 11:29:25 +00:00
lxnay
a6b628d93d Entropy/EquoInterface:
- when rewriting grub.conf pay attention to the encoding


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2338 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 11:03:58 +00:00
lxnay
e3cfc4a298 Entropy/EquoInterface:
- do not allow to set an invalid database compression format on addRepository or during constants init


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2337 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 11:00:54 +00:00
lxnay
dd33480926 Entropy/ServerInterface:
- initialize_server_database(): fix revision handling on updateProgress
Entropy/Database Interface:
- addPackage(): avoid to have issues with missing revision key in etpData when revision != -1
Entropy/Equo:
- handle SPMError exceptions
Entropy/Equo/rescue:
- filter out broken atoms when running gentoosync


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2335 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 10:51:24 +00:00
lxnay
258ea65cec Entropy/PortageInterface:
- handle exceptions on Portage classes instantiation
- add a new exception called SPMError


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2334 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 10:33:51 +00:00
lxnay
a19306ba36 Entropy/TriggerInterface:
- remove duplicated functions and routines related to /etc/init.d services handling


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2332 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 10:23:56 +00:00
lxnay
c81c375183 Entropy:
- updated TODO
Entropy/UGC Client Interface:
- implement login/logout and first data retrieval function (comments)
- implement Equo interface to Entropy UGC
Entropy/Server Interface:
- handle repository compilator/Portage information per branch


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2330 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-22 18:43:24 +00:00
lxnay
c5d51eeac2 Entropy/UGCClientAuthStore:
- ignore IOError on setup_permissions()

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2329 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-02 15:39:32 +00:00
lxnay
b7a4a644e0 Entropy/UGCClientAuthStore:
- also handle IOError on parse


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2328 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-02 15:36:50 +00:00
lxnay
c847942b57 Entropy/UGC:
- break SQL schema (hopefully for the last time) to ease the retrieval of username related to userid
- add get_username method in the authenticator classes
- fix some typo errors


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2327 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-02 15:27:10 +00:00
lxnay
5c13b054fa Entropy/DistributionUGCInterface/DistributionUGCCommands:
- add store_url support, in this way it is possible to return a valid URL to client after having submitted a generic file (such as images, archives etc)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2324 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-02 12:51:58 +00:00
lxnay
fd8ca2644c Entropy/outputTools:
- improve askQuestion maximum supported responses

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2321 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-01 17:10:42 +00:00
lxnay
392bfb4c33 Entropy/UGCClientInterface:
- add remove_file, remove_image, remove_youtube_video methods


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2320 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-01 17:09:47 +00:00
lxnay
75276cb9a4 Entropy/DistributionUGCCommands:
- add remove_file, remove_image, remove_youtube_video commands
- EntropyRepositorySocketClientCommands:
- add support for remove_file, remove_image, remove_youtube_video commands


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2319 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-01 09:07:27 +00:00
lxnay
0a92e2a499 Entropy/TriggerInterface:
- trigger_ebuild_postremove(): handle EOFError exceptions when setting up ebuild environment


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2318 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-31 16:48:03 +00:00
lxnay
7320a093a4 Entropy/EntropyRepositorySocketClientCommands:
- on convert_stream_to_object() handle zlib errors too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2316 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-31 08:33:55 +00:00
lxnay
6e2bd52bb9 Entropy/entropyTools:
- removePackageOperators(): avoid crashing with malformed atom strings


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2315 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-31 08:29:08 +00:00
lxnay
2867d436af Entropy/DistributionUGCInterface:
- fix insert_generic_file() on destination path creation


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2314 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-31 08:10:29 +00:00