[Jifty-commit] r1691 - in jifty/trunk: . t/TestApp-Plugin-REST t/TestApp-Plugin-REST/bin t/TestApp-Plugin-REST/lib t/TestApp-Plugin-REST/lib/TestApp t/TestApp-Plugin-REST/lib/TestApp/Plugin t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Action t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Model t/TestApp-Plugin-REST/share t/TestApp-Plugin-REST/t t/TestApp-Plugin-REST/var t/TestApp-Plugin-REST/var/mason t/TestApp-Plugin-REST/var/mason/cache t/TestApp-Plugin-REST/var/mason/obj

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Jul 28 23:45:22 EDT 2006


Author: jesse
Date: Fri Jul 28 23:45:20 2006
New Revision: 1691

Added:
   jifty/trunk/t/TestApp-Plugin-REST/
   jifty/trunk/t/TestApp-Plugin-REST/bin/
   jifty/trunk/t/TestApp-Plugin-REST/bin/jifty   (contents, props changed)
   jifty/trunk/t/TestApp-Plugin-REST/lib/
   jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/
   jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/
   jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/
   jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Action/
   jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Action/DoSomething.pm
   jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Dispatcher.pm
   jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Model/
   jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Model/User.pm
   jifty/trunk/t/TestApp-Plugin-REST/share/
   jifty/trunk/t/TestApp-Plugin-REST/t/
   jifty/trunk/t/TestApp-Plugin-REST/t/00-model-User.t   (contents, props changed)
   jifty/trunk/t/TestApp-Plugin-REST/t/00-prototype.t   (contents, props changed)
   jifty/trunk/t/TestApp-Plugin-REST/t/01-config.t   (contents, props changed)
   jifty/trunk/t/TestApp-Plugin-REST/var/
   jifty/trunk/t/TestApp-Plugin-REST/var/mason/
   jifty/trunk/t/TestApp-Plugin-REST/var/mason/cache/
   jifty/trunk/t/TestApp-Plugin-REST/var/mason/obj/
   jifty/trunk/t/TestApp-Plugin-REST/var/mason/obj/.__obj_create_marker
Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/Changelog
   jifty/trunk/MANIFEST
   jifty/trunk/MANIFEST.SKIP
   jifty/trunk/Makefile.PL
   jifty/trunk/SIGNATURE
   jifty/trunk/lib/Jifty.pm

Log:
 r14603 at pinglin:  jesse | 2006-07-28 20:44:35 -0700
  * Basic placeholder for REST plugin tests


Modified: jifty/trunk/Changelog
==============================================================================
--- jifty/trunk/Changelog	(original)
+++ jifty/trunk/Changelog	Fri Jul 28 23:45:20 2006
@@ -1,3 +1,29 @@
+0.60728
+
+* Adding a ProfileBehaviour plugin to aid profiling Javascript
+* Behaviours (see app_behaviour.js in the Jifty source for some more information)
+* Removing profiling code from behaviour.js
+* Plugin static roots should take precendence over jifty's
+* Win32 requires File::ShareDir 0.04
+* Autoformat message bodies for notifications.
+* Jifty::Web::Session::ClientSide: Re-assemble split cookies (>4K) correctly.
+  "logout" now works transparently.
+* Jifty::Web::Session::ClientSide - Client-side sessions.
+* Fix bug that didn't allow calendar months to be changed
+* Jifty::Manual::Continuations: reflect tangent() in the manual.
+* Dispatcher: Support tangent($url) as sugar for Jifty->web->tangent(url=>$url).
+* Dispatcher: Allow "**" in glob pattern to mean anychar including slash.
+* Jifty->web->return in void context is now an immediate return.
+* Jifty::ClassLoader - Make Jifty::Handle a CL'ed module as well,
+  so MyApp::Handle can implement scary magick of its own.
+* Don't blow up when trying to check if action mixins are autogenerated
+* Show calendar widget on focus and hide it on blur
+* Gzip compress the squished CSS and JS if possible.  The static handler usually deals with this, but we're not serving squished CSS/JS from the static root.
+* Fix placeholders on browser forward/back
+* Replace hard tabs with spaces for consistency
+* If we don't have XMLHttpRequest, fall back on page loads
+* Win32 complains when you try to unlink open DB
+
 0.60722
 
 * Dispatcher fixes to deal with the better canonicalization we started doing in

Modified: jifty/trunk/MANIFEST
==============================================================================
--- jifty/trunk/MANIFEST	(original)
+++ jifty/trunk/MANIFEST	Fri Jul 28 23:45:20 2006
@@ -128,6 +128,7 @@
 lib/Jifty/Web/Menu.pm
 lib/Jifty/Web/PageRegion.pm
 lib/Jifty/Web/Session.pm
+lib/Jifty/Web/Session/ClientSide.pm
 lib/Jifty/YAML.pm
 Makefile.PL
 MANIFEST			This list of files
@@ -171,6 +172,11 @@
 plugins/Nothing/lib/Jifty/Plugin/Nothing.pm
 plugins/Nothing/lib/Jifty/Plugin/Nothing/Dispatcher.pm
 plugins/Nothing/Makefile.PL
+plugins/ProfileBehaviour/lib/Jifty/Plugin/ProfileBehaviour.pm
+plugins/ProfileBehaviour/lib/Jifty/Plugin/ProfileBehaviour/Dispatcher.pm
+plugins/ProfileBehaviour/Makefile.PL
+plugins/ProfileBehaviour/share/web/static/css/behaviour-profile.css
+plugins/ProfileBehaviour/share/web/static/js/behaviour.js
 README
 share/dtd/xhtml-lat1.ent
 share/dtd/xhtml-special.ent

Modified: jifty/trunk/MANIFEST.SKIP
==============================================================================
--- jifty/trunk/MANIFEST.SKIP	(original)
+++ jifty/trunk/MANIFEST.SKIP	Fri Jul 28 23:45:20 2006
@@ -20,3 +20,4 @@
 var/*
 t/*/var/*
 doc/talks/*
+^\.

Modified: jifty/trunk/Makefile.PL
==============================================================================
--- jifty/trunk/Makefile.PL	(original)
+++ jifty/trunk/Makefile.PL	Fri Jul 28 23:45:20 2006
@@ -1,7 +1,6 @@
 use inc::Module::Install 0.46;
 name('Jifty');
 license('Perl');
-# this is a dev version, CPAN.pm will not install by default
 requires(perl => '5.8.3');  
 requires('App::CLI' => 0.03 ); # App::CLI::Command::Help App::CLI::Command
 requires('Cache::Cache'); #Cache::FileCache

Modified: jifty/trunk/SIGNATURE
==============================================================================
--- jifty/trunk/SIGNATURE	(original)
+++ jifty/trunk/SIGNATURE	Fri Jul 28 23:45:20 2006
@@ -15,11 +15,11 @@
 Hash: SHA1
 
 SHA1 8a1668319fec7d4608a8766e731e4c11098a362f AUTHORS
-SHA1 e933361984e8b712b90c7b9c9a2801c357b30c52 Changelog
-SHA1 313ac6fa56fefcc7e30f36516659896bd36f4566 MANIFEST
-SHA1 ef79154bdd753b6bc03a2919356e0e904b4b9ba2 MANIFEST.SKIP
-SHA1 a66635ea6823676d009d092b3174df6e9f5e5204 META.yml
-SHA1 bdf2e6a311a5857142e246616acfb33fe8d4672c Makefile.PL
+SHA1 6519400f0ca2fe996330e3d558daaa15c8215dde Changelog
+SHA1 a4fc6fc04bd5661fc91d6aee1c48f098dad9c2cf MANIFEST
+SHA1 3b4d530597ac2e3a9eca178a83dc71ef10f54897 MANIFEST.SKIP
+SHA1 371a37a47c66081da34cf99866629218d7e301e9 META.yml
+SHA1 3ba8ad6a41054bfd89e902a2dbb6e41d60bbda23 Makefile.PL
 SHA1 e395a2eabaf8faf8266dedc664c1eb52c6c589cf README
 SHA1 aaf8f7a1025fc97077072672f325e2a5f3c03a41 bin/build_par
 SHA1 a7dc1f376cac630ea28d2965e561469deb951cc7 bin/jifty
@@ -56,7 +56,7 @@
 SHA1 7eb44b00058c44795038d7fa4c0c77470f20a7f8 inc/Module/Install/Win32.pm
 SHA1 6d05967a5e1680b5f118315aaa6b8a1e143d79d8 inc/Module/Install/WriteAll.pm
 SHA1 c17e8f3cf8ebe1eb4929fd2bd2fd530a9de1abd0 lib/Email/Send/Jifty/Test.pm
-SHA1 aec0a78576b85191626741b91510258ac2cd2cc3 lib/Jifty.pm
+SHA1 2a3817f442745aa41b54ae03e7f25f49aa0f6ea6 lib/Jifty.pm
 SHA1 97b88e634644b2634bcd5c96d21a9fbb02bc135c lib/Jifty/API.pm
 SHA1 b88fa39d416114e24b434b38edd86b0cff86104b lib/Jifty/Action.pm
 SHA1 a6d9d87b4fa06cfab36f249a67946b45669dcee7 lib/Jifty/Action/Autocomplete.pm
@@ -66,14 +66,14 @@
 SHA1 6eda031083567c5cfe9d434e1bdc31bb16ba087c lib/Jifty/Action/Record/Update.pm
 SHA1 c99a798acc9c65baf4e750a70487c192980e0c54 lib/Jifty/Action/Redirect.pm
 SHA1 cf349fcfe9ee28216eae2213ab0016ceaffaf2a7 lib/Jifty/Bootstrap.pm
-SHA1 5f5c4895999d303bcfeea8dc86553e8dec13688c lib/Jifty/ClassLoader.pm
+SHA1 c36f035b08bceae69347f37f17bc4cedb6d19e81 lib/Jifty/ClassLoader.pm
 SHA1 8630d9cfbc56fa66229e975743ecfab25337720b lib/Jifty/Client.pm
 SHA1 8b4824481d003c667434223ba1432e18422431e7 lib/Jifty/Collection.pm
 SHA1 1164429483ccf9d6fb9bf21d87c5d11d942dd115 lib/Jifty/Config.pm
 SHA1 40fbe5939099501bd4fbae6fc8b1b65aaa815010 lib/Jifty/Continuation.pm
 SHA1 15970f85b57eab885568a71f164dc627c791287c lib/Jifty/CurrentUser.pm
 SHA1 b4f56fb42e62e5712f2c382a3daf72532b09aa63 lib/Jifty/DateTime.pm
-SHA1 4002b796a33386e5729d36a3e6a27e6b193e1cce lib/Jifty/Dispatcher.pm
+SHA1 c96d8a112653a5aab2779c0f8d7c3b6a4a356960 lib/Jifty/Dispatcher.pm
 SHA1 aa71ff8e4bd2b2652254eb63272c1edf9664f270 lib/Jifty/Everything.pm
 SHA1 f4285964bfa60f300d7f572868af745737396320 lib/Jifty/Handle.pm
 SHA1 61af0bde25c3eee4b72198dbc79fee93fb63673a lib/Jifty/Handler.pm
@@ -83,7 +83,7 @@
 SHA1 f47496ea9779b3ba77bffccf16f923bb3be52682 lib/Jifty/Logger.pm
 SHA1 c2ef5f9cfac7a0adff5c492bfdd005d42e489173 lib/Jifty/Manual/AccessControl.pod
 SHA1 ddeb3174dd4b5deded7257f397b814ff86042050 lib/Jifty/Manual/Actions.pod
-SHA1 19b55c02fb61a54a3b72efefef8657a2b46558fc lib/Jifty/Manual/Continuations.pod
+SHA1 64af8b16b24cfc4a5a812ec72caf7b49872e57b8 lib/Jifty/Manual/Continuations.pod
 SHA1 b706c85c0d68ea72e9aac27b4970e9271d6d5811 lib/Jifty/Manual/Cookbook.pod
 SHA1 0f95658ca3d4ed3deb1951f514774446a583247f lib/Jifty/Manual/Glossary.pod
 SHA1 1204d70c868084ac3114fae277e98a756f83f819 lib/Jifty/Manual/ObjectModel.pod
@@ -94,7 +94,7 @@
 SHA1 809ace5bafff5ad2461d5495464863ba808dfd19 lib/Jifty/Model/Metadata.pm
 SHA1 36de25464ae4eb07675f453cc590b634c6ff5a37 lib/Jifty/Model/Session.pm
 SHA1 0efcdf22d66e521cf250c1398caf3aba93ed795d lib/Jifty/Model/SessionCollection.pm
-SHA1 a08cad548e0c3a8e7020c3d28b397cd829d6f2dc lib/Jifty/Notification.pm
+SHA1 cab1c5e93c794b0c2bb55ce326dd91aff9487556 lib/Jifty/Notification.pm
 SHA1 dbde3807a964ad4f792bffc08fac49d8daea8017 lib/Jifty/Object.pm
 SHA1 fe40079f81fd0929ce416506620a803977710cad lib/Jifty/Param.pm
 SHA1 05ed23b70fff7823482140dc691f52ec55dfdc8f lib/Jifty/Param/Schema.pm
@@ -115,18 +115,18 @@
 SHA1 3d64cec7b94114377438a33dc4708675132a57cf lib/Jifty/Script/Model.pm
 SHA1 5f83918df18adf655da5a5119ef136789a61956e lib/Jifty/Script/Plugin.pm
 SHA1 4268d0e323c346773bc8f700c4b61abe9b608507 lib/Jifty/Script/Po.pm
-SHA1 b5d2f7108d962c9248aef01e4cc6e4dbecf03e3a lib/Jifty/Script/Schema.pm
+SHA1 86185ddd497483ee974c723f2bbd016c333ac371 lib/Jifty/Script/Schema.pm
 SHA1 84fb7443024ef5a86463ea3a5ae2c726b4fb62d3 lib/Jifty/Script/Server.pm
 SHA1 0646a96ca5f3da1585e3fb1dcc9b3540d2b8f50f lib/Jifty/Server.pm
 SHA1 f525e25ccb57b4f11f33a35c234d46280180c353 lib/Jifty/Test.pm
-SHA1 28e075057f01fdb79aa79706e1de5665604e54fb lib/Jifty/Test/WWW/Mechanize.pm
+SHA1 ded0711f1a00234606e0e94ff26c6c0d4db2084a lib/Jifty/Test/WWW/Mechanize.pm
 SHA1 733fe172a33d77ebbf1202ab02632c5d896f16f8 lib/Jifty/TestServer.pm
 SHA1 7561e9fb302562617853fcc2a9be665a67ffc4d8 lib/Jifty/Upgrade.pm
 SHA1 cd2a8612b1b7204d321b80eea365036c29702fc2 lib/Jifty/Upgrade/Internal.pm
 SHA1 0b22153c9912d6bfcf82f7615c96cffafb346bed lib/Jifty/Util.pm
 SHA1 f66bcdc226c855a95fd99b3bef1b6175330ea896 lib/Jifty/View/Mason/Handler.pm
-SHA1 d0aa38f5fd528d499de91da1e8c411f39f922bb2 lib/Jifty/View/Static/Handler.pm
-SHA1 463169e333ac334b026c3395fa06b982a76dbae5 lib/Jifty/Web.pm
+SHA1 d5a32130776a865dfa039933b79a4f3f10fb928c lib/Jifty/View/Static/Handler.pm
+SHA1 a5332f0fb33923ec8754a7df84196b5ac114a190 lib/Jifty/Web.pm
 SHA1 1efc063a47d726c98d2b4a4e3104dab9765caff4 lib/Jifty/Web/Form.pm
 SHA1 853ce15ee3efe007c649338b667885b44434044c lib/Jifty/Web/Form/Clickable.pm
 SHA1 f0536868d6915a7d2972a811a5feec14e278c24a lib/Jifty/Web/Form/Element.pm
@@ -148,7 +148,8 @@
 SHA1 1f162c264cef4c395b500cf71f6c9eb40f2aca89 lib/Jifty/Web/Form/Link.pm
 SHA1 31bcb079f01fb208fb0b2a4d41fde1044bb3a295 lib/Jifty/Web/Menu.pm
 SHA1 c5a1a65313ab58792634581786167279b033a29f lib/Jifty/Web/PageRegion.pm
-SHA1 8c7c78fb97daf25e74e60c6de5a5adee1659b7da lib/Jifty/Web/Session.pm
+SHA1 2c4de20759a2e8201f0e23fdfb4fda62c63d39c5 lib/Jifty/Web/Session.pm
+SHA1 8ff5fe8c3f09d4ff5da3c12ecbd313bd53a0781c lib/Jifty/Web/Session/ClientSide.pm
 SHA1 ec239a461310c3eb36cc4d3d2df3c020b1cab3fb lib/Jifty/YAML.pm
 SHA1 e8ce16205eccb1b99224ca81d3a3496163a98864 plugins/EditInPlace/Makefile.PL
 SHA1 312dfe93d52daa4c72257cf2299aee35f61b0a16 plugins/EditInPlace/lib/Jifty/Plugin/EditInPlace.pm
@@ -180,7 +181,7 @@
 SHA1 81875f6ab2d807bfe4671af084b4f238d383464c plugins/Login/lib/Jifty/Plugin/Login/CurrentUser.pm
 SHA1 6ed1349bb1d9f833bfd5c02b8aee94cc2f93da5f plugins/Login/lib/Jifty/Plugin/Login/Dispatcher.pm
 SHA1 9b6923b6718443dded533bffc0b03c55453322ee plugins/Login/lib/Jifty/Plugin/Login/Model/User.pm
-SHA1 bff7b7aac5d7ee0e35277ed1366714c1800a43ca plugins/Login/lib/Jifty/Plugin/Login/Notification/ConfirmAddress.pm
+SHA1 d4eec56bd790a8f61dde946aa44133704c945097 plugins/Login/lib/Jifty/Plugin/Login/Notification/ConfirmAddress.pm
 SHA1 cf9c995f10d81a5b124f278756808ad3418818e5 plugins/Login/share/web/templates/let/confirm_email
 SHA1 df53aef4fd346d763025380e4ac05d441c1d7501 plugins/Login/share/web/templates/login
 SHA1 e38eaf6f5d52cf5050df5803cf13623b14ecd96d plugins/Login/share/web/templates/logout
@@ -188,6 +189,11 @@
 SHA1 6a8008c78f6f0985542b8c42ef3327508b798897 plugins/Nothing/Makefile.PL
 SHA1 514f77cd3c01a1fea159187fde9fa8ab78b0b75c plugins/Nothing/lib/Jifty/Plugin/Nothing.pm
 SHA1 ceeff321fbe0e12b7a4a2421320db57b8bee8732 plugins/Nothing/lib/Jifty/Plugin/Nothing/Dispatcher.pm
+SHA1 d6cbace955b9546e82780a4c070a96265fb788a1 plugins/ProfileBehaviour/Makefile.PL
+SHA1 f315c0902c3f5102ab8ca3159d201a1475074a5e plugins/ProfileBehaviour/lib/Jifty/Plugin/ProfileBehaviour.pm
+SHA1 145948e25dc1be742b76d870a20d13383f902f49 plugins/ProfileBehaviour/lib/Jifty/Plugin/ProfileBehaviour/Dispatcher.pm
+SHA1 19b38e4ff033d01503a5e8c27dc00f730effec44 plugins/ProfileBehaviour/share/web/static/css/behaviour-profile.css
+SHA1 dc2e0c7d2234afda7bae3e3b542d1ae9a5c7e1f3 plugins/ProfileBehaviour/share/web/static/js/behaviour.js
 SHA1 2c5d29ea2981cc759cc5f5b27cf7c536d4ea9384 share/dtd/xhtml-lat1.ent
 SHA1 62229286e03ec35c922c8a7f9f3bb68412a78a55 share/dtd/xhtml-special.ent
 SHA1 e7749f99989ec8a9608f6cfbd41a5e5dddc18aec share/dtd/xhtml-symbol.ent
@@ -223,9 +229,9 @@
 SHA1 2f84cd8d3f46ffe9eb1406a4f6337fa5b5e2bcd1 share/web/static/images/silk/pencil_add.png
 SHA1 eb756c931be8ef70fc27ba0046375f32022e3b6d share/web/static/js/app.js
 SHA1 e919b502c93ea84b87749d3ec05d4e7755a9a04d share/web/static/js/app_behaviour.js
-SHA1 86484ce84ddeb7488563eae5c2dc0b94b3c9a5eb share/web/static/js/behaviour.js
+SHA1 2b28f63068ff486e7fd7937f725f47e886d01831 share/web/static/js/behaviour.js
 SHA1 094b2109587bbb33cb401c4dcf6bdea352739c6b share/web/static/js/bps_util.js
-SHA1 f1e525a957d32dfad2da6cac393d0c9b28b19299 share/web/static/js/calendar.js
+SHA1 6da851c376988a215caee34c06798de339cdad98 share/web/static/js/calendar.js
 SHA1 e9f9931abe8ddf86cf5cfddd1f0e963bb5bf0ccb share/web/static/js/combobox.js
 SHA1 cc50df358f5554be8b40ae58780a117b7a3296ab share/web/static/js/context_menu.js
 SHA1 b03b1f06f9c972cfb083c3d87b3dc74e4d85bf77 share/web/static/js/css_browser_selector.js
@@ -236,7 +242,7 @@
 SHA1 e72565db2119b617c9ca0af948956a399caa5720 share/web/static/js/dom-drag.js
 SHA1 4553f3cb184b09228ed4362898e9d30200a2a585 share/web/static/js/formatDate.js
 SHA1 a1d2c6292d656c275383b97aad6ca913b8a1b031 share/web/static/js/halo.js
-SHA1 94fa23b1cfc931576e854394dc4b0d3cec8f48cb share/web/static/js/jifty.js
+SHA1 21469caefbbf5917ca5ec9492bf8cf920f67935a share/web/static/js/jifty.js
 SHA1 29fe34f11192976f1a388562188b1eb9af7f4497 share/web/static/js/jifty_smoothscroll.js
 SHA1 12d8200d7c97c107dd202aa9759e2441d2d079fe share/web/static/js/jifty_utils.js
 SHA1 49478568d1f258c9d061faa30c2181fd999b07f0 share/web/static/js/jsTrace.js
@@ -265,13 +271,13 @@
 SHA1 0a362343ac62b44343ae26168e99612e23286880 share/web/templates/__jifty/admin/action/dhandler
 SHA1 1b55e3945405d09df59f0a40182f06f8f59a2e97 share/web/templates/__jifty/admin/autohandler
 SHA1 3c8ff6047be102649211764dc72266793fedb89f share/web/templates/__jifty/admin/fragments/list/list
-SHA1 e09203ce9b000484c8f7c4e49d16dd0e172243b5 share/web/templates/__jifty/admin/fragments/list/new_item
+SHA1 3fac6b0c3005e74e1a084463d66fd155bb29ce32 share/web/templates/__jifty/admin/fragments/list/new_item
 SHA1 b970c440cc6411c3327fcd6ac5108968f5b8889d share/web/templates/__jifty/admin/fragments/list/update
 SHA1 55799a284dbeb54b8cc12f41da854e460b3a8216 share/web/templates/__jifty/admin/fragments/list/view
-SHA1 d807fdcdff346c540f2a20ac83f407725b754173 share/web/templates/__jifty/admin/index.html
+SHA1 4160c0e1be928687f7698ecc2a4483d8daaa6d09 share/web/templates/__jifty/admin/index.html
 SHA1 c78d4b3267acdf98a39c864fd0a1b4fbdc4d390c share/web/templates/__jifty/admin/model/dhandler
 SHA1 bdaeeff0c2522a8509d4da45be703d1e8cf5c96c share/web/templates/__jifty/autocomplete.xml
-SHA1 66b1ce378bc36715f7e6395a8c4ee57a2fcd359e share/web/templates/__jifty/css/dhandler
+SHA1 bfeb6c28df0bc0c78119c9ff90f8051e5f6adcc2 share/web/templates/__jifty/css/dhandler
 SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 share/web/templates/__jifty/empty
 SHA1 f85d8cae8a2df3ee51b868a744a9e9af21925e0c share/web/templates/__jifty/error/_elements/error_text
 SHA1 e2d761b0b92f818eb2bbb91a15cef0a2471d2245 share/web/templates/__jifty/error/_elements/wrapper
@@ -280,7 +286,7 @@
 SHA1 78e1e0af483fa3bdac2de4e5a9d82486d67b8537 share/web/templates/__jifty/error/error.css
 SHA1 63596a50acfd1e56b1e7d3572628222576afe7b7 share/web/templates/__jifty/error/mason_internal_error
 SHA1 b8793db1dd47943dc83173f02f2227f9ca310235 share/web/templates/__jifty/halo
-SHA1 dc95abf6889f2bf8b1e8a9b6ec2708d9bf67bf3f share/web/templates/__jifty/js/dhandler
+SHA1 7fbdc70a9c0481d1e67b6154178173d434206fd9 share/web/templates/__jifty/js/dhandler
 SHA1 6a50927b6d7c7f5f2048a691299585cb2dd05677 share/web/templates/__jifty/online_docs/autohandler
 SHA1 d0116574b44622720db7a9efc7fafdf4002ed012 share/web/templates/__jifty/online_docs/content.html
 SHA1 bd81ff4e458c5e1a76c131dce40ffd71fd6a76f7 share/web/templates/__jifty/online_docs/index.html
@@ -365,7 +371,7 @@
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.3 (Darwin)
 
-iD8DBQFEwr8GEi9d9xCOQEYRAhlBAJ0VBXeKiMVCOFBiV6BLGSmv19yIAQCeJAxq
-HHOmOquVy6ciOfI7CMl6oeU=
-=UVjm
+iD8DBQFEykb4Ei9d9xCOQEYRApk/AJ9s1dcIrJ7DbB3/WcDnbfSIFt28TgCdHQ7S
+I2V82/pdoS5BVOm8JdVN+Js=
+=Ugr+
 -----END PGP SIGNATURE-----

Modified: jifty/trunk/lib/Jifty.pm
==============================================================================
--- jifty/trunk/lib/Jifty.pm	(original)
+++ jifty/trunk/lib/Jifty.pm	Fri Jul 28 23:45:20 2006
@@ -5,7 +5,7 @@
 use encoding 'utf8';
 # Work around the fact that Time::Local caches thing on first require
 BEGIN { local $ENV{'TZ'} = "GMT";  require Time::Local;}
-$Jifty::VERSION = '0.60722';
+$Jifty::VERSION = '0.60728';
 
 =head1 NAME
 

Added: jifty/trunk/t/TestApp-Plugin-REST/bin/jifty
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Plugin-REST/bin/jifty	Fri Jul 28 23:45:20 2006
@@ -0,0 +1,15 @@
+#!/usr/bin/env perl
+use warnings;
+use strict;
+use File::Basename qw(dirname); 
+use UNIVERSAL::require;
+
+BEGIN {
+    Jifty::Util->require or die $UNIVERSAL::require::ERROR;
+    my $root = Jifty::Util->app_root;
+    unshift @INC, "$root/lib" if ($root);
+}
+
+use Jifty::Script;
+$SIG{INT} = $SIG{TERM} = sub { warn "Stopped\n"; exit; };
+Jifty::Script->dispatch();

Added: jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Action/DoSomething.pm
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Action/DoSomething.pm	Fri Jul 28 23:45:20 2006
@@ -0,0 +1,38 @@
+package Test::Plugin::REST::Action::DoSomething;
+
+use Jifty::Param::Schema;
+use Jifty::Action schema {
+
+param email =>
+    label is 'Email',
+    ajax canonicalizes,
+    ajax validates;
+
+};
+
+sub canonicalize_email {
+    my $self = shift;
+    my $address = shift;
+    
+    return lc($address);
+}
+
+sub validate_email {
+    my $self = shift;
+    my $address = shift;
+
+    if($address =~ /bad\@email\.com/) {
+        return $self->validation_error('email', "Bad looking email");
+    } elsif ($address =~ /warn\@email\.com/) {
+        return $self->validation_warning('email', "Warning for email");
+    }
+    return $self->validation_ok('email');
+}
+
+sub take_action {
+    my $self = shift;
+
+    $self->result->message("Something happened!");
+}
+
+1;

Added: jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Dispatcher.pm
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Dispatcher.pm	Fri Jul 28 23:45:20 2006
@@ -0,0 +1,4 @@
+package TestApp::Plugin::REST::Dispatcher;
+use Jifty::Dispatcher -base;
+
+1;

Added: jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Model/User.pm
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Plugin-REST/lib/TestApp/Plugin/REST/Model/User.pm	Fri Jul 28 23:45:20 2006
@@ -0,0 +1,24 @@
+package TestApp::Plugin::REST::Model::User::Schema;
+use Jifty::DBI::Schema;
+
+# Your column definitions go here.  See L<Jifty::DBI::Schema> for
+# documentation about how to write column definitions.
+
+column 'name' =>
+  type is 'text',
+  is mandatory;
+column 'email' =>
+  type is 'text',
+  is mandatory;
+column 'tasty' =>
+  type is 'boolean',
+  is immutable;
+
+
+package TestApp::Plugin::REST::Model::User;
+use base qw/TestApp::Plugin::REST::Record/;
+
+# Your model-specific methods go here.
+
+1;
+

Added: jifty/trunk/t/TestApp-Plugin-REST/t/00-model-User.t
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Plugin-REST/t/00-model-User.t	Fri Jul 28 23:45:20 2006
@@ -0,0 +1,52 @@
+#!/usr/bin/env perl
+use warnings;
+use strict;
+
+=head1 DESCRIPTION
+
+A basic test harness for the User model.
+
+=cut
+
+use lib 't/lib';
+use Jifty::SubTest;
+
+use Jifty::Test tests => 12;
+# Make sure we can load the model
+use_ok('TestApp::Plugin::REST::Model::User');
+
+# Grab a system use
+my $system_user = TestApp::Plugin::REST::CurrentUser->superuser;
+ok($system_user, "Found a system user");
+
+# Try testing a create
+my $o = TestApp::Plugin::REST::Model::User->new(current_user => $system_user);
+my ($id) = $o->create( name => $$, email => $$ );
+ok($id, "User create returned success");
+ok($o->id, "New User has valid id set");
+is($o->id, $id, "Create returned the right id");
+is($o->name, $$, "Created object has the right name");
+
+# And another
+$o->create( name => $$, email => $$ );
+ok($o->id, "User create returned another value");
+isnt($o->id, $id, "And it is different from the previous one");
+
+# Searches in general
+my $collection =  TestApp::Plugin::REST::Model::UserCollection->new(current_user => $system_user);
+$collection->unlimit;
+is($collection->count, 2, "Finds two records");
+
+# Searches in specific
+$collection->limit(column => 'id', value => $o->id);
+is($collection->count, 1, "Finds one record with specific id");
+
+# Delete one of them
+$o->delete;
+$collection->redo_search;
+is($collection->count, 0, "Deleted row is gone");
+
+# And the other one is still there
+$collection->unlimit;
+is($collection->count, 1, "Still one left");
+

Added: jifty/trunk/t/TestApp-Plugin-REST/t/00-prototype.t
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Plugin-REST/t/00-prototype.t	Fri Jul 28 23:45:20 2006
@@ -0,0 +1,19 @@
+#!/usr/bin/env perl
+
+use warnings;
+use strict;
+
+=head1 DESCRIPTION
+
+This is a template for your own tests. Copy it and modify it.
+
+=cut
+
+use lib 't/lib';
+use Jifty::SubTest;
+
+use Jifty::Test tests => 1;
+
+ok(1, "Loaded the test script");
+1;
+

Added: jifty/trunk/t/TestApp-Plugin-REST/t/01-config.t
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp-Plugin-REST/t/01-config.t	Fri Jul 28 23:45:20 2006
@@ -0,0 +1,17 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+
+#use Jifty::Test tests => 3;
+use Jifty::Test tests => 1;
+
+# todo: kevinr: these tests aren't right
+#is(Jifty->config->framework('ApplicationClass'), 'jifty');
+# is(Jifty->config->framework('LogConfig'), 't/btdttest.log4perl.conf');
+# Port is overridden by testconfig
+ok(Jifty->config->framework('Web')->{'Port'} >= 10000, "test nested config");
+
+
+1;
+
+

Added: jifty/trunk/t/TestApp-Plugin-REST/var/mason/obj/.__obj_create_marker
==============================================================================


More information about the Jifty-commit mailing list