Commit graph

28 commits

Author SHA1 Message Date
Colin Kuskie
a85924d07b Add group privilege checking to the Shipping Drivers 2009-06-18 23:24:33 +00:00
Colin Kuskie
cbdd6077d5 Add USPS Shipping Driver with tests, and i18n.
Change the Ship, Cart to do exception handling when calling a shipping driver,
as that's the message passing interface between the modules.
Add a noFormProcess field property that is recognized by processPropertiesFromFormPost.
2009-05-12 23:58:19 +00:00
Graham Knop
315ce0941f use to_json and from_json in more places instead of encode_json and decode_json 2009-01-22 01:14:14 +00:00
JT Smith
ef120fb06b Added isVisitor, isAdmin, and isRegistered methods to User object instead
of hard coding checks everywhere with group ids. And updated the code base 
   to match.
2008-09-16 22:32:36 +00:00
Colin Kuskie
3839123d8c Fix a bug where PayDriver and ShopDriver would do a redirect and ignore
the site gateway url.
2008-07-31 03:38:22 +00:00
Colin Kuskie
35ff40e4b2 fix JSON encoding problems in Shop/ShipDriver 2008-07-08 21:27:15 +00:00
JT Smith
819552ce06 finally got shipping driver management working 2008-03-12 23:18:04 +00:00
Colin Kuskie
e151b99dca Tweak a little POD.
Fix a bad exception message.
2008-03-09 05:09:32 +00:00
JT Smith
e4d76f0b3b very close to having ship driver management working 2008-03-08 00:11:09 +00:00
JT Smith
a535104d7a shipping is closer 2008-03-07 17:04:26 +00:00
Colin Kuskie
d27ac7a629 Add coverage tests, convert croaks to exceptions. 2008-03-05 23:34:53 +00:00
Colin Kuskie
bc05127105 convert over to use exceptions. A few tests still need to be written, they are written as todo tests 2008-02-28 06:00:13 +00:00
Colin Kuskie
c9661496fe begin conversion of ShipDriver to use exceptions, in code and in test 2008-02-28 00:24:31 +00:00
Colin Kuskie
640554ea14 Finish out the FlatRate driver, with tests and i18n.
Fix bugs found in ShipDriver by building a driver.
2008-02-25 22:36:10 +00:00
Colin Kuskie
6d856d1b58 Make the private object constructor handle inheritance.
Fix a POD typo.
2008-02-25 22:04:40 +00:00
Colin Kuskie
920b36d728 force the overriding of the calculate class 2008-02-25 21:11:44 +00:00
Colin Kuskie
fc060962e8 Interim checkin.
FlatRate needs i18n and more tests.
2008-02-25 05:51:43 +00:00
Colin Kuskie
c1e0471d51 Add getEditForm to the ShipDriver, and test it. 2008-02-25 00:06:24 +00:00
Colin Kuskie
95b8244ce0 add the get tests and method 2008-02-23 06:30:55 +00:00
Colin Kuskie
39aa431e2c Move the delete test after the new test, so that there's an object
to pull from the db.  Sheesh.
Remove the id generation from inside the private build method
and make sure it returns the built object.
2008-02-23 06:17:39 +00:00
Colin Kuskie
669bb870eb Start working on the new method, with tests.
Refactor out the object building code into a private method to be shared by
new and create.
2008-02-23 00:30:18 +00:00
Colin Kuskie
b174ce51fb getName, getId, set, create with db storage.
Added tests for all those methods.
Check that definition gets a session object or else.
2008-02-22 23:51:13 +00:00
Colin Kuskie
72177f762c label is already stored in the options, and never used directly in any method. Code that wants it can instanciate an object 2008-02-22 19:08:32 +00:00
Colin Kuskie
3f4aed78d2 Valiadate inputs to create. 2008-02-22 00:15:44 +00:00
Colin Kuskie
6cc51fa176 add pod 2008-02-21 05:31:14 +00:00
Colin Kuskie
a89c507ed6 definition method for ShipDriver, with tests 2008-02-21 05:19:20 +00:00
Colin Kuskie
33928cba06 Stubbing for ShipDriver.pm 2008-02-21 04:12:26 +00:00
Colin Kuskie
02011a7d37 finalize names and update docs to match 2008-02-19 18:33:45 +00:00
Renamed from lib/WebGUI/Shop/ShipperDriver.pm (Browse further)