horde.git
16 years agoMore additions based on some discussion with Gunnar in IRC:
Michael J. Rubinsky [Sat, 12 Sep 2009 15:06:36 +0000 (11:06 -0400)]
More additions based on some discussion with Gunnar in IRC:
 - Allow specifying if a resource is required or optional
 - Add a response_type property to resources. Specifies if REQUESTS are
   either always accepted, always denied, automatically accepted/denied
   based on actual availability, handled manually (still todo), or simply
   ignored (set response to NONE).

Also, try to clean up the implementation - trying to make it more likely
to be able to be extened for kolab. No idea if this helps of not though ;)

16 years agoMove checkResources() to Kronolith::, and out of the concrete Event_Sql driver.
Michael J. Rubinsky [Fri, 11 Sep 2009 23:42:07 +0000 (19:42 -0400)]
Move checkResources() to Kronolith::, and out of the concrete Event_Sql driver.

Move code for auto-accepting resources out of the Event driver and put
it into Kronolith:: Call it from Kronolith_Event::save() method (not 100%
sure about leaving it there, or just calling it in client code before saving
where appropriate).

16 years agoRename sql script
Michael J. Rubinsky [Fri, 11 Sep 2009 19:21:27 +0000 (15:21 -0400)]
Rename sql script

16 years agoLots of stuff:
Michael J. Rubinsky [Fri, 11 Sep 2009 19:09:15 +0000 (15:09 -0400)]
Lots of stuff:

- Move resource viewing/CRUD related pages to resources/*
- Have Kronolith_Resource objects present a Horde_Share_Object-like interface
- Remove the Resource link from the menu - put it in the panel under the "Manage My Calendars" link
- Various tweaks/corrections

16 years agoAdd a link in Kronolith's menu for the resource page
Michael J. Rubinsky [Fri, 11 Sep 2009 16:03:49 +0000 (12:03 -0400)]
Add a link in Kronolith's menu for the resource page

16 years agoFix logic and implement a delete() method for removing resources
Michael J. Rubinsky [Fri, 11 Sep 2009 16:02:43 +0000 (12:02 -0400)]
Fix logic and implement a delete() method for removing resources
from storage

16 years agoClear resources when clearing attendees page as well
Michael J. Rubinsky [Fri, 11 Sep 2009 16:01:38 +0000 (12:01 -0400)]
Clear resources when clearing attendees page as well

16 years agoTweak labels now that these are for resources as well
Michael J. Rubinsky [Thu, 10 Sep 2009 16:13:46 +0000 (12:13 -0400)]
Tweak labels now that these are for resources as well

16 years agoRemove some cruft now that we can do this via the UI properly now.
Michael J. Rubinsky [Thu, 10 Sep 2009 16:13:02 +0000 (12:13 -0400)]
Remove some cruft now that we can do this via the UI properly now.

16 years agoOnly attempt to remove resources from the event if they have actually
Michael J. Rubinsky [Thu, 10 Sep 2009 16:12:20 +0000 (12:12 -0400)]
Only attempt to remove resources from the event if they have actually
accepted the event.

16 years agonotify user if a requested resource rejects invitation when saving event
Michael J. Rubinsky [Thu, 10 Sep 2009 16:11:12 +0000 (12:11 -0400)]
notify user if a requested resource rejects invitation when saving event

16 years agoInitial adding of resource to an event from the attendees page.
Michael J. Rubinsky [Thu, 10 Sep 2009 14:28:57 +0000 (10:28 -0400)]
Initial adding of resource to an event from the attendees page.

16 years agoShow only resource calendars on the event form when we are editing a
Michael J. Rubinsky [Thu, 10 Sep 2009 14:27:44 +0000 (10:27 -0400)]
Show only resource calendars on the event form when we are editing a
resource's calendar.

16 years agoAdd basic permission checking to Kronolith::listResources()
Michael J. Rubinsky [Thu, 10 Sep 2009 14:26:20 +0000 (10:26 -0400)]
Add basic permission checking to Kronolith::listResources()

16 years agoAdd a setResources() method similar to setAttendees() for bulk setting
Michael J. Rubinsky [Thu, 10 Sep 2009 14:13:52 +0000 (10:13 -0400)]
Add a setResources() method similar to setAttendees() for bulk setting
the local resources array

16 years agoremove commented out code
Michael J. Rubinsky [Thu, 10 Sep 2009 14:12:52 +0000 (10:12 -0400)]
remove commented out code

16 years agoMove hasPermisson to the base class, implement ::get() to behave like
Michael J. Rubinsky [Wed, 9 Sep 2009 19:31:28 +0000 (15:31 -0400)]
Move hasPermisson to the base class, implement ::get() to behave like
a share.

16 years agotypos
Michael J. Rubinsky [Wed, 9 Sep 2009 19:30:54 +0000 (15:30 -0400)]
typos

16 years agouse Kronolith::getInternalCalendar() here as well
Michael J. Rubinsky [Wed, 9 Sep 2009 19:30:28 +0000 (15:30 -0400)]
use Kronolith::getInternalCalendar() here as well

16 years agoExperiment with getting either a share or resource here
Michael J. Rubinsky [Wed, 9 Sep 2009 19:10:56 +0000 (15:10 -0400)]
Experiment with getting either a share or resource here

16 years agolistEvents:: isn't detailed enough for this...manually compare
Michael J. Rubinsky [Wed, 9 Sep 2009 18:49:02 +0000 (14:49 -0400)]
listEvents:: isn't detailed enough for this...manually compare
start/end times to determine if an event collides.

Add basic hasPermission method, not sure if it's really needed yet.

16 years agoAdd resources to list of attendees returned from this method
Michael J. Rubinsky [Wed, 9 Sep 2009 18:48:21 +0000 (14:48 -0400)]
Add resources to list of attendees returned from this method

16 years agoEasier way of exlcuding the current event from checking resource availability.
Michael J. Rubinsky [Wed, 9 Sep 2009 00:02:28 +0000 (20:02 -0400)]
Easier way of exlcuding the current event from checking resource availability.

16 years agoNo autocompletion for resources (yet??)
Michael J. Rubinsky [Wed, 9 Sep 2009 00:01:29 +0000 (20:01 -0400)]
No autocompletion for resources (yet??)

16 years agoClarify why we are doing this bit of code here...
Michael J. Rubinsky [Wed, 9 Sep 2009 00:01:02 +0000 (20:01 -0400)]
Clarify why we are doing this bit of code here...

16 years agoFix passing the event date to the attendee form.
Michael J. Rubinsky [Tue, 8 Sep 2009 23:57:42 +0000 (19:57 -0400)]
Fix passing the event date to the attendee form.

16 years agoparse error
Michael J. Rubinsky [Tue, 8 Sep 2009 17:22:18 +0000 (13:22 -0400)]
parse error

16 years agoProperly pass the calender_id to ::listEvents()
Michael J. Rubinsky [Tue, 8 Sep 2009 17:20:27 +0000 (13:20 -0400)]
Properly pass the calender_id to ::listEvents()
is_a -> instanceof
check for error

16 years agoStqrt hashing out the isFree() method. Remove deprecated Resource.php file, phpdoc
Michael J. Rubinsky [Tue, 8 Sep 2009 16:44:47 +0000 (12:44 -0400)]
Stqrt hashing out the isFree() method. Remove deprecated Resource.php file, phpdoc

16 years agoFor now, don't use autocomplete for resource adding to attendees.inc -
Michael J. Rubinsky [Tue, 8 Sep 2009 16:43:07 +0000 (12:43 -0400)]
For now, don't use autocomplete for resource adding to attendees.inc -
we will need the resource's uid.

16 years agoresource event delettion, start building a useful resource page...
Michael J. Rubinsky [Fri, 4 Sep 2009 00:08:49 +0000 (20:08 -0400)]
resource event delettion, start building a useful resource page...

Make sure we delete the resource from the 'original' event when
directly deleting the resource's copy of the event.

Fix some variable/method names

Start building a resorce management page.

16 years agoBe sure to load the empty resources array when creating a new event.
Michael J. Rubinsky [Thu, 3 Sep 2009 22:39:30 +0000 (18:39 -0400)]
Be sure to load the empty resources array when creating a new event.

16 years agoActually remove this code
Michael J. Rubinsky [Thu, 3 Sep 2009 20:36:15 +0000 (16:36 -0400)]
Actually remove this code

16 years agoMore tweaks/fleshing out:
Michael J. Rubinsky [Thu, 3 Sep 2009 20:34:20 +0000 (16:34 -0400)]
More tweaks/fleshing out:

- Perms checks
- Remove Kronolith::getResource() - use the driver's getResource() method directly.
- have K_Driver_Resource::listResources() method return resource objects directly.

16 years agoFix method name
Michael J. Rubinsky [Thu, 3 Sep 2009 18:27:34 +0000 (14:27 -0400)]
Fix method name

16 years agoLarge bit of work on Kronolith Resources.
Michael J. Rubinsky [Thu, 3 Sep 2009 17:23:22 +0000 (13:23 -0400)]
Large bit of work on Kronolith Resources.

 - K_Event_Resource and k_Driver_Resource resources.
 - Implement viewing/editing a resource's events.
 - Show resource calendar title in panel
 - Get rid of lib/Resource.php (functionality moved to Kronolith::)

16 years agotweak panel display when displaying display_cals.
Michael J. Rubinsky [Wed, 2 Sep 2009 20:18:57 +0000 (16:18 -0400)]
tweak panel display when displaying display_cals.

Add displayed calendar(s) name, and allow expanding/collapsing.
Tweak text to display 'Return to calendars' when anonymous user.

16 years agoReplace calendar panel with a "Return to my calendars" link when displaying display_cals.
Michael J. Rubinsky [Wed, 2 Sep 2009 19:24:47 +0000 (15:24 -0400)]
Replace calendar panel with a "Return to my calendars" link when displaying display_cals.

16 years agoClarify the use of the display_cal parameter
Michael J. Rubinsky [Wed, 2 Sep 2009 16:43:31 +0000 (12:43 -0400)]
Clarify the use of the display_cal parameter

16 years agoSome ideas on feeling out a UI for administration...some of this will likely change
Michael J. Rubinsky [Thu, 20 Aug 2009 23:13:36 +0000 (19:13 -0400)]
Some ideas on feeling out a UI for administration...some of this will likely change

16 years agolistObjects API blurb
Michael J. Rubinsky [Thu, 20 Aug 2009 20:57:19 +0000 (16:57 -0400)]
listObjects API blurb

16 years agoimplement basic listing method...no filters yet.
Michael J. Rubinsky [Wed, 19 Aug 2009 14:47:53 +0000 (10:47 -0400)]
implement basic listing method...no filters yet.

16 years agoUse a static member to hold the Kronolith_Driver object
Michael J. Rubinsky [Wed, 19 Aug 2009 14:28:00 +0000 (10:28 -0400)]
Use a static member to hold the Kronolith_Driver object

16 years agoFirst attempt at displaying resource FreeBusy info on the attendee view
Michael J. Rubinsky [Wed, 19 Aug 2009 00:16:39 +0000 (20:16 -0400)]
First attempt at displaying resource FreeBusy info on the attendee view

16 years agoNeed to move the acceptance/denial of requests to the resource object
Michael J. Rubinsky [Tue, 18 Aug 2009 20:05:19 +0000 (16:05 -0400)]
Need to move the acceptance/denial of requests to the resource object
itself...otherwise, the internal properties array won't be serialized
before saving.

16 years agoCheck for cases where resource is not found
Michael J. Rubinsky [Tue, 18 Aug 2009 16:19:30 +0000 (12:19 -0400)]
Check for cases where resource is not found

16 years agoFix column name, check for error from DB
Michael J. Rubinsky [Tue, 18 Aug 2009 16:17:18 +0000 (12:17 -0400)]
Fix column name, check for error from DB

16 years agoBetter field name, add method for retrieving resources, supporting code...
Michael J. Rubinsky [Tue, 18 Aug 2009 16:13:20 +0000 (12:13 -0400)]
Better field name, add method for retrieving resources, supporting code...

16 years agoAllow updating of existing resources, some error checking etc...
Michael J. Rubinsky [Tue, 18 Aug 2009 15:10:52 +0000 (11:10 -0400)]
Allow updating of existing resources, some error checking etc...

16 years agoStart fleshing out the code to implement resources
Michael J. Rubinsky [Mon, 17 Aug 2009 21:06:15 +0000 (17:06 -0400)]
Start fleshing out the code to implement resources

16 years agoadd kronolith_resource table
Michael J. Rubinsky [Mon, 17 Aug 2009 18:37:53 +0000 (14:37 -0400)]
add kronolith_resource table

16 years agoadd sql upgrade script and update creation scripts for resource field
Michael J. Rubinsky [Mon, 17 Aug 2009 17:43:18 +0000 (13:43 -0400)]
add sql upgrade script and update creation scripts for resource field

16 years agoFlesh out some methods in Event and Driver to deal with auto accepting
Michael J. Rubinsky [Mon, 17 Aug 2009 17:40:06 +0000 (13:40 -0400)]
Flesh out some methods in Event and Driver to deal with auto accepting
resource requests

16 years agoStart stubbing out some ideas for Kronolith_Resource implementation
Michael J. Rubinsky [Mon, 17 Aug 2009 17:06:15 +0000 (13:06 -0400)]
Start stubbing out some ideas for Kronolith_Resource implementation

16 years agoAdd stub for Kronolith_Resource
Michael J. Rubinsky [Fri, 14 Aug 2009 18:55:08 +0000 (14:55 -0400)]
Add stub for Kronolith_Resource

16 years agoRecent Searches was mislabeled as Saved Searches
Michael M Slusarz [Tue, 29 Sep 2009 19:36:56 +0000 (13:36 -0600)]
Recent Searches was mislabeled as Saved Searches

16 years agoTicket #6875: Re-add OR searches to advanced search
Michael M Slusarz [Tue, 29 Sep 2009 19:04:25 +0000 (13:04 -0600)]
Ticket #6875: Re-add OR searches to advanced search

16 years agoImap Client test fixes
Michael M Slusarz [Tue, 29 Sep 2009 19:29:39 +0000 (13:29 -0600)]
Imap Client test fixes

Only do MODSEQ search if CONDSTORE is available.
Make the interval search give a bit more relevant results (small
timestamp could result in same day search, which is not useful for
eyeballing during testing)

16 years agoIn an OR clause, 2nd element must not contain the OR search key
Michael M Slusarz [Tue, 29 Sep 2009 19:02:34 +0000 (13:02 -0600)]
In an OR clause, 2nd element must not contain the OR search key

16 years agoAdd a Horde identifier to the generated Message-ID
Michael M Slusarz [Tue, 29 Sep 2009 06:27:22 +0000 (00:27 -0600)]
Add a Horde identifier to the generated Message-ID

16 years agoFix signatures for strict mode testing.
Gunnar Wrobel [Tue, 29 Sep 2009 17:46:03 +0000 (19:46 +0200)]
Fix signatures for strict mode testing.

16 years agoThese test suites need to not throw warnings when autoloading, so use the same
Chuck Hagenbuch [Tue, 29 Sep 2009 17:31:05 +0000 (13:31 -0400)]
These test suites need to not throw warnings when autoloading, so use the same
logic we do in Horde_Autoloader. Also include PHPUnit/Framework.php.

16 years agoWe never want to autoload the CacheMock class
Chuck Hagenbuch [Tue, 29 Sep 2009 17:30:24 +0000 (13:30 -0400)]
We never want to autoload the CacheMock class

16 years ago- include PHPUnit/Framework.php
Chuck Hagenbuch [Tue, 29 Sep 2009 17:24:29 +0000 (13:24 -0400)]
- include PHPUnit/Framework.php
- don't use include_once or silence calls in on-the-fly autoloader

16 years agoThis asserting was testing PHPUnit internals unintentionally. Remove it.
Chuck Hagenbuch [Tue, 29 Sep 2009 17:23:30 +0000 (13:23 -0400)]
This asserting was testing PHPUnit internals unintentionally. Remove it.

16 years agoDeactivate the sqlite based testing now and only run the test suite over the mock...
Gunnar Wrobel [Tue, 29 Sep 2009 15:53:01 +0000 (17:53 +0200)]
Deactivate the sqlite based testing now and only run the test suite over the mock driver.

16 years agoComplete testing.
Gunnar Wrobel [Tue, 29 Sep 2009 15:43:59 +0000 (17:43 +0200)]
Complete testing.

16 years agoThe mock driver.
Gunnar Wrobel [Tue, 29 Sep 2009 15:23:36 +0000 (17:23 +0200)]
The mock driver.

16 years agoAdd initial Date helper ported from Mad. Needs translation.
Chuck Hagenbuch [Tue, 29 Sep 2009 14:00:27 +0000 (10:00 -0400)]
Add initial Date helper ported from Mad. Needs translation.

16 years agoInclude PHPUnit/Framework.php
Chuck Hagenbuch [Tue, 29 Sep 2009 13:58:53 +0000 (09:58 -0400)]
Include PHPUnit/Framework.php

16 years agoAdd a smart quotes helper to Horde_View_Helper_Text. Probably belongs in Horde_Text_F...
Chuck Hagenbuch [Tue, 29 Sep 2009 13:50:37 +0000 (09:50 -0400)]
Add a smart quotes helper to Horde_View_Helper_Text. Probably belongs in Horde_Text_Filter?

16 years agoRequire PHPUnit/Framework.php and put autoloading back in its original place
Chuck Hagenbuch [Tue, 29 Sep 2009 13:32:35 +0000 (09:32 -0400)]
Require PHPUnit/Framework.php and put autoloading back in its original place

16 years agoFix MySQL tests to match new primary key definition
Chuck Hagenbuch [Tue, 29 Sep 2009 13:24:13 +0000 (09:24 -0400)]
Fix MySQL tests to match new primary key definition

16 years agoFigured out why I was getting errors; include PHPUnit/Framework.php
Chuck Hagenbuch [Tue, 29 Sep 2009 13:27:05 +0000 (09:27 -0400)]
Figured out why I was getting errors; include PHPUnit/Framework.php

16 years agoFix and test error handling of the class.
Gunnar Wrobel [Tue, 29 Sep 2009 13:04:10 +0000 (15:04 +0200)]
Fix and test error handling of the class.

16 years agoAlready provided by the base class.
Gunnar Wrobel [Tue, 29 Sep 2009 12:06:14 +0000 (14:06 +0200)]
Already provided by the base class.

16 years agoAllow different history drivers. This still uses Horde_History as a base class. It...
Gunnar Wrobel [Tue, 29 Sep 2009 11:53:51 +0000 (13:53 +0200)]
Allow different history drivers. This still uses Horde_History as a base class. It might be better to use Horde_History_Base but I wanted to keep the API 100% intact for now.

16 years agoFix paths to KolabScenarioTest.php and KolabTest.php
Matt Selsky [Tue, 29 Sep 2009 08:00:59 +0000 (04:00 -0400)]
Fix paths to KolabScenarioTest.php and KolabTest.php

16 years agoAdd a test suite to Horde_History. It does the db testing based on
Gunnar Wrobel [Tue, 29 Sep 2009 05:53:12 +0000 (07:53 +0200)]
Add a test suite to Horde_History. It does the db testing based on
sqlite which is suboptimal but I want a decent code coverage before
working on the package.

I will add a mock driver now and at a later timepoint there might be a
Kolab specific driver.

Once the mock driver is available the db testing will be turned off.

16 years agoYet more Search/Virtual Folder fixes/improvements
Michael M Slusarz [Tue, 29 Sep 2009 04:34:21 +0000 (22:34 -0600)]
Yet more Search/Virtual Folder fixes/improvements

Big addition: ability to right click user-editable Virtual Folders in
DIMP and receieve a context menu with Edit/Delete options.
Add notifications when deleting virtual folders.
Correctly populate label input when editing virtual folders.

16 years agoFix thread image positioning in dimp
Michael M Slusarz [Tue, 29 Sep 2009 04:34:08 +0000 (22:34 -0600)]
Fix thread image positioning in dimp

16 years agoFocus on search criteria field after creation.
Michael M Slusarz [Tue, 29 Sep 2009 04:28:11 +0000 (22:28 -0600)]
Focus on search criteria field after creation.

16 years agoFix missing name parameter
Michael M Slusarz [Tue, 29 Sep 2009 04:10:24 +0000 (22:10 -0600)]
Fix missing name parameter

16 years agoAdd deleted vfolders to eltdiff list.
Michael M Slusarz [Tue, 29 Sep 2009 04:09:57 +0000 (22:09 -0600)]
Add deleted vfolders to eltdiff list.

16 years agoFix English and indenting
Michael M Slusarz [Mon, 28 Sep 2009 23:29:55 +0000 (17:29 -0600)]
Fix English and indenting

16 years agoNeed this more complex way to resize the iframe after all images are loaded
Michael M Slusarz [Mon, 28 Sep 2009 22:53:19 +0000 (16:53 -0600)]
Need this more complex way to resize the iframe after all images are loaded

16 years agoDon't show info message if part is marked as attachment.
Michael M Slusarz [Mon, 28 Sep 2009 22:51:27 +0000 (16:51 -0600)]
Don't show info message if part is marked as attachment.

16 years agoAdd AND keyword to search UI
Michael M Slusarz [Mon, 28 Sep 2009 22:26:59 +0000 (16:26 -0600)]
Add AND keyword to search UI

16 years agoBetter naming for this function
Michael M Slusarz [Mon, 28 Sep 2009 22:07:12 +0000 (16:07 -0600)]
Better naming for this function

16 years agoTweak ZIP display a bit
Michael M Slusarz [Mon, 28 Sep 2009 05:40:19 +0000 (23:40 -0600)]
Tweak ZIP display a bit

16 years agoRename Virtual Folder section to Saved Searches
Michael M Slusarz [Mon, 28 Sep 2009 21:06:33 +0000 (15:06 -0600)]
Rename Virtual Folder section to Saved Searches

Hopefully, I will be introducing the code for filtering soon. This is an
example of a saved search that is not a virtual folder, so go ahead and
do the necessary UI changes now.

While I'm here, tweak a bit of the search page CSS.

16 years agoAbstract out folder tree image generation.
Michael M Slusarz [Mon, 28 Sep 2009 20:47:32 +0000 (14:47 -0600)]
Abstract out folder tree image generation.

Use this nicer tree in the advanced search page.

16 years agouse class constants here as well
Michael J. Rubinsky [Mon, 28 Sep 2009 20:29:17 +0000 (16:29 -0400)]
use class constants here as well

16 years agoUse exceptions from Horde_Lock
Michael J. Rubinsky [Mon, 28 Sep 2009 20:20:56 +0000 (16:20 -0400)]
Use exceptions from Horde_Lock

16 years agoUse Exceptions
Michael J. Rubinsky [Mon, 28 Sep 2009 20:08:07 +0000 (16:08 -0400)]
Use Exceptions

16 years agoBug #8606: Fix dragging over IFRAMEs
Michael M Slusarz [Mon, 28 Sep 2009 19:23:14 +0000 (13:23 -0600)]
Bug #8606: Fix dragging over IFRAMEs

16 years agoFix classname in unit tests. Please run these when changing the Db package!
Chuck Hagenbuch [Mon, 28 Sep 2009 19:20:08 +0000 (15:20 -0400)]
Fix classname in unit tests. Please run these when changing the Db package!

16 years agoRework the Constraint filter to take a coupler (an And constraint or an Or
Chuck Hagenbuch [Mon, 28 Sep 2009 18:54:06 +0000 (14:54 -0400)]
Rework the Constraint filter to take a coupler (an And constraint or an Or
constraint) as the default when adding multiple constraints to a field.

16 years agoRename Horde_Constraint_Compound to Horde_Constraint_Coupler
Chuck Hagenbuch [Mon, 28 Sep 2009 18:46:19 +0000 (14:46 -0400)]
Rename Horde_Constraint_Compound to Horde_Constraint_Coupler

16 years agoremove bad method declaration
Chuck Hagenbuch [Mon, 28 Sep 2009 18:33:43 +0000 (14:33 -0400)]
remove bad method declaration