Commit graph

7287 commits

Author SHA1 Message Date
Colin Kuskie
522d87fed2 forward port of File/Image - Storage/Storage::Image object alignment fix 2007-06-22 23:26:13 +00:00
Colin Kuskie
4de39b7fe5 forward port of getAllInstances fixes, so that it never returns undef but logs warnings instead 2007-06-22 17:55:25 +00:00
James Tolley
a640222a29 improved SQLForm field default search modes 2007-06-21 22:43:57 +00:00
JT Smith
ec67b2e8fe - rfe: snippets should have titles too!
- Added a mechanism for using external folders for custom code. See 
   sbin/preload.custom.example for details.
2007-06-21 17:58:58 +00:00
James Tolley
d32d4112f4 SQLForm - simple weighted sorting, various fixes 2007-06-20 18:46:35 +00:00
Colin Kuskie
fa74d270b1 use max(sequenceNumber) instead of count(*) to prevent any future sequenceNumber clashes 2007-06-20 05:01:44 +00:00
Colin Kuskie
777d291206 remove debugging code 2007-06-20 04:56:46 +00:00
Colin Kuskie
6011f02021 fix for non-existant mode column in 7.4.0 for workflow activity upgrade 2007-06-20 04:56:08 +00:00
Colin Kuskie
07582c34d6 Forward port of Workflow Activity sequencing bug. create uses count, but
delete did not reorder the existing activities.  This would allow duplicate
sequenceNumbers in the db.

The upgrade script will resequence and fix all activities in all workflows.
2007-06-20 04:43:11 +00:00
Colin Kuskie
67b92500cc forward upgrade script work for fixing broken assets sizes for Image, File 2007-06-19 22:56:58 +00:00
Colin Kuskie
8ced11c8ab make the user invite email templatable 2007-06-18 05:05:18 +00:00
JT Smith
9248570f79 Added Newsletter Asset (Funded by United Knowledge) 2007-06-16 19:33:12 +00:00
Colin Kuskie
245c7b947e missing update for user invite template, error display 2007-06-15 22:38:21 +00:00
Frank Dillon
a2098b828a removed debug code accidentally left in 2007-06-15 22:30:23 +00:00
Colin Kuskie
92151cdf7b documentation for new macro 2007-06-15 21:29:12 +00:00
Frank Dillon
2065b3257e tempaltes for private messaging 2007-06-15 18:18:06 +00:00
Frank Dillon
e0c86a8915 inbox changes 2007-06-15 18:17:12 +00:00
Frank Dillon
81e60f0a28 private message templates 2007-06-15 18:16:39 +00:00
Frank Dillon
fe2354c65e added gotcha for custom tempaltes 2007-06-14 20:15:56 +00:00
Frank Dillon
409813ed0f added private messaging 2007-06-14 20:13:58 +00:00
Frank Dillon
0dae2cf96f Macro for displaying new private message alerts to users 2007-06-14 20:11:22 +00:00
Frank Dillon
82e020dc4f Changes to WebGUI for Private Messaging 2007-06-14 20:10:33 +00:00
Colin Kuskie
cc7687c877 add test section headers, for documentation 2007-06-14 05:17:38 +00:00
Colin Kuskie
cde6e72d93 add tests for updateMetaDataField, which adds a value specific to the asset 2007-06-14 05:11:43 +00:00
Colin Kuskie
16c411ce59 put bugfix in right place 2007-06-13 23:11:20 +00:00
Colin Kuskie
e3092f0aa8 Fixed a bug where due to the lack of a cached Storage object,
the assetSize in the db was set wrong.  This happened when a File/Image
was added, and when it is committed. Editing the Asset would fix it, but
once it was committed, the files in the Storage area were not added.

List of Changes:
1) Removed setSize from File/Image.pm. It can inherit from File.
2) In Asset::File::processPropertiesFromFormPost, set _storageLocation to the Storage
   object.  Remove the call to setSize since it's done in ->update
3) In Asset::File::setSize, fetch the current storage object via getStorageLocation.
4) In Asset::File::update, move the call to update after the filesystem work.  This
   way changes in the size of the permissions file get accounted for.
5) In Asset::update, call setSize after all changes, regardless of whether or not
   properties have changed.
6) In Asset::setSize, refactor out the size calculation and update $self's properties
   cache so that long running scripts have the right size.
2007-06-13 23:06:44 +00:00
JT Smith
fc2736e553 the icon for the newsletter asset that's coming shortly 2007-06-13 21:35:34 +00:00
JT Smith
87a1db4392 made it far less verbose 2007-06-13 19:54:13 +00:00
JT Smith
c0cba2a467 hadn't been brought up to spec 2007-06-13 15:16:45 +00:00
JT Smith
ee4f857d59 should be using ^Extras; macro instead 2007-06-13 14:14:27 +00:00
Colin Kuskie
4875df88f7 testing deleteMetaDataField 2007-06-13 04:50:43 +00:00
Colin Kuskie
79fe687c7f add more tests to check out getMetaFields, all and one at a time 2007-06-13 04:37:28 +00:00
Colin Kuskie
213c161581 Add a comment to AssetMetaData.t
Add more tests to Session.t to check the $session->user method.
2007-06-12 03:41:41 +00:00
Yung Han Khoe
d1f5dcfd9d Updated help for Search Asset. 2007-06-11 22:48:04 +00:00
Yung Han Khoe
fdd11a2b7b fix: Package deploy: hidden assets become visible 2007-06-11 16:26:03 +00:00
Yung Han Khoe
e5e2c4b2ca Added assetId to template vars in search asset. 2007-06-11 15:32:09 +00:00
Colin Kuskie
2893409d05 add uiLevel tests for Visitor and Admin 2007-06-10 22:55:52 +00:00
Colin Kuskie
ebf093775e remove debugging code from Auth for user invites 2007-06-10 22:05:49 +00:00
Colin Kuskie
95506668ca add a test for the sessionId macro 2007-06-10 20:47:41 +00:00
JT Smith
c9266c4588 - Added a simple Single Sign On mechanism.
- Added the SessionId macro.
2007-06-10 17:52:51 +00:00
JT Smith
f25553394e fixed wiki master problem 2007-06-10 17:41:13 +00:00
Colin Kuskie
21c4fcb75f This patch adds user invitations, a way for existing users on a site
to send an email to their friends and invite them to create an account
on the site.  The feature is enabled or disabled in the site Settings.
(Operation/Settings.pm)

It is implemented as a new operation, Invite (Operation/Invite.pm,
Help/Invite.pm, i18n/English/Invite.pm), and the option is displayed
as an option on the user's account screen. (Operation/Shared.pm).
The form is templated, and lives in the Invite namespace.  Once
the invitation is submitted, if the user's email address is not
already in WebGUI, an email is sent and a record is stored in
the userInvitations table.

When the friend gets the invitation, they are taken to the account
creation screen, which conveniently has their email address already
filled in.  This required changes in the Auth modules (Auth.pm, Auth/*.pm),
and ProfileField.pm.  The latter was so that profile fields can have
their values manually set.  The former changes handle inserting the
email address, bypassing the anonymous registration check, and
updating the record in ther userInvitations table.

I refactored some code out of the AdminConsole for finding the url
back to the site and added it to Session/Url.pm.  The method is
called getBackToSiteUrl.
2007-06-10 16:38:43 +00:00
Colin Kuskie
32f7866f3b Added a TODO in AssetPackage and changed a comment inside AssetLineage for clarity 2007-06-07 20:02:43 +00:00
Colin Kuskie
0155c43c6e commit product manager produce ID display RFE 2007-06-07 04:59:52 +00:00
Colin Kuskie
efea7c9685 fix a typo in the AssetMetaData, and add code to WebGUI::Test to force all output onto STDOUT. Step 1 to smolder 2007-06-06 23:40:14 +00:00
Colin Kuskie
1718410c10 forward port Article template fix from 7.3 branch 2007-06-06 18:22:09 +00:00
Yung Han Khoe
17b86ba9c7 fix: Order of content position loops in Page Layout 2007-06-06 15:28:07 +00:00
Yung Han Khoe
097d71cd65 Changed the default alignment for images to a XHTML 1.0 Strict compliant value 2007-06-06 14:38:01 +00:00
Colin Kuskie
804bad9a48 very beginnings of an Asset MetaData test, along with an API extension to make adding metaData possible 2007-06-05 23:33:50 +00:00
Colin Kuskie
2af436a0ad Add the ability for posts to have metadata. The option is turned off by default,
but can be enabled in the CS.  If the option is turned on, and metadata is
enabled on the site, then sets of template variables will be made available
to the Post Form template, the Thread view template, and the CS view template.
2007-06-05 03:32:00 +00:00