Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CIRCLE / cloud

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 94
  • Merge Requests 10
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Merged
Merge request !116 opened Jul 07, 2014 by Őry Máté@orymate 
  • Report abuse
Report abuse

Feature Renew Op

🆗 refactor renew to an operation 🆗 token+operation 🆗 view 🆗 Lease acl views @kviktor

  • Discussion 4
  • Commits 26
  • Changes
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Bach Dániel
    @bachdaniel started a discussion on an old version of the diff Jul 09, 2014
    Last updated by Őry Máté Jul 10, 2014
    circle/dashboard/forms.py
    892 choices = kwargs.pop('choices')
    893 default = kwargs.pop('default')
    894 super(VmRenewForm, self).__init__(*args, **kwargs)
    895
    896 self.fields['lease'] = forms.ModelChoiceField(queryset=choices,
    897 initial=default,
    898 required=True,
    899 label=_('Length'))
    900 if len(choices) < 2:
    901 self.fields['lease'].widget = HiddenInput()
    902
    903 def clean_size(self):
    904 size_in_bytes = self.cleaned_data.get("size")
    905 if not size_in_bytes.isdigit() and len(size_in_bytes) > 0:
    906 raise forms.ValidationError(_("Invalid format, you can use "
    907 " GB or MB!"))
    • Bach Dániel @bachdaniel commented Jul 09, 2014
      Owner

      <_VV> 5 gigás megújítás

      Edited Jul 10, 2014
      ~~<_VV> 5 gigás megújítás~~
    • Őry Máté @orymate commented Jul 10, 2014
      Owner

      lol, fixed in c8fe1de

      lol, fixed in c8fe1de
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on an old version of the diff Jul 11, 2014
    circle/vm/models/common.py
    88 95 app_label = 'vm'
    89 96 db_table = 'vm_lease'
    90 97 ordering = ['name', ]
    98 permissions = (
    99 ('create_leases', _('Can create new leases.')),
    100 ('bypass_leases', _('Can set arbitrary expiration times.')),
    • Őry Máté @orymate commented Jul 11, 2014
      Owner

      remove this one

      Edited Jul 11, 2014
      ~~remove this one~~
    Please register or sign in to reply
  • Őry Máté @orymate commented Jul 11, 2014
    Owner

    <bd> kiváló

    Edited Jul 11, 2014
    `<bd> kiváló`
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
3
3 participants
Reference: circle/cloud!116