Giter VIP home page Giter VIP logo

Comments (4)

abalakh avatar abalakh commented on August 16, 2024 1

Spend some today together with @izapolsk and can confirm it was resolved in latest 0.30.3 (but reproducible in previous versions). Now some fixes are needed on our end. Thanks @mshriver @izapolsk !

from widgetastic.core.

mshriver avatar mshriver commented on August 16, 2024

@abalakh this should be fixed by #125, just merged.

This would be a great addition to our unit tests for the table.

from widgetastic.core.

abalakh avatar abalakh commented on August 16, 2024

@mshriver unfortunately, now it's only worse :( That or maybe some next change introduced very weird regression.
Couple of details about that table: initially, when user opens the page, it has 1 row with 1 td with colspan=5. Then user hits 'Add rule' button, and one extra tr appears before mentioned one:
image

Previously (with 0.21.x) it was working ok. Now i can't figure out what's going on:

  • table.read() returns empty list
  • table[0][x] returns the message from that second row with colspan. Same after table.clear_cache()
  • table[0].read() returns a dict with headers as keys and that message as values (would be ok if i was accessing [1] element)
  • table[0][x].position == 0
  • same with table[1][x].position == 0 and .text - it returns message from second row. So, basically, both [0] and [1] rows are pointing to second row
  • attempt to use fill like table[0][4].widget.fill() actually tries to fill [0][0] widget (i guess since it thinks that [0] - is second row, and second row has colspan, so this behavior might be ok)

Original issue with wrong index can be worked around, but i can't find any workaround for this one, basically i need a way to fill that first row somehow.

from widgetastic.core.

mshriver avatar mshriver commented on August 16, 2024

Good to hear @abalakh, all credit to @izapolsk though!! :)

from widgetastic.core.

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.