Giter Site home page Giter Site logo

Comments (4)

Lematsu avatar Lematsu commented on July 21, 2024

My current idea is:

-for join existing project description:
description = str( {'organization':entry[8], 'contact_name':entry[19], 'contact_email':entry[20]} ) )

-for new project description:
description=str( {'organization': entry[8], 'contact_name':user.first_name + " " + user.last_name, 'contact_email':user.email, 'description':entry[16]} ),

from moc-openstack-tools.

kamfonik avatar kamfonik commented on July 21, 2024
  1. We don't want to update the description when people are joining an existing project, only when they create a new one.

  2. There is no real reason to build a dictionary if you are just going to turn it into a string. I suggest using the string.format() function instead:

description='org: {}, contact_name: {}, ... etc..'.format(entry[8], user.first_name + user.last_name, ... )

from moc-openstack-tools.

Lematsu avatar Lematsu commented on July 21, 2024

Okay thank you for the feedback, this makes a lot more sense

from moc-openstack-tools.

Lematsu avatar Lematsu commented on July 21, 2024

Here's the updated project.description in addusers.py!
description='org: {}, contact_name: {}, contact_email: {}, description: {}'.format(entry[8], user.first_name + " " + user.last_name, user.email, entry[16])

I looked through the repository to find other descriptions that need to be updated, but I believe I did not find any that are relevant.

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.