Re: [Postfixadmin-devel] writing a 3rd party user insert
Brought to you by:
christian_boltz,
gingerdog
From: Christian B. <pos...@cb...> - 2013-10-03 18:24:36
|
Hello, Am Donnerstag, 3. Oktober 2013 schrieb Brad: > Wow, thank you. > That's exactly what I was looking for. :-) > I write code too and will look into the delete issue because that will > be needed to, but you already solved my issue. I'll happily accept your patch ;-) If you implement it, please do it in the following way: a) in scripts/shells/shell.php, function loadTasks(), there is already (line 210) if ($taskName == 'Add' || $taskName == 'Update') { $taskClass = 'CliEdit'; Please add directly below: } elseif ($taskName == 'Delete') { $taskClass = 'CliDelete'; b) The next step is to write a model/CliDelete.php (similar to model/CliEdit.php) that uses the $somethingHandler (model/*Handler.php) to delete $something c) Finally model/*Handler.php will need delete() functions added or fixed (see the TODO notes there, and delete.php for the currently used code) d) (optional cleanup) Delete the then superfluous DeleteTask classes from scripts/shells/*.php Regards, Christian Boltz -- > [perl -pi -e] Das erspart es einem, selber die Dateien zu kopieren: sed hat inzwischen auch einen -i Parameter. Willkommen in 2005, David ;) [> David Haller und Peter Wiersig in suse-linux] |