Vreman, Peter - Acision wrote:
>> Thanks for submitting this.
>>
>> I've noticed a problem with this patch in that it appears to introduce
>> some inconsistent Python tabbing. While I /love/ Python for it's
>> whitespace significance, mixing spaces and tabs can lead to problems
>> with the interpreter, so this is something that must be watched for. For
>> instance, when I'm applying this, I see the warning:
>>
>> [EMAIL PROTECTED] cobbler]$ git apply /tmp/system_actions.diff
>> /tmp/system_actions.diff:23: space before tab in indent.
>>
>> In this case the patch applies as:
>>
>> def system_delete(self,targetlist=None,**args):
>> if not self.__xmlrpc_setup():
>> return self.xmlrpc_auth_failure()
>> if targetlist is None:
>> return self.error_page("Targetlist parameter is REQUIRED.")
>>
>> As you can see, the "if targetlist is None" code can never be executed
>> because it immediately follows the return.
>>
>> I'd also just modify the system_delete method to require the targetlist
>> because it seems to be a code error if it's not supplied, otherwise the
>> user won't understand what a "targetlist" is.
>>
>> If the system delete code works out well, I take it you're going to make
>> all the other object deletes work the same way?
>>
>> This seems like it would be very nice for batch deletes.
>>
>
> The batch operations functionality is the main reason why I created the patch.
>
> The patch can be extended to include all other types profiles/distros/images
> the same way. But before to continue with the other types it is better to
> agree on how the actions will be presented to the user. I quickly made a hack
> with the buttons because it was easy. But there might be other ideas for the
> presentation.
>
It depends how the buttons look. Image buttons are ok, just doing anchor
tags with javascript actions also preserves space. I assume we're
talking about a row of checkboxes and an "apply" at the bottom, rather
than one button for each system that does all the calls when it is clicked?
> Shall I submit a new patch with the spaces fixed?
>
>
Yes, please do. Thanks!
> Regards
> Peter
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any attachment
> and all copies and inform the sender. Thank you.
>
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler