Commit Graph

1733 Commits (master)

Author SHA1 Message Date
Ariya Hidayat e994086878 Merge pull request #43 from Roejames12/master
Did a complete rewrite of the plugin system.
2011-05-08 18:19:33 -07:00
IceArmy 652a3c3c76 Added did_action() to find out how many times a hook has been fired 2011-05-07 00:19:55 -07:00
IceArmy e8d1928ebb Fix tiny error where if script is not called directly (so we import it to use it elsewhere), then Bunch and do_action will not be defined in main script. 2011-05-07 00:19:27 -07:00
IceArmy 8c12af3ce5 Did a complete rewrite of the plugin system!
It is now event based, and is MUCH easier than before to write your plugins!
2011-05-06 23:46:51 -07:00
Ariya Hidayat ceafea109c Merge pull request #42 from detro/master
More stuff to 'gitignore'
2011-05-06 03:28:05 -07:00
Ariya Hidayat 0e1a0c6572 Merge pull request #41 from Roejames12/master
Tons of new updates
2011-05-06 03:26:01 -07:00
IceArmy 4fc9692176 Get list of .pyc plugins as well, that way you can provide only a bytecode plugin with no .py plugin and it'll still load up fine 2011-05-05 15:43:12 -07:00
IceArmy 66dc5625b3 Raise RuntimeError on loadPlugin's KeyError, explaining the problem 2011-05-05 12:24:30 -07:00
IceArmy e3e82648dd Documented run function(s) and passed args in plugincontroller
Reorganize loadPlugins to run any named function with any set of arguments. all dict arguments will be automatically converted to bunches

Put same func hooks into 1 hook that calls different methods (pre and post)
2011-05-04 23:11:18 -07:00
IceArmy 354bb22a68 Add plugin URL to README 2011-05-04 17:59:17 -07:00
IceArmy 5d861ccdf9 Simplify loadPlugin's bunched globals and locals 2011-05-04 16:52:58 -07:00
IceArmy f320d76284 Simplified plugin code
_globals and _locals are now attributed objects like they should be, instead of being a dict (makes it easier to use them)
2011-05-04 16:15:51 -07:00
IceArmy 15c854405e Add flusher to SafeStreamFilter 2011-05-04 12:32:17 -07:00
IceArmy b1d8fd1f8c Add pre/post __init__ hook to Phantom() for more flexibility 2011-05-04 11:11:37 -07:00
Ivan De Marino fe9168d23c More stuff to 'gitignore' 2011-05-04 18:57:44 +01:00
IceArmy 3ac8c79856 Update plugincontroller Hook doc strings 2011-05-04 10:56:36 -07:00
IceArmy 37dd766478 No need to worry about clashing plugin class/method names. It's already automatically taken care of :) 2011-05-04 10:47:54 -07:00
IceArmy f923085c52 Place hooks at better spots to allow more flexibility 2011-05-04 10:47:28 -07:00
IceArmy b25d10bf7c Create loadPlugins helper function 2011-05-04 10:47:08 -07:00
IceArmy d156bad091 New plugin system allows you to add/modify internal code without actually changing it!
Read the string in plugincontroller for a short how to explanation
2011-05-04 02:53:20 -07:00
IceArmy e51ffbcae0 Added option: --ignore-ssl-errors=[yes|no]
Fixed bug where disk-cache would not be enabled unless you also specified --verbose (oops!)
2011-05-03 16:49:34 -07:00
IceArmy fed6b0cc03 Alphabetize usage message 2011-05-03 16:49:13 -07:00
IceArmy f1ea757c24 Removed unneeded scriptDir detection 2011-05-03 16:48:41 -07:00
IceArmy 7ddcd95014 Created setup script to build executables (mainly for Windows, but also works for Linux) 2011-05-03 16:48:04 -07:00
IceArmy 3d8d25d368 Output unicode safe text 2011-05-03 16:45:53 -07:00
IceArmy bb2e59ca99 Open files as unicode (utf-8) to support all encodings 2011-05-03 16:44:28 -07:00
IceArmy 1493b2e613 Update INSTALL file 2011-05-03 16:43:56 -07:00
IceArmy dfadc43053 Remove spaces on default args 2011-05-03 16:43:31 -07:00
IceArmy ef515c83e5 Simplify version into tuple 2011-05-03 16:43:09 -07:00
IceArmy e9dad4be43 Changed the copyright headers in the program.
Gave credit in the README to make up for the changes.
2011-05-03 16:42:21 -07:00
IceArmy 4a47282276 Small change to the error message on javaScriptConsoleMessage() 2011-05-03 16:40:45 -07:00
Ariya Hidayat 328f0e2172 Merge pull request #40 from petejkim/master.
I added a new option: --ignore-ssl-errors=[yes|no]
2011-05-02 03:20:20 -07:00
Peter Jihoon Kim 57f525a78a added option: --ignore-ssl-errors=[yes|no] 2011-04-29 16:32:40 +08:00
Ariya Hidayat 38ddced9f8 Merged pull request #38 from Roejames12/master.
:D
2011-04-27 16:55:38 -07:00
IceArmy 65563ca89d - Automatically convert Qt types by using api 2
* Convert all QString and QVariant types
* Replaced all references to QString with Python str object

- Fixed bug where phantom.version didn't work
- Don't cd to scripts directory anymore (but loadScript still loads scripts from directory relative to it)
- clipRect.setter and viewportSize.setter both have improved system now.
* if you miss or neglect to specify an attritube (width, height, etc), there will no longer be an exception. it will be handled gracefully, and whatever you didn't specify won't be changed
* if you enter a negative value on any of them, it'll be reset to 0 (except for phantom.clipRect top and left) and you won't loose your attempted changes

- Cleaned up Webpage's javaScriptConsoleMessage print JavaScript (sourceID)
- Allow viewportSize to be set to 0 (default)
- General cleanup
2011-04-27 16:36:45 -07:00
Ariya Hidayat 674f3ce61d Merged pull request #37 from Roejames12/master.
Untitled
2011-04-27 16:13:52 -07:00
IceArmy 92573698f5 Start using new style signals and slots 2011-04-27 05:15:25 -07:00
IceArmy 7f6fec5b5e Refactor main file
- Moved main code to main()
- Moved argument parsing to parseArgs()

Changed
- Removed qFatal's and replaced them with sys.exit(message)
- upload-file: Fixed bug where tag= (if it wasn't in first arg) wasn't caught as empty
- upload-file: Added duplicate tag checking
2011-04-27 02:45:41 -07:00
IceArmy e991e1b150 Merge remote branch 'upstream/1.1' 2011-04-27 01:54:32 -07:00
IceArmy 7a82a88fd6 Merge remote branch 'origin/1.1' 2011-04-27 01:54:17 -07:00
Ariya Hidayat 0120e03335 Optimistically place the release date. 2011-04-27 00:51:47 -07:00
Ariya Hidayat 717d9e93e7 Optimistically place the release date. 2011-04-27 00:51:20 -07:00
Ariya Hidayat 3ba2f6c45d Merge branch 'master' into 1.1 2011-04-25 09:43:48 -07:00
Ariya Hidayat bd00099658 Merged pull request #36 from rgieseke/coffeescript-examples.
Minor fix and improvement for the Coffeescript examples
2011-04-25 09:40:42 -07:00
rgieseke d3845e94ab Use YAML-Style array creation in follow.coffee. 2011-04-25 18:28:26 +02:00
rgieseke 38a6638d2c Fix weather.coffee. Implicit parentheses are until end of line. 2011-04-25 18:26:44 +02:00
Ariya Hidayat 0de16879d2 Merge branch 'master' into 1.1 2011-04-23 10:56:20 -07:00
rgieseke dfd4c06586 Remove unnecessary semicolons in coffeescript examples. 2011-04-23 19:43:18 +02:00
Ariya Hidayat c2a53ba374 Merge branch 'master' into 1.1 2011-04-23 10:03:53 -07:00
rgieseke 0a91497075 Loop only through divs, not length and item. 2011-04-23 14:41:19 +02:00