Giter Site home page Giter Site logo

Comments (6)

kamfonik avatar kamfonik commented on August 23, 2024

For those from MOC with access to the private repos, there was some code in this PR (never merged due to other issues) which give one approach for the headers part: https://github.com/CCI-MOC/moc/pull/54

from moc-openstack-tools.

Lematsu avatar Lematsu commented on August 23, 2024

Line 215 in addusers.py
USER_COLUMN = 4
can be
USER_COLUMN = rows[0].index('Email Address')
to be less hard-coded.

Will be looking into the config.py file tomorrow!

from moc-openstack-tools.

kamfonik avatar kamfonik commented on August 23, 2024

@ltomatsu good idea. There is a similar line in set-quotas.py. Can you make the change and submit a PR? If you need help navigating git/Github I can help with that this afternoon.

from moc-openstack-tools.

Lematsu avatar Lematsu commented on August 23, 2024

Could I get access to the quota-sheet to see what I am header index name I am suppose to use?

Also, for the header in config, when loading the header in config, do we want a variable header and functions that can index this variable inside config that can be used as a module?

from moc-openstack-tools.

kamfonik avatar kamfonik commented on August 23, 2024

I gave you read access to the sheet, let me know if it didn't work. For the header, we want to be able to put a line in the config file something like this:

user_column = Email Address

And then if we changed the name of the column in the spreadsheet from "Email Adresss" to "Email" or something, we would just update the config file.

from moc-openstack-tools.

Lematsu avatar Lematsu commented on August 23, 2024

Yes I got the access and I think I understand what should be in the config file.

I made a pull request #65

from moc-openstack-tools.

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.