Exchange of user-created object types
-
Hello,
I'm in the process of creating custom object types for certain device types, mostly derived from the generic "Device" type. The question arose as to whether there were already provided object types somewhere in the forum, on Github or elsewhere, or how one could make the community happy with such object types.Is there already a practice for this? or deployment modalities?
I would like to give something back to the community of i-doit users.
Best regards
Ralf Kühnbaum-Grashorn -
You should consider changing your class to "User" instead of "Users". The list_of_users will then be a list of user objects, instead of a list of names. To implement a changeUser function you probably want to create some kind of variable state which indicates whether a user is currently logged in, and which user it is. It is a better design to split the login handling into a separate class, you could for example call it "LoginHandler".
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login