by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
✪ vi4m Marcin Kliks
@vi4m
allegro/ralph@be58d08
see this commit
raw_id_fields had to be set
(for @spencewb16_twitter question)
swb
@spencewb16_twitter
thanks for the responses everyone. i thought that was the case, so i added raw_id_fields to EthernetAdmin class (which is where i'm trying to add it on the components tab) in admin.py for assets. However, still no dice
✪ vi4m Marcin Kliks
@vi4m
@xliiv @ar4s any ideas?
xliiv
@xliiv

@spencewb16_twitter it's issue with base_object, because when i did

      class EthernetInline(RalphTabularInline):                                    
          model = Ethernet                                                         
          fields = (                                                               
            'base_object', 'model', #'mac', 'model_name', 'label', 'speed',   
          )                                                                        
          extra = 1                                                                
          raw_id_fields = ['model']                                                
        #formset = NetworkInlineFormset                                          
          form = EthernetLockDeleteForm

this works

blob
xliiv
@xliiv
.. this works for model, but when i add 'base_object' to raw_id_fields this doesn't work and needs debugging
swb
@spencewb16_twitter

@xliiv this is added to admin.py file, or within components.py file? what is 'base_object' field for anway - seems unrelated? can this work with 'label' field within 'class Ethernet(Component)' or not possible?

sorry for so many questions

and what is ethernetlockdeleteform
swb
@spencewb16_twitter
ohhhhh it's the views.py
i m a dummy sorry :( i think i got this tho.... for now..... :smiling_imp:
xliiv
@xliiv
@spencewb16_twitter
yup, it's views.py file..
base_object is a bit abstract.. but in this case it's data-center-asset, like server
ethernetlockdeleteform makes data in form readonly when _dhcp_expose_should_lock_fields is set to True
swb
@spencewb16_twitter
thank you @xliiv! you rock! :guitar:
xliiv
@xliiv
@spencewb16_twitter you're welcome
;P
hosfeld
@hosfeld
Hi all! Any chance to move an asset from backoffice to datacenter (or have an asset in both categtories?)
✪ vi4m Marcin Kliks
@vi4m
Zrzut ekranu 2016-12-15 o 14.19.24.png
oh, we don't have the opposite? mmm
xliiv
@xliiv
@vi4m @hosfeld both way conversion is possible.
if you look at back-office-asset then "convert to data center asset"
if you look at data-center-asset then "convert to back office asset"
Miriam Cox
@marzipanic
Hello. Is this a good place to inquire about installation troubleshooting?
(For Ralph)
✪ vi4m Marcin Kliks
@vi4m
you can ask here
Miriam Cox
@marzipanic
Thanks--
I am currently running Ubuntu 14.04.2 LTS and am trying to install Ralph, but there appears to be an issue installing ralph-core, related to permissions on the ralph_ng account (used automatically in the installation scripts to install a database also called ralph-ng).
When I run "sudo apt-get install ralph-core", I get the following error traceback:
_mysql_exceptions.OperationalError: (1045, "Access denied for user 'ralph_ng'@'localhost' (using password: YES)")
Any idea why access might be denied for that user? I checked the scripts, and it looks like it should be giving the ralph_ng account all privileges in the MySQL database
Just wondering if I need to run the "grant all" command manually through the MySQL interface...
✪ vi4m Marcin Kliks
@vi4m
yes, ralph_ng should have granted all privileges to the database
though we didn't mention about it in in the installation manual ;)
Miriam Cox
@marzipanic
Hmm. I guess I assumed that this would take care of itself since there appears to be a script in "vagrant/provisioning_scripts/init_mysql.sh" that handles set up of the ralph_ng database, and gives permissions
But I guess vagrant isn't running/
(since I didn't specifically set up or install vagrant) so the script probably doesn't execute?
Hmm. Yep. Sorry for the trouble! looks like i just needed to manually run the commands:
✪ vi4m Marcin Kliks
@vi4m
yeah :)
Miriam Cox
@marzipanic
"CREATE DATABASE ralph_ng DEFAULT CHARACTER SET 'utf8';" and "GRANT ALL ON ralph_ng.* TO ralph_ng@'%' IDENTIFIED BY 'ralph_ng';"
✪ vi4m Marcin Kliks
@vi4m
btw, you can improve our docs
Miriam Cox
@marzipanic
I can?
✪ vi4m Marcin Kliks
@vi4m
it will create pull request which we can accept, to fix this issue for new users
Zrzut ekranu 2016-12-15 o 17.35.01.png
and click
on the bottom
that's it
Zrzut ekranu 2016-12-15 o 17.35.46.png
Miriam Cox
@marzipanic
Thanks! I'm new to "Read The Docs" =)
Miriam Cox
@marzipanic
I am updating the installation docs as I go.