Giter Club home page Giter Club logo

Comments (8)

jonashaag avatar jonashaag commented on June 14, 2024 1

Nice! Can we make it like GitHub?

from klaus.

jonashaag avatar jonashaag commented on June 14, 2024

Yes, if anyone wants to work it that would be great!

from klaus.

castellanprime avatar castellanprime commented on June 14, 2024

Hi, I would like to work on this feature. Based on the request, I am trying to decide between two approaches:
(a) A new query string parameter (selections). This allows us to keep the previous single selection instead of overloading the single selection
(b) Overloading the single selection, with something like http://klausdemo.lophus.org/~jonashaag/klaus/blob/master/setup.py#L-18&L-27.

Are this approaches sufficient or is there an approach that would be preferable, in line with the structure of the project.

from klaus.

castellanprime avatar castellanprime commented on June 14, 2024

Oh. Okay. I will look into making it like Github. Thanks.

from klaus.

castellanprime avatar castellanprime commented on June 14, 2024

I am sorry if this question sounds foolish. I wanted to ask how the testing in this project is normally done. I am trying to manually test, that is, view some kind of log of the variables but I am so far unable to do so. First,
(a) I tried using pdb but pdb never reaches the breakpoint I set in views.py.
(b) I tried to using python logging, but the logs are not showing up, Coming from Tornado, i would normally disable the tornado.access module to get the logs that I want, but I do not know module to disable for Flask.
My only recourse now is to write a "unit test" to test my changes.
Is my situation unique and if so, how do I go about resolving it? Thanks.

from klaus.

jonashaag avatar jonashaag commented on June 14, 2024

How do you start Klaus exactly? If you use the CLI the logs should show up in the terminal. Flask also has a very nice debugger. You can also start Klaus using another WSGI server if you want.

from klaus.

castellanprime avatar castellanprime commented on June 14, 2024

I normally start it with the cli, like klaus [dir1] ... What i wanted to was to print not the request logs, the actual application logs. That is, if I put a print statement in the views.py, I want to see it in the consoie logs as well.

from klaus.

jonashaag avatar jonashaag commented on June 14, 2024

That should be exactly what’s happening by default. Are you sure your changes are even effective? Maybe the CLI loads the Klaus modules from some other path outside of the Git checkout? (eg installed with pip)

from klaus.

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.