Giter Site home page Giter Site logo

Comments (10)

zhongyehong avatar zhongyehong commented on July 17, 2024

Done

from docklet.

caodg avatar caodg commented on July 17, 2024

yes it works. but the Delete button is ugly. Is it possible to use only public buttons: Create, Edit, Delete selected items?

from docklet.

zhongyehong avatar zhongyehong commented on July 17, 2024

Done

from docklet.

caodg avatar caodg commented on July 17, 2024

good work.

from docklet.

caodg avatar caodg commented on July 17, 2024

I reopen this issue for two reasons:

  1. The table Admin - Quota uses Bold font, should be normal font.
  2. There should be an nfs quota item, i.e., the disk size the user can have in their global data directory.

from docklet.

caodg avatar caodg commented on July 17, 2024

@zhongyehong

I just tested your code, sadly it failed.

Two problems:

  1. The data field should have a default value, e.g., 100. Currently it is blank.
  2. Can not change default group. Get error message
simplejson.scanner.JSONDecodeError
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

from docklet.

zhongyehong avatar zhongyehong commented on July 17, 2024

1.You can set the value of data in admin page, Is this a problem? I will add default value in upgrade.py later.
2.This problem due to PedroLiu rewrite the httprest.py, I use getvalue method of form before, now should be get, I will fix it soon.
3.About the Bold font, I don't know why it is Bold. I write it the same as other table, but only admin page has this problem.

from docklet.

caodg avatar caodg commented on July 17, 2024
  1. A default value is better.
  2. About upgrade.py, I think it is a bit professional. But, it could be more professional. For example, check the version of original system and determine the upgrade actions. Since we will have many releases, there should be many upgrade actions, each could be very different. This could be done in the future.

from docklet.

caodg avatar caodg commented on July 17, 2024

@zhongyehong

About the commits of #89 , the docklet.conf.template could be changed to the following.

# DATA_QUOTA : whether enable the quota of data volume or not
# True or False, default: False
# DATA_QUOTA=False

# DATA_QUOTA_CMD : the cmd to set the quota of a given directory. It accepts two arguments:
# arg1: the directory name, relative path from the data volume root, e.g, "/users/bob/data"
# arg2: the quota value in GB of string, e.g., "100"
# default: "gluster volume quota docklet-volume limit-usage %s %s"
# DATA_QUOTA_CMD="gluster volume quota docklet-volume limit-usage %s %s"

Also you need to change code accordingly, especially NO changed to False, YES changed to True

from docklet.

zhongyehong avatar zhongyehong commented on July 17, 2024

Done

from docklet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.