Commit Graph

24 Commits

Author SHA1 Message Date
IceArmy d19901cdf8 Handle badly encoded URL's 2011-06-01 00:29:35 -07:00
IceArmy a313d1befd PyPhantomJS version 1.2.0
Refactored most of functionalities to WebPage object
WebPage object can have settings
Support different HTTP operations for loading a page
Simplify buffer handling in render()
Refactor render(), split the buffer rendering to its own function
Render the web page using the tiling approach
WebPage callback for it's console message
Make exit() synchronous
WebPage callback for its JS alert
Updated all examples
2011-05-31 16:23:06 -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
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 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 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 3d8d25d368 Output unicode safe text 2011-05-03 16:45:53 -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 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 24f013df73 Script arguments can now use --option type args
... as long as the option names don't conflict with the programs option names of course
2011-04-13 08:12:43 -07:00
IceArmy 2121fb4026 Added option for disk cache use 2011-04-12 19:36:25 -07:00
IceArmy 1bdd1867ff Remove some extra spacing on the header 2011-04-12 01:37:47 -07:00
IceArmy 42dbe9d8f2 Fixed bug in main file where QString was not defined
Added message handling system
Simplified userAgent system
Added qDebug and qFatal messages
qDebug does not display unless you specify -v or --verbose on the command line
2011-04-12 01:34:20 -07:00
IceArmy 0bc48c7131 Fix usage message from tag:file to tag=file 2011-04-12 01:33:15 -07:00
IceArmy af2cdf944d Refactor code into separate files 2011-04-12 01:32:07 -07:00