[gallery/gallery3] 1f2488: Fix K2 ORM calls "or_open", "and_open", "close" --> ...

GitHub <noreply-9UaJU3cA/F/[email protected]>
Newsgroups gmane.comp.web.gallery.cvs
Message-ID <5164488161632_5db110a813c591a4@hookshot-fe2-pe1-prd.aws.github.net.mail>
  Branch: refs/heads/kohana_3
  Home:   https://github.com/gallery/gallery3
  Commit: 1f248884ac8d7d5efc10eafd883967dc159f08cc
      https://github.com/gallery/gallery3/commit/1f248884ac8d7d5efc10eafd883967dc159f08cc
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M modules/exif/classes/Exif/Exif.php
    M modules/exif/classes/Exif/Hook/ExifTask.php
    M modules/gallery/classes/Gallery/Graphics.php
    M modules/gallery/classes/Gallery/Hook/GalleryInstaller.php
    M modules/gallery/classes/Gallery/Item.php
    M modules/gallery/classes/Gallery/Model/Item.php
    M modules/gallery/tests/Database_Test.php
    M modules/search/classes/Search/Search.php
    M modules/tag/classes/Tag/Hook/Rest/Tags.php
    M modules/user/classes/User/Hook/UserInstaller.php

  Log Message:
  -----------
  Fix K2 ORM calls "or_open","and_open","close" --> "or_where_open","and_where_open","or_where_close","and_where_close"


  Commit: 64984d71faa21b33bb065fde0d11d58569956208
      https://github.com/gallery/gallery3/commit/64984d71faa21b33bb065fde0d11d58569956208
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M modules/gallery/config/database.php

  Log Message:
  -----------
  Fix database config - K3 "hostname" is K2 "host"


  Commit: 2f3b3665b1718adcbe5a06ba72f2339887ca0c83
      https://github.com/gallery/gallery3/commit/2f3b3665b1718adcbe5a06ba72f2339887ca0c83
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M modules/comment/classes/Comment/Hook/CommentInstaller.php
    M modules/comment/classes/Comment/Hook/CommentRss.php
    M modules/comment/classes/Comment/Model/Comment.php
    M modules/comment/tests/Comment_Model_Test.php
    M modules/exif/classes/Exif/Exif.php
    M modules/exif/classes/Exif/Hook/ExifTask.php
    M modules/gallery/classes/Gallery/Access.php
    M modules/gallery/classes/Gallery/Hook/GalleryTask.php
    M modules/gallery/classes/Gallery/Item.php
    M modules/notification/classes/Notification/Notification.php
    M modules/search/classes/Search/Hook/SearchTask.php
    M modules/search/classes/Search/Search.php
    M modules/tag/classes/Tag/Model/Tag.php
    M modules/tag/classes/Tag/Tag.php
    M modules/user/classes/User/Controller/Admin/Users.php

  Log Message:
  -----------
  Change ORM queries using table names from plural to singular (e.g. "items.id" -> "item.id").
- changed in K3.2 http://kohanaframework.org/3.2/guide/orm/upgrading
- see issue ticket http://dev.kohanaframework.org/issues/4066


  Commit: cb1ec9d33069c187c9ba5ab0975687db37b9fdd7
      https://github.com/gallery/gallery3/commit/cb1ec9d33069c187c9ba5ab0975687db37b9fdd7
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M modules/gallery/classes/Gallery/Hook/GalleryTask.php

  Log Message:
  -----------
  Change DB build select call in Hook_GalleryTask to use "id" instead of array("id").


  Commit: 7bd984c416497aa2e9b7e39cf50125bea2fb1483
      https://github.com/gallery/gallery3/commit/7bd984c416497aa2e9b7e39cf50125bea2fb1483
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M modules/gallery/tests/Database_Test.php

  Log Message:
  -----------
  Change Database_Test to put "mock" in compile() instead of build().


  Commit: 6755f9be36ded2350d120d788e7804c2b8dc6c21
      https://github.com/gallery/gallery3/commit/6755f9be36ded2350d120d788e7804c2b8dc6c21
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M modules/comment/classes/Comment/Controller/Admin/ManageComments.php
    M modules/comment/classes/Comment/Hook/CommentEvent.php
    M modules/exif/classes/Exif/Exif.php
    M modules/exif/classes/Exif/Hook/ExifTask.php
    M modules/exif/classes/Exif/Hook/ExifTheme.php
    M modules/g2_import/classes/G2Import/G2Import.php
    M modules/gallery/classes/Gallery/Access.php
    M modules/gallery/classes/Gallery/Controller/L10nClient.php
    M modules/gallery/classes/Gallery/Hook/GalleryTask.php
    M modules/gallery/classes/Gallery/I18n.php
    M modules/gallery/classes/Gallery/Item.php
    M modules/gallery/classes/Gallery/L10nClient.php
    M modules/gallery/classes/Gallery/L10nScanner.php
    M modules/gallery/orphans/libraries/drivers/Cache/Database.php
    M modules/gallery/tests/Database_Test.php
    M modules/notification/classes/Notification/Notification.php
    M modules/search/classes/Search/Hook/SearchTask.php
    M modules/server_add/classes/ServerAdd/Controller/ServerAdd.php
    M modules/tag/classes/Tag/Model/Tag.php
    M modules/tag/classes/Tag/Tag.php

  Log Message:
  -----------
  Change DB::build()->select(...) --> DB::select(...)


  Commit: 499aa3e959afe0012eb90c9f3e80373370db6001
      https://github.com/gallery/gallery3/commit/499aa3e959afe0012eb90c9f3e80373370db6001
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M modules/comment/classes/Comment/Hook/CommentEvent.php
    M modules/gallery/classes/Gallery/Access.php
    M modules/gallery/classes/Gallery/Controller/Admin/Maintenance.php
    M modules/gallery/classes/Gallery/Controller/Packager.php
    M modules/gallery/classes/Gallery/Graphics.php
    M modules/gallery/classes/Gallery/Hook/GalleryEvent.php
    M modules/gallery/classes/Gallery/Hook/GalleryInstaller.php
    M modules/gallery/classes/Gallery/Hook/GalleryTask.php
    M modules/gallery/classes/Gallery/Module.php
    M modules/gallery/tests/Item_Helper_Test.php
    M modules/gallery/tests/Item_Model_Test.php
    M modules/organize/classes/Organize/Controller/Organize.php
    M modules/tag/classes/Tag/Tag.php
    M modules/user/classes/User/Hook/UserInstaller.php

  Log Message:
  -----------
  Change DB::build()->update(...) --> DB::update(...)


  Commit: 4cd702e9ea936673f9259d7fb126e429b17c4444
      https://github.com/gallery/gallery3/commit/4cd702e9ea936673f9259d7fb126e429b17c4444
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M modules/comment/classes/Comment/Controller/Admin/ManageComments.php
    M modules/comment/classes/Comment/Hook/CommentEvent.php
    M modules/exif/classes/Exif/Hook/ExifEvent.php
    M modules/exif/classes/Exif/Hook/ExifTask.php
    M modules/g2_import/classes/G2Import/G2Import.php
    M modules/g2_import/classes/G2Import/Hook/G2ImportEvent.php
    M modules/gallery/classes/Gallery/Controller/Admin/Maintenance.php
    M modules/gallery/classes/Gallery/Graphics.php
    M modules/gallery/classes/Gallery/Module.php
    M modules/gallery/orphans/libraries/drivers/Cache/Database.php
    M modules/gallery/tests/Cache_Test.php
    M modules/gallery/tests/Gallery_I18n_Test.php
    M modules/notification/classes/Notification/Hook/NotificationEvent.php
    M modules/rest/classes/Rest/Hook/RestEvent.php
    M modules/search/classes/Search/Hook/SearchEvent.php
    M modules/search/classes/Search/Hook/SearchTask.php
    M modules/tag/classes/Tag/Model/Tag.php
    M modules/tag/classes/Tag/Tag.php
    M modules/user/classes/User/Model/Group.php
    M modules/user/classes/User/Model/User.php

  Log Message:
  -----------
  Change DB::build()->delete(...) --> DB::delete(...)


  Commit: 56312e7f762981b63f0a4eac9500a8fbc3578646
      https://github.com/gallery/gallery3/commit/56312e7f762981b63f0a4eac9500a8fbc3578646
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M modules/gallery/tests/Cache_Test.php

  Log Message:
  -----------
  Change DB::build()->insert(...) --> DB::insert(...)


  Commit: d1eb47b97ec4d2f2bb0fc1d777200e546114795f
      https://github.com/gallery/gallery3/commit/d1eb47b97ec4d2f2bb0fc1d777200e546114795f
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M modules/comment/classes/Comment/Model/Comment.php
    M modules/gallery/classes/Gallery/Graphics.php
    M modules/gallery/classes/Gallery/Hook/GalleryInstaller.php
    M modules/gallery/classes/Gallery/Hook/GalleryTask.php
    M modules/gallery/classes/Gallery/Model/Item.php
    M modules/gallery/tests/Database_Test.php
    M modules/gallery/tests/xss_data.txt
    M modules/search/classes/Search/Search.php
    M modules/tag/classes/Tag/Hook/Rest/Tags.php
    M modules/user/classes/User/Controller/Admin/Users.php
    M modules/user/classes/User/Model/Group.php
    M modules/user/classes/User/Model/User.php
    M modules/user/views/admin/users.html.php

  Log Message:
  -----------
  More changes in DB syntax...
- DB::build()->from(...)->select(...) --> DB::select(...)->from(...)
- DB::build()->from(...)              --> DB::select()->from(...)
-   ->count_records()                 -->   ->execute()->count()


  Commit: 65bb488f329aa28d8c20f09a27e0b44e91004d0e
      https://github.com/gallery/gallery3/commit/65bb488f329aa28d8c20f09a27e0b44e91004d0e
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M modules/gallery/classes/Gallery/Hook/GalleryInstaller.php
    M modules/gallery/classes/Gallery/Hook/GalleryTask.php
    M modules/gallery/tests/Cache_Test.php
    M modules/gallery/tests/xss_data.txt
    M modules/server_add/classes/ServerAdd/Controller/ServerAdd.php
    M modules/user/classes/User/Controller/Admin/Users.php

  Log Message:
  -----------
  Change remaining 11 DB::build() instances by hand.


  Commit: fc12011f409f38f4027b1fed84ed7c692f03eaca
      https://github.com/gallery/gallery3/commit/fc12011f409f38f4027b1fed84ed7c692f03eaca
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-04-09 (Tue, 09 Apr 2013)

  Changed paths:
    M modules/comment/classes/Comment/Controller/Admin/ManageComments.php
    M modules/comment/classes/Comment/Hook/CommentEvent.php
    M modules/comment/classes/Comment/Hook/CommentInstaller.php
    M modules/comment/classes/Comment/Hook/CommentRss.php
    M modules/comment/classes/Comment/Model/Comment.php
    M modules/comment/tests/Comment_Model_Test.php
    M modules/exif/classes/Exif/Exif.php
    M modules/exif/classes/Exif/Hook/ExifEvent.php
    M modules/exif/classes/Exif/Hook/ExifTask.php
    M modules/exif/classes/Exif/Hook/ExifTheme.php
    M modules/g2_import/classes/G2Import/G2Import.php
    M modules/g2_import/classes/G2Import/Hook/G2ImportEvent.php
    M modules/gallery/classes/Gallery/Access.php
    M modules/gallery/classes/Gallery/Controller/Admin/Maintenance.php
    M modules/gallery/classes/Gallery/Controller/L10nClient.php
    M modules/gallery/classes/Gallery/Controller/Packager.php
    M modules/gallery/classes/Gallery/Graphics.php
    M modules/gallery/classes/Gallery/Hook/GalleryEvent.php
    M modules/gallery/classes/Gallery/Hook/GalleryInstaller.php
    M modules/gallery/classes/Gallery/Hook/GalleryTask.php
    M modules/gallery/classes/Gallery/I18n.php
    M modules/gallery/classes/Gallery/Item.php
    M modules/gallery/classes/Gallery/L10nClient.php
    M modules/gallery/classes/Gallery/L10nScanner.php
    M modules/gallery/classes/Gallery/Model/Item.php
    M modules/gallery/classes/Gallery/Module.php
    M modules/gallery/config/database.php
    M modules/gallery/orphans/libraries/drivers/Cache/Database.php
    M modules/gallery/tests/Cache_Test.php
    M modules/gallery/tests/Database_Test.php
    M modules/gallery/tests/Gallery_I18n_Test.php
    M modules/gallery/tests/Item_Helper_Test.php
    M modules/gallery/tests/Item_Model_Test.php
    M modules/gallery/tests/xss_data.txt
    M modules/notification/classes/Notification/Hook/NotificationEvent.php
    M modules/notification/classes/Notification/Notification.php
    M modules/organize/classes/Organize/Controller/Organize.php
    M modules/rest/classes/Rest/Hook/RestEvent.php
    M modules/search/classes/Search/Hook/SearchEvent.php
    M modules/search/classes/Search/Hook/SearchTask.php
    M modules/search/classes/Search/Search.php
    M modules/server_add/classes/ServerAdd/Controller/ServerAdd.php
    M modules/tag/classes/Tag/Hook/Rest/Tags.php
    M modules/tag/classes/Tag/Model/Tag.php
    M modules/tag/classes/Tag/Tag.php
    M modules/user/classes/User/Controller/Admin/Users.php
    M modules/user/classes/User/Hook/UserInstaller.php
    M modules/user/classes/User/Model/Group.php
    M modules/user/classes/User/Model/User.php
    M modules/user/views/admin/users.html.php

  Log Message:
  -----------
  Merge pull request #280 from shadlaws/orm_and_db_fixes

Orm and db fixes


Compare: https://github.com/gallery/gallery3/compare/37c83f14658a...fc12011f409f

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

__[ g a l l e r y - c h e c k i n s ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.