volpino
a85f7e71c1
euscanwww: Version.version_type -> Version.vtype
...
Signed-off-by: volpino <fox91@anche.no>
2012-07-17 12:30:55 +02:00
volpino
c4577c5279
euscanwww: Store ebuild and metadata path in Version
...
Uses getRepositoryPath, change if possible
Signed-off-by: volpino <fox91@anche.no>
2012-07-17 11:36:59 +02:00
volpino
b7d772dfc3
euscanwww: Tests unwatch too
...
Signed-off-by: volpino <fox91@anche.no>
2012-07-14 16:43:12 +02:00
volpino
66db910583
euscanwww: Tests for watch packages/categories/maintainers/herds
...
Signed-off-by: volpino <fox91@anche.no>
2012-07-14 16:22:02 +02:00
volpino
c0aefdef29
euscanwww: Started writing tests for favourite stuff but login fails
...
Signed-off-by: volpino <fox91@anche.no>
2012-07-14 15:29:42 +02:00
volpino
bd2af29ff7
euscanwww: Basic user dashboard
...
Signed-off-by: volpino <fox91@anche.no>
2012-07-14 13:56:21 +02:00
volpino
aa09812f6f
euscanwww: Migration for handling ebuild and metadata paths
...
Signed-off-by: volpino <fox91@anche.no>
2012-07-14 13:55:56 +02:00
volpino
fab19a6bfc
euscanwww: Watch/unwatch packages, categories, maintainers, overlays
...
Added a button for watch/unwatch and a dashboard with user selected
stuff only
Signed-off-by: volpino <fox91@anche.no>
2012-07-10 16:15:06 +02:00
volpino
02be58024a
euscanwww: Minor fixes
...
Signed-off-by: volpino <fox91@anche.no>
2012-07-09 18:15:34 +02:00
volpino
379a6d2942
euscanwww: Adding a problem reporting form in package page
...
Signed-off-by: volpino <fox91@anche.no>
2012-07-09 14:29:42 +02:00
volpino
03cf3b90a4
euscanwww: Upgraded to Celery 3.0 and fixed scan_portage
...
Fixed TaskSet calls and synchronous stuff. Everything should be
deadlock safe
Signed-off-by: volpino <fox91@anche.no>
2012-07-07 18:09:14 +02:00
volpino
3be52a710c
euscanwww: Changing RefreshPackageQuery.query to ForeignKey
...
Signed-off-by: volpino <fox91@anche.no>
2012-07-07 15:46:35 +02:00
volpino
a6b215cec9
euscanwww: Fixed tasks to work with processing.scan and processing.misc
...
Fixed tasks to work with processing.* changes.
Moved periodic tasks config to settings.py using CELERYBEAT_SCHEDULE
Signed-off-by: volpino <fox91@anche.no>
2012-07-07 15:13:59 +02:00
Corentin Chary
bdff6b7c63
euscanwww/scan_portage: try using gentoopm and fix slots
...
gentoopm is still slower with portage backend, will try pkgcore
backend later.
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-07-03 10:56:14 +02:00
Corentin Chary
8062fddc23
euscanwww: move processing to scan and misc, enhance update_portage_tree
...
update_portage_tree() now:
- watch stderr and stdout for each command
- use layman command instead of layman API for sync because
layman API doesn't work when stdout or stderr is not a real file
(we could probably work around that with pipes and epoll)
- use egencache instead of emerge to generate cache
- export PORTAGE_CONFIGROOT, ROOT, EIX_CACHEFILE etc.. so they
are used everywhere
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-07-02 18:16:59 +02:00
Corentin Chary
ba805536ad
euscanwww: add --category to scan_metadata, remove homepage and description
...
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-07-02 11:19:49 +02:00
Corentin Chary
0e32ccf46e
euscanwww: make it work with MySQL
...
unique indexes length must be <= 255
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-07-02 09:44:00 +02:00
Corentin Chary
093cb4da47
euscanwww/scan_portage: fixes and add --category
...
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-07-02 09:43:31 +02:00
volpino
71f71c5b58
euscanwww: fixed commit_on_success
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-30 19:21:43 +02:00
volpino
f43ab3ae3d
euscanwww: fixing merge
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-30 18:36:45 +02:00
volpino
94b814481b
euscanwww: adding elem.clear() to prevent memory leaking in xml parsing
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-30 11:03:24 +02:00
volpino
145388a5e5
euscanwww: scan_upstream_all_task scans in randomized order
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-30 10:50:17 +02:00
volpino
c6f5fb0b7c
euscanwww: reverting removed purge_packages in scan_package_task
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-30 10:42:26 +02:00
volpino
c184628f48
Merge branch 'master' of https://github.com/iksaif/euscan
...
Conflicts:
euscanwww/djeuscan/processing/scan_portage.py
Signed-off-by: volpino <fox91@anche.no>
2012-06-30 10:39:18 +02:00
volpino
0c5a0ac36f
euscanwww: Using incremental xml parsing for portage scanning
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-30 10:28:03 +02:00
Corentin Chary
9e6f885f89
djeuscan/scan_portage: fix purge-packages and purge-versions
...
purge-packages: purge package that are not found in the tree
purge-versions: purge versions that are not found in the tree
Also, only purge versions of packages specified on the command line
when called without --all.
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-06-30 10:19:07 +02:00
volpino
a83e4de59d
euscanwww: user refresh package should not purge packages
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-30 09:35:31 +02:00
volpino
fc7f929038
euscanwww: Fixed broken tasks
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-29 17:25:45 +02:00
volpino
e9c03fbded
euscanwww: Fixed CSS stylesheet
...
Added Twitter Bootstrap and tweaked the layout to use the grid layout
Signed-off-by: volpino <fox91@anche.no>
2012-06-29 14:22:01 +02:00
volpino
951624759a
euscanwww: Fixing tasks
...
Fixing minor bugs in tasks.py and little related stuff
Signed-off-by: volpino <fox91@anche.no>
2012-06-27 10:15:30 +02:00
volpino
1ae2dcba50
euscanwww: settable options for _run_in_chunks()
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-26 18:31:35 +02:00
volpino
8fdac1014c
euscanwww: Adding infos to EuscanResults
...
Now we store metadata, output from euscan is cleaned from colors
encoding when outputting json
Signed-off-by: volpino <fox91@anche.no>
2012-06-26 18:13:28 +02:00
volpino
d7e0a4ca16
euscanwww: Tweaked processing.scan_portage to use eix --xml
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-26 17:16:02 +02:00
volpino
f9c9a4bfd8
euscanwww: added scan_package task
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-22 11:40:40 +02:00
volpino
779ccdf5d3
euscanwww: use logging in djeuscan.processing
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-22 11:31:15 +02:00
volpino
9bfd728d4f
euscanwww: Moved business logic to djeuscan.processing
...
Moved stuff from management commands to djeuscan.processing
Signed-off-by: volpino <fox91@anche.no>
2012-06-22 09:32:39 +02:00
volpino
6cc892717b
Merge branch 'master' of https://github.com/iksaif/euscan
2012-06-14 10:21:37 +02:00
volpino
11c8422c9b
euscanwww: Reset password
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-14 10:21:01 +02:00
volpino
34d3bd714d
euscanwww: Watched herds/maintainers/categories panel
...
* Refactored templates and templatetags
* Added unfavourite views
* Added button to favourite/unfavourite package
* Panel for showing favourited objects
Signed-off-by: volpino <fox91@anche.no>
2012-06-14 10:03:49 +02:00
volpino
11c234f7f7
euscanwww: Added account profile page
...
* Added an account profile page
* Added a button to favourite packages
* Implemented models to favourite categories, herds, maintainers but
still to implement
Signed-off-by: volpino <fox91@anche.no>
2012-06-12 15:27:28 +02:00
volpino
bd971a7da0
euscanwww: When scanning upstream output object was never cleaned
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-12 14:55:58 +02:00
volpino
bd9af90ff6
euscanwww: Removed useless purge tasks, some error handling
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-12 13:05:58 +02:00
volpino
d34a0c4992
euscanwww: included django-registration and tweaked templates
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-09 17:12:09 +02:00
volpino
4246c544ad
euscanwww: bug found, celery timeouts on join. Commented out
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-09 16:12:17 +02:00
volpino
9cddc82808
Merge branch 'master' of https://github.com/iksaif/euscan
...
Conflicts:
euscanwww/djeuscan/models.py
Signed-off-by: volpino <fox91@anche.no>
2012-06-08 14:46:37 +02:00
volpino
b43bf8fa28
euscanwww: Removing duplicated code
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-08 14:43:18 +02:00
volpino
43e996d83d
euscanwww: Fixed the upstream task that was completely broken
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-08 14:24:17 +02:00
volpino
a6a87260b1
euscanwww: Fixed a minor bug in the task launching interface
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-08 14:23:37 +02:00
volpino
a94a24eeac
euscanwww: Refresh query logic and task queue split in chunks
...
Added the needed logic for running refresh queries from the web
interface.
Added a simple function to tasks.py that takes an iterable of arguments
and a task and launches many subtasks formed by 32 tasks each (for not
having a huge amount of tasks launched at the same time)
Signed-off-by: volpino <fox91@anche.no>
2012-06-08 14:21:11 +02:00
volpino
8913f826de
euscanwww: Added RefreshPackageQuery to models
...
Allows storing queries for refresh requests by users
Signed-off-by: volpino <fox91@anche.no>
2012-06-08 14:19:20 +02:00
Tim Harder
5df28b028e
add support for Beautiful Soup 4
2012-06-08 00:18:59 -07:00
volpino
33555a9fbe
euscanwww: Fixed Layman sync task
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-05 16:44:08 +02:00
volpino
8501805f8e
euscanwww: Scan tasks recieve a list of packages
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-05 13:30:31 +02:00
volpino
4a9301a215
euscanwww: naive implementation of the refresh button
...
A refresh button lets launching a scan_upstream task for a package while
navigating into euscanwww
Signed-off-by: volpino <fox91@anche.no>
2012-06-05 13:10:25 +02:00
volpino
8ed74a74df
euscanwww: Changed Layman sync task to use Python API
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-05 12:46:22 +02:00
volpino
c41521d59f
euscanwww: Admin interface tweaks
...
Added some search fields, ordering and filters to the admin panel
Signed-off-by: volpino <fox91@anche.no>
2012-06-04 11:27:18 +02:00
volpino
60e2019cc3
euscanwww: Added tasks for syncing and updating portage tree
...
Added these tasks:
* emerge_sync
* layman_sync
* emerge_regen
* eix_update
Signed-off-by: volpino <fox91@anche.no>
2012-06-04 11:06:47 +02:00
Corentin Chary
5b1884ead7
djeuscan: fix alive / packaged updates
...
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-06-04 10:28:06 +02:00
volpino
2edb220d3e
euscanwww: use jQuery each instead of for
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-03 17:38:51 +02:00
volpino
5970b4df37
euscanwww: Admin improved and simple task launcher added
...
Signed-off-by: volpino <fox91@anche.no>
2012-06-03 09:43:49 +02:00
volpino
47ec539e1d
euscanwww: scan_upstream imports euscan.scan
...
scan_upstream command imports euscan.scan and simply calls a function,
it doesn't call a subprocess
Signed-off-by: volpino <fox91@anche.no>
2012-05-31 18:42:37 +02:00
volpino
e8718748b4
euscanwww: Celery fixes and little logging
...
Signed-off-by: volpino <fox91@anche.no>
2012-05-31 09:11:40 +02:00
volpino
56c4d79fb2
euscanwww: starting implementing Celery tasks
...
Basic tasks.py module, some fixes in the management commands
Signed-off-by: volpino <fox91@anche.no>
2012-05-30 22:54:55 +02:00
Corentin Chary
83f5df4daf
euscanwww: fix the scan process
...
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-05-29 15:29:03 +02:00
volpino
c36f625a54
euscanwww: fixing colored output
...
Signed-off-by: volpino <fox91@anche.no>
2012-05-28 23:24:09 +02:00
volpino
fce8ef347b
euscanwww: management commands are validators aware
...
Management commands should create objects that don't raise
ValidationError
Signed-off-by: volpino <fox91@anche.no>
2012-05-28 22:57:33 +02:00
volpino
b46e9acc08
euscan: Refactored all management commands
...
Management commands are refactored to have the logic moved from the
commands themselves to a separated function in order to make them easily
convertible into Celery tasks
Commands are renamed to be modules importable from other python scripts
Signed-off-by: volpino <fox91@anche.no>
2012-05-28 21:19:53 +02:00
volpino
e535c204b0
euscanwww: fixed homepage and category validation
...
Accept multiple urls but skip invalid urls, added virtual as accepted
category
Signed-off-by: volpino <fox91@anche.no>
2012-05-28 18:45:14 +02:00
volpino
8563785746
model validators
2012-05-19 14:11:06 +02:00
volpino
de0ad4b210
issue #13 fixed
2012-05-13 16:42:29 +02:00
volpino
c85de09947
some more cleaning, removing relative imports
2012-05-13 14:09:22 +02:00
volpino
b339efe012
tests for managers
2012-05-13 11:37:05 +02:00
volpino
2ec8cba794
feeds tests
2012-05-12 17:29:09 +02:00
volpino
c790618a51
more tests
2012-05-12 16:07:49 +02:00
volpino
d3676250ab
tests refactoring and some fixes
2012-05-09 16:50:17 +02:00
volpino
9a39328e3b
more and more tests
2012-05-07 14:27:54 +02:00
volpino
46489c84a4
charts test
2012-05-07 10:56:54 +02:00
volpino
cb3dcaf713
test test test!
2012-05-07 10:20:33 +02:00
volpino
23f43e869a
urls from future in templates
2012-05-06 20:27:14 +02:00
volpino
948c5b8c39
some tests, urls now have a name
2012-05-06 20:03:49 +02:00
volpino
0ece4c04b2
removed some code minimizations for readability
2012-05-05 16:59:34 +02:00
volpino
e0bb80f905
some cleaning
2012-05-05 16:55:59 +02:00
Federico Scrinzi
37a623a97a
Merge pull request #1 from bacher09/master
...
Code refactoring
2012-05-05 07:43:15 -07:00
volpino
1f18782007
test reorganized, launch them with setup.py test
2012-05-05 16:09:04 +02:00
Slava Bacherikov
22ac8c4e2e
Merge branch 'master' of git://github.com/volpino/euscan
2012-05-05 16:51:15 +03:00
Slava Bacherikov
3a56aa4391
Rewrote some for_ methods in PackageMixin class
2012-05-05 18:50:13 +03:00
Slava Bacherikov
b4162313f2
Change in PackageMixin, create ANNOTATE_DICT
2012-05-05 18:28:41 +03:00
Slava Bacherikov
0efba89342
Change in PackageMixin
2012-05-05 17:41:09 +03:00
volpino
52fc4a5df4
VersionLog manager
2012-05-05 11:48:12 +02:00
volpino
050c210f40
charts fix, bug introduced while refactoring
2012-05-05 11:04:44 +02:00
volpino
22bcf20c7c
select_related prefetch refactored
2012-05-05 10:54:04 +02:00
volpino
5c0dbe11f2
feeds use manager
2012-05-05 10:38:51 +02:00
volpino
7ad08128cd
apis now use manager
2012-05-05 10:22:59 +02:00
volpino
6464187342
changing charts.py to use manager
2012-05-05 10:09:27 +02:00
volpino
84b2a1917a
PackageManager allows chaining
2012-05-05 10:03:02 +02:00
volpino
a145d8a4f6
fixing circular import
2012-05-05 10:02:17 +02:00
volpino
ab6ea22ed3
moved more stuff from views to helpers or managers
2012-05-01 21:15:55 +02:00
volpino
48de5022ba
one more function moved to manager, some docs
2012-05-01 17:08:49 +02:00
volpino
8e37f6249c
some refactoring, added Package manager for removing code duplicates, added helpers module, basic tests layout
2012-05-01 16:56:09 +02:00
volpino
e17e0de19a
README in rst
2012-05-01 13:50:53 +02:00
volpino
8c91855a58
Lovely day for PEP8 and pylint!
2012-04-28 18:16:05 +02:00
Corentin Chary
9e1ff8adb7
euscanwww: use tz aware datetimes
...
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
2012-04-23 17:05:46 +02:00
Corentin Chary
da269b0711
euscanwww: euscan -> djeuscan
...
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
2012-04-04 17:31:54 +02:00