Commit Graph

  • 8fee0af63c MINOR: Updated merge-info Sam Minnee 2008-11-10 02:29:40 +00:00
  • 648a459060 Ensure that Requirements backend instance is preserved between tests Sam Minnee 2008-11-10 01:13:42 +00:00
  • f7da9a3637 Reformatted memory usage to be more concise Sam Minnee 2008-11-10 01:13:04 +00:00
  • bf5493d703 #2997 - Added <% require %> tag to SSViewer Sam Minnee 2008-11-10 01:01:55 +00:00
  • 4452e9bb5b ENHANCEMENT Updated UpgradeSiteTreePermissionSchemaTask to rename obsolete database columns ENHANCEMENT Calling UpgradeSiteTreePermissionSchemaTask from SiteTree->requireDefaultRecords as a temporary workaround for missing migration infrastructure. This means that upgrading the schema for 2.3 can be done without manual task triggers, just the usual dev/build (see http://open.silverstripe.com/ticket/2847#comment:4) Ingo Schommer 2008-11-09 23:58:48 +00:00
  • 117806756c ENHANCEMENT Added Database->renameField() and Database->dontRequireField() ENHANCEMENT Added DatabaseTest Ingo Schommer 2008-11-09 23:56:24 +00:00
  • 3cfd4d84a9 MINOR: type enviroment -> environment Normann Lou 2008-11-09 23:25:02 +00:00
  • e6a95566d9 MINOR Removed obsolete code from MySQLDatabase Ingo Schommer 2008-11-09 23:21:16 +00:00
  • b4977f8500 Added default for HTTP_USER_AGENT Sam Minnee 2008-11-09 22:40:08 +00:00
  • 4f6170c265 BUGFIX: Better initial-site-setup boundary condition checking needed after the manifest builder update Sam Minnee 2008-11-09 22:11:25 +00:00
  • c6be7af88f ENHANCEMENT Better CLI output for browsing dev/tests Ingo Schommer 2008-11-09 15:34:29 +00:00
  • c7ff6016b8 BUGFIX Setting Director::set_site_mode('site') in RootURLController in newly added init() method, which fixes Translatable::choose_site_lang(). The original bug was a wrong selected language in the <meta> tags through SiteTree->MetaTags() Ingo Schommer 2008-11-09 14:20:19 +00:00
  • e91de0c1f8 MINOR Removed duplicate dev/simpletest, already present in thirdparty/simpletest Ingo Schommer 2008-11-08 00:21:31 +00:00
  • 954bf465a1 ENHANCEMENT Allowing to pass strings instead of arrays into FunctionalTest->assert*() methods, and convert them internally to arrays MINOR PHPDoc for FunctionalTest Ingo Schommer 2008-11-08 00:03:50 +00:00
  • 192078d3d2 BUGFIX Using uncached DataObject::get_one() calls in ModelAsController to avoid stale data with subsequent Director::test() calls which alter the page relations inbetween Ingo Schommer 2008-11-08 00:02:35 +00:00
  • 137b76e271 API CHANGE Deprecated DataObjectDecorator->augmentBeforeWrite(), use DataObjectDecorator->onBeforeWrite() API CHANGE Deprecated DataObjectDecorator->augmentPopulateDefaults(), use DataObjectDecorator->populateDefaults() API CHANGE Deprecated DataObjectDecorator->augmentDefaultRecords(), use DataObjectDecorator->requireDefaultRecords() API CHANGE Deprecated DataObjectDecorator->alternateCan(), use DataObjectDecorator->can() API CHANGE Deprecated DataObjectDecorator->alternateCanAddChildren(), use DataObjectDecorator->canAddChildren() API CHANGE Deprecated DataObjectDecorator->alternateCanView(), use DataObjectDecorator->canView() API CHANGE Deprecated DataObjectDecorator->alternateCanDelete(), use DataObjectDecorator->canDelete() API CHANGE Deprecated DataObjectDecorator->alternateCanEdit(), use DataObjectDecorator->canEdit() API CHANGE Deprecated DataObjectDecorator->alternateCanCreate(), use DataObjectDecorator->canCreate() ENHANCEMENT Added DataObject->onAfterDelete() and DataObjectDecorator->onAfterDelete() ENHANCEMENT Added stub methods to DataObjectDecorator for documentation purposes Ingo Schommer 2008-11-07 12:18:35 +00:00
  • cfde8adaee API CHANGE Removed Folder->userCan*() and File->userCan*()permissions and added more consistent behaviour with Folder->can*() and File->can*() ENHANCEMENT Allowing decoration of can*() methods in File and Folder Ingo Schommer 2008-11-07 12:17:42 +00:00
  • c30b5812d1 API CHANGE Don't include NULL returns in decorated methods called through Object->extend(), meaning empty method bodies in decorators won't confuse permission checks through $myObj->extend('canView') etc. Ingo Schommer 2008-11-07 12:09:39 +00:00
  • 429f81ed14 Bugfixes to Requirements alterations Sam Minnee 2008-11-07 02:24:31 +00:00
  • cbbedab5a2 MINOR: Changed die() to user_error() so that correct error level is returned Sam Minnee 2008-11-07 02:07:18 +00:00
  • e6c4d32dbc ARCHITECTURE #3034 wakeless: Make Requirements mockable by pushing the meat of the functionality to Requirements_Backend Sam Minnee 2008-11-07 02:06:28 +00:00
  • bfc7c7717b Removed redundant code Sam Minnee 2008-11-06 21:01:12 +00:00
  • 5a0db59850 BUGFIX: Fixed broken dev/build compilation of manifest Sam Minnee 2008-11-06 20:57:07 +00:00
  • 2b0add5c72 APICHANGE: make DataObject::getField() visible to the public Normann Lou 2008-11-06 06:32:05 +00:00
  • c1d6e82248 API CHANGE: Removed manifest's dependency on database, by removing hastable information [17:47:04] dquote> API CHANGE: Deprecate ClassInfo::ready() in favour of Security::database_is_ready() dquote> API CHANGE: Create DataObject::has_own_table() to determine whether a DataObject has a table without looking at it. dquote> API CHANGE: Exclude /tests/ directories from the manifest entirely except when tests are being run. dquote> API CHANGE: Added ?usetestmanifest=1 flag to access the test manifest outside of test execution. dquote> API CHANGE: Simplified Core.php manifest include to just call ManifestBuilder::include_manifest() - manifest takes care of its own cache file Sam Minnee 2008-11-06 04:51:25 +00:00
  • 728e691a1a BUGFIX Added SSViwer support for i18n namespaces in templates with <% _t('MyNamespace.MyEntity', ... %>, to work around magically added namespaces from the parsed template file. Those auto-namespaces were logically not working in includes, as the parsing context is always the including template. Legacy support for auto-namespaces is still present due to its high usage. ENHANCEMENT Added unit tests for i18n template parsing Ingo Schommer 2008-11-06 02:50:14 +00:00
  • fdeaececb1 BUGFIX Respecting $dontEscape in FormAction Ingo Schommer 2008-11-05 23:21:50 +00:00
  • c172e823ea BUGFIX Using empty title in TreeDropdownField->Field() if the related DataObject cannot be found Ingo Schommer 2008-11-05 15:58:46 +00:00
  • ccd149f689 BUGFIX Reverted text replacement performance improvement in SQLQuery - it was replacing more ocurrences via str_replace() than the previous implementation based on arrays, which broke queries augmented by Translatable (originally committed in r60468 and r54044) Ingo Schommer 2008-11-05 14:23:17 +00:00
  • 486ae69f09 #2135 - Disallow XSS bug in development RestfulService use Sam Minnee 2008-11-05 05:04:32 +00:00
  • f3419bf046 BUGFIX #2243: Fixed ViewableData::Odd Sam Minnee 2008-11-05 04:31:53 +00:00
  • 33219fcad2 BUGFIX #2954 - Fixed support for negative numbers in decimal fields Sam Minnee 2008-11-05 04:10:48 +00:00
  • d145c50cc2 ENHANCEMENT Folder name can now be used for uploading files. Ticket #3026 - Thanks simon_w! Sean Harvey 2008-11-05 03:56:22 +00:00
  • 020a92eda8 BUGFIX #2992: Fixed T_PAAMAYIM_NEKUDOTAYIM error in RequestHandler Sam Minnee 2008-11-05 01:59:27 +00:00
  • bb20921fef BUGFIX: fixed canPublish() so it actually got the member if none was passed and fixed notice with $results not existing Will Rossiter 2008-11-05 01:05:57 +00:00
  • 5f177b9f08 BUGFIX #2056: Removed all references to deprecated Member::isAdmin() Sam Minnee 2008-11-04 23:31:33 +00:00
  • 72d90ab270 Set default edit rights on pages to be only administrators API CHANGE: Use return value of alternateCanPublish() BUGFIX: Fixed the Link() value for homepage BUGFIX: Allow DBField::__construct() without a name API CAHNGE: Allow augmentPopulateDefaults on data object decorators Sam Minnee 2008-11-04 23:17:14 +00:00
  • 61a856503e BUGFIX Calling parent constructor in ComplexTableField_ItemRequest, was confusing RequestHandler Ingo Schommer 2008-11-04 13:52:03 +00:00
  • dc8876223e MINOR Code formatting on HtmlEditorField functions MINOR phpDoc of HtmlEditorField Sean Harvey 2008-11-04 04:12:54 +00:00
  • fab14c4b18 MINOR: Improve robustness of some of the widget definition Sam Minnee 2008-11-04 02:21:09 +00:00
  • 572f6728fb ENHANCEMENT Added UpgradeSiteTreePermissionSchemaTask as a manual migration of SiteTree schema upgrades in 2.3 (see #2847) Ingo Schommer 2008-11-03 15:27:25 +00:00
  • ca6d92341e API CHANGE Changed SiteTree->Viewers to SiteTree->CanViewType, Changed SiteTree->Editors to SiteTree->CanEditType (see #2847) API CHANGE Changed SiteTree->ViewersGroup has_one relationship to SiteTree->ViewerGroups has_many relationship (see #2847) API CHANGE Changed SiteTree->EditorsGroup has_one relationship to SiteTree->EditorGroups has_many relationship (see #2847) ENHANCEMENT Added 'Inherit' flag to SiteTree->CanViewType and SiteTree->CanEditType (see #2419) ENHANCEMENT Added unit tests for SiteTree permissions BUGFIX Checking recursively for permissions on children with SiteTree->canDelete() BUGFIX Disallow SiteTree->canEdit() if SiteTree->canView() is not granted Note: Use dev/tasks/UpgradeSiteTreePermissionSchemaTask/run to migrate legacy data to the new schema as outlined above Ingo Schommer 2008-11-03 14:52:35 +00:00
  • ab3ef0196d MINOR Moved tasks from sapphire/cli to new folder sapphire/tasks Ingo Schommer 2008-11-03 13:59:53 +00:00
  • c4f3bc962f ENHANCEMENT Only logging out users on Security::permissionFailure() is called in non-ajax context. For ajax requests, we now return a 403 HTTP Status in a HTTPResponse Object, with a ":NOTLOGGEDIN" body for backwards compatibility. If a logout+redirection is required after an ajax-request, this should be handled by the clientside. Ingo Schommer 2008-11-03 13:50:06 +00:00
  • c998006b2c MINOR Fixed PHP Notices in Member.php Ingo Schommer 2008-11-03 13:48:04 +00:00
  • c539687eb2 MINOR Fixed PHP Notices in TreeMultiSelectField Ingo Schommer 2008-11-03 13:47:40 +00:00
  • 6ef535d6ce BUGFIX TableField delete row inconsistency with TableListField which caused table fields to not fade the row out Sean Harvey 2008-11-03 05:00:43 +00:00
  • 1817fc6051 Simplified CliTestReporter output so that buildbot can read it Sam Minnee 2008-11-03 04:51:27 +00:00
  • b93a8257f4 BUGFIX Fixed call to Member function that didn't exist MINOR Check if OldPassword data exists before running checkPassword() Sean Harvey 2008-11-03 03:41:14 +00:00
  • 99589e626f BUGFIX Fix potential PHP notice opening a ComplexTableField popup MINOR Code formatting in ComplexTableField Sean Harvey 2008-11-03 02:33:08 +00:00
  • e57b7651ef ENHANCEMENT Unit tests for Member->inGroup() and Member->inGroups() ENHANCEMENT Added a "strict-mode" for Member->inGroup() and Member->inGroups() to determine true membership to a group (without inheritance) Ingo Schommer 2008-11-03 01:57:16 +00:00
  • 5556e1f5ae MINOR Formatting in Group.php Ingo Schommer 2008-11-03 01:55:59 +00:00
  • c573d51d4c BUGFIX: Fixed bug with ID-less generation of YamlFixture entries that trigger $this->write() in setters Sam Minnee 2008-11-03 01:28:18 +00:00
  • 8fb4ea1eaa BUGFIX Fixed SearchContextTest to comply to new scaffolded searchfield in Text DBFIeld Ingo Schommer 2008-11-02 21:24:56 +00:00
  • 65d5cf088f ENHANCEMENT Scaffolding TextField instead of TextareaField in Text DBField due to size Ingo Schommer 2008-11-02 21:07:09 +00:00
  • 6361a10834 MINOR Updated master language tables Ingo Schommer 2008-11-02 20:05:21 +00:00
  • 3edc358ead ENHANCEMENT Added fieldLabels() overloading to various DataObject subclasses. Use this method instead of directly calling _t() in getCMSFields(), and use fieldLabel('MyField') to get the label for a specific FormField. This way, we can transparently support formfield scaffolding and re-use the labels for search fields automatically. Ingo Schommer 2008-11-02 20:04:10 +00:00
  • eb4c950655 BUGFIX Reverted auto-detection of i18n statics like $db in DataObject through provideI18nEntities() - was getting too complicated with decorated properties. Overload DataObject->fieldLabels() or DataObjectDecorator->updateFieldLabels() instead Ingo Schommer 2008-11-02 20:01:49 +00:00
  • 30f8c74283 API CHANGE Removed DataObjectSet->consolidate(), use DataObjectSet->toNestedArray() Ingo Schommer 2008-11-02 00:57:25 +00:00
  • 52ed342fc2 MINOR formatting Ingo Schommer 2008-11-02 00:55:33 +00:00
  • eb38e4d9c8 API CHANGE Removed DataObjectSet->consolidateString() Ingo Schommer 2008-11-02 00:55:12 +00:00
  • 09564b0132 API CHANGE Renamed DataObjectDecorator->loadExtraDBFields() to loadExtraStatics() API CHANGE Renamed DataObjectDecorator->extraDBFields() to extraStatics() Ingo Schommer 2008-11-02 00:36:57 +00:00
  • 4f23d59636 git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65064 467b73ca-7a2a-4603-9d3b-597d59a354a9 Ingo Schommer 2008-11-02 00:29:11 +00:00
  • b5b11842f9 BUGFIX Checking for array existence before iterating through DataObjectDecorator->provideI18nEntities() Ingo Schommer 2008-11-02 00:27:33 +00:00
  • 5c4403d57e BUGFIX Dont instanciate abstract classes in i18nTextCollector Ingo Schommer 2008-11-02 00:26:34 +00:00
  • f06ae18409 API CHANGE Moved DataObject::get_by_url() to SiteTree::get_by_url() Ingo Schommer 2008-11-02 00:24:23 +00:00
  • d19dd96793 API CHANGE Marked DataObject->filledOut() deprecated Ingo Schommer 2008-11-02 00:17:39 +00:00
  • 0465365b51 MINOR Restructured code in Object.php to consistently have properties and important methods like __call() at the top of definitions (no logic changes). Added minor documentation. Ingo Schommer 2008-11-02 00:12:23 +00:00
  • d102a902b9 BUGFIX Collecting i18n entities for decorators separately from the decorated classes, as decorated properties like $db have to be stored in the module of the decorated, not in the module of the decorated class. Ingo Schommer 2008-11-01 23:16:45 +00:00
  • fd7bc64107 ENHANCEMENT Removed DataObjectDecorator->updateSummaryFieldsExcludeExtra() - was a straight copy of updateSummaryFields()... Ingo Schommer 2008-11-01 23:00:50 +00:00
  • c9da559151 ENHANCEMENT More solid fulltext checks against master language tables in i18nTextCollectorTest Ingo Schommer 2008-11-01 22:47:02 +00:00
  • 4e567adec9 ENHANCEMENT Using eval() in textcollector to test for valid PHP syntax Ingo Schommer 2008-11-01 19:05:16 +00:00
  • cc9cf5be06 MINOR rearranged methods in i18nTextCollector Ingo Schommer 2008-11-01 18:56:39 +00:00
  • 4f1d3913e1 ENHANCEMENT Added unit tests for i18nTextCollector handling of newlines in entity values Ingo Schommer 2008-11-01 18:55:27 +00:00
  • 0e71937ae6 MINOR Collecting entities for language master table with new i18nTextCollector functionality. The table is now sorted alphabetically by namespace and entity. Entities now include more translatable statics from DataObject subclasses like $db, $has_one etc. Ingo Schommer 2008-11-01 15:29:52 +00:00
  • bfb7a0d863 BUGFIX Different class_implements() usage without instanciating the class in i18nTextCollector - not all classes are instanciatable without arguments. This raises the minimum requirement for text collection to PHP 5.1+ Ingo Schommer 2008-11-01 14:49:37 +00:00
  • 72de4163b7 ENHANCEMENT Using namespaces for filenames in RequirementsTest Ingo Schommer 2008-11-01 14:04:31 +00:00
  • c0c4ff8a9d BUGFIX Fixed CsvBulkLoaderTest to comply to hasHeaderRow API change (r64806) Ingo Schommer 2008-11-01 13:47:01 +00:00
  • ff7a63cc37 MINOR Moved i18n tests into sapphire/tests/i18n subfolder Ingo Schommer 2008-11-01 13:45:04 +00:00
  • de7ed1aa3a BUGFIX Changed i18nTextCollectorTest to only trigger _t() calls in instance methods (they don't fully work in __construct()). Manually adding ClassInfo state for the fakewebroot needed to test textcollection - ManifestBuilder/ClassInfo currently don't support setting of other webroots, or flexible inclusion/exclusion of certain subfolders which would be necessary to do this without hacks. Ingo Schommer 2008-11-01 13:40:00 +00:00
  • 4ecb895b0a ENHANCEMENT Added i18nEntityProvider interface (see comments in #1625) incl. unit tests MINOR documentation for i18nTextCollector Ingo Schommer 2008-11-01 13:26:08 +00:00
  • b81ecaaa3f MINOR package information for ModuleManager Ingo Schommer 2008-11-01 13:24:14 +00:00
  • 7239db8c1b ENHANCEMENT Allowing translation of some static properties on DataObject and subclasses through DataObject->fieldLabels(). Part of the provideI18nEntities() work which was started in r64881 (see #1625) Ingo Schommer 2008-11-01 13:23:38 +00:00
  • f05f6d34b7 MINOR Moved js unit tests from sapphire/javascript/tests to sapphire/tests/javascript to have a consistent location for all tests on server- and clientside Ingo Schommer 2008-11-01 11:05:38 +00:00
  • 50ea85d47a MINOR: Tests for r64981 Sam Minnee 2008-10-31 02:16:51 +00:00
  • ba4a1acc68 BUGFIX: Don't allow calling of magically added methods via URL unless explicitly listed in allowed_actions Sam Minnee 2008-10-31 02:16:25 +00:00
  • e9f65ed8e1 BUGFIX Fixed wrong case of class names for ImageIFrameField causing errors Sean Harvey 2008-10-31 02:09:04 +00:00
  • 132957b5c2 API CHANGE #2922: RequestHandler:: now inherit Sam Minnee 2008-10-30 22:28:01 +00:00
  • cd699e3d89 API CHANGE #2857 - Renamed RequestHandlingData to RequestHandler Sam Minnee 2008-10-30 22:03:21 +00:00
  • 185f81492e Text scaffolds to a TextareaField, not a TextField Andrew O'Neil 2008-10-30 22:02:20 +00:00
  • 672ca89c0b API CHANGE #2698 ajshort: URL handler only passes control to subclasses of RequestHandlingData Sam Minnee 2008-10-30 21:51:59 +00:00
  • ae0bbfb2c0 #2975 - Malformed javascript language string (ajshort) Andrew O'Neil 2008-10-30 21:39:03 +00:00
  • 132f4ae5ca CurrencyField::jsValidation() needs to register its validateCurrency function mulitiple times with different FormID for working in a popup of ComplexTableField where FormID is changed. In general all Form Fields should imply with this rule if a page contain mulitiple forms, but this is not under our current developing cycle, since our form fields validation is changing to use jQuery. Normann Lou 2008-10-30 01:02:57 +00:00
  • 84db28eb10 FEATURE Collect i18n Entities from dynamic PHP code - useful to translate statics. Added DataObject->provideI18nEntities() and i18nTextCollector->collectFromEntityProviders(). See #1625 FEATURE Making DataObject attributes translatable through i18n class, e.g. $db and all relation statics. Use DataObject->fieldLabels() to access translated attributes. ENHANCEMENT Ignoring entity-names with $ signs (most likely dynamic properties) in i18nTextCollector->collectFromCode() Ingo Schommer 2008-10-29 21:07:17 +00:00
  • 076fcde635 Deleted SmallerThanFilter - please use LessThanFilter Sean Harvey 2008-10-29 20:24:10 +00:00
  • 41075078fd BUGFIX Fixed title-handling in FormAction, regression from r64410 Ingo Schommer 2008-10-29 16:12:23 +00:00
  • 07bca16af6 BUGFIX Fixed missing $H() reference in i18n.js (#2989) ENHANCEMENT Added unit tests for i18n.js Ingo Schommer 2008-10-29 13:20:38 +00:00
  • 1c435dfaee FEATURE Added JavaScript unit tests with jQuery QUnit. Can be viewed similiarly to PHPUnit tests through dev/jstests URL. Uses an <iframe> to include all tests. Ingo Schommer 2008-10-29 13:19:01 +00:00
  • c013b02dc8 MINOR Code formatting in TextareaField->Field() Sean Harvey 2008-10-29 03:13:38 +00:00
  • f5e636ac43 Changed default # of rows on HTMLEditorField from 15 to 30 Sam Minnee 2008-10-29 02:39:09 +00:00