Commit Graph

15 Commits (667c58542481eeeeb8394f01f723e0edf5dddfe7)

Author SHA1 Message Date
IceArmy be8eece175 Refactor hook creation and hook existence checks in plugincontroller 2011-10-28 01:03:44 -07:00
IceArmy 5bcd3897a3 Refactored some redundant code from load_plugins() 2011-10-28 00:26:22 -07:00
IceArmy 698c2619a8 Remove extra spaces in license 2011-09-23 04:40:56 -07:00
IceArmy 26bbd765d4 Make it possible for plugin directory to be changed by setting PYPHANTOMJS_PLUGIN_PATH environment variable 2011-09-18 03:00:37 -07:00
IceArmy f9a281ef2a Refactor plugin implementation
Also, LookupError gets raised on some methods if the hook doesn't exist.
Reason is, that not raising would be silently passing off a potential error.
2011-09-18 02:58:43 -07:00
IceArmy bdaa4a5899 Rename plugincontroller set() to set_() to avoid clashes with built-in set() 2011-09-15 22:06:52 -07:00
IceArmy fff0b73234 Alphebetize imports 2011-09-15 17:18:08 -07:00
IceArmy 5e069ee711 Misc improvements
Changed all if not's/if's for None's to if value is None/if value is not None
Fix bug in fs where split never used os.altsep because if not always evaluated to False since there's almost always something in the list returned
Fix the fixme on fs.isAbsolute where we needed to split the Windows drive letter off
2011-08-24 14:32:29 -07:00
IceArmy faa0a06258 Plugin controllers get() method should never fail silently 2011-08-19 16:42:31 -07:00
IceArmy b7fb218473 Improve plugin system
Thanks to frame hacks, we can get rid of passing/modifying locals()
- Passing bunched locals() is no longer needed on the hook points
- You can access the parent namespace with get() instead
- You can change stuff in the parent namespace with set()
2011-07-04 02:48:10 -07:00
IceArmy ce065d9fda Improved plugin system
You can now set a priority on a function to control
when it executes for a particular action (hook).
Default priority is 10, but can be changed to anything.

For example, if you have 2 functions hooked to 'Phantom',
you can change one function to priority 12 and leave the other
at 10, so the one at 10 will execute first, no matter where
it is defined.
2011-06-26 18:13:41 -07:00
IceArmy 8064c294b3 Fix loading plugins when program is frozen 2011-06-21 10:46:12 -07:00
IceArmy 19b5b31781 Properly load plugins from the app directories plugins subfolder, not from our CWD 2011-06-12 12:50:16 -07:00
Francisco Souza c8dfe1e30a Merge branch 'master' of git://github.com/ariya/phantomjs 2011-06-05 20:00:43 -03:00
Francisco Souza 9b12ce3f89 Changed the name of package from phantom to pyphantomjs 2011-06-05 19:55:07 -03:00