Questions tagged [depends]

69 questions
0
votes
1 answer

pubspec.yaml have version solving issues. HTML, SVG, RANDOM AVTAR plugins have version issue

after upgrade flutter 3 I am facing this version solving issue. HTML version not sported SVG if I am choosing SVG different version so RANDOM_AVTAR is not sported. both plugin sported or dependent on different version an I need all this how can I…
sonalika
  • 153
  • 1
  • 12
0
votes
1 answer

FastAPI Post request with database depends, object is not callable

For some reason, I am unable to pass a parameter and I get the following error, however, if I were to remove the string, everything behaves properly. If anyone else has come across a such an error please let me know how to resolve it! This is what…
STY
  • 73
  • 1
  • 6
0
votes
0 answers

FastAPI docs does not show dependency parameters in generated documentation request body

I have router in my application that dependency on some function. They both have separate pydantic model as an argument. Problem is when I look at generated documentation, request body only shows parameters from router function argument and ones…
Sharmiko
  • 543
  • 4
  • 21
0
votes
0 answers

Couldn't use gsheets flutter package

I made a flutter app and named it gsheets to test gsheets package and when I tried to download the package it said "Because gsheets depends on gsheets, version solving failed". After wasting about tow hours searching I tried to do it with an other…
0
votes
0 answers

Fastapi - run a function with dependencies outside of request

I have two functions that my code Depends on, also the second one depends on the first. def get_db() -> Iterable[sessionmaker]: db = SessionLocal() try: yield db finally: db.close() def get_someservice(db: Session =…
Paweł Lis
  • 125
  • 8
0
votes
0 answers

fast api depends SQL connection

I'm new in fast api. I'm trying to get user from my table but getting this error: user = await db.query(User).filter(User.login == data['login']).first() AttributeError: 'Depends' object has no attribute 'query' here is my…
Charwisd
  • 53
  • 9
0
votes
1 answer

How to specify cookbook dependencies based on OS?

I am trying to find the best way of managing dependencies which are not available for all OS platforms. Our cookbook is cross-platform, it is aimed at both Linux and Windows systems. One of our recent requirements however, is to add in features that…
0
votes
1 answer

Debian release specific control file

I am a bit confused about the question, Is it possible to control the package dependencies on Debian version specific? In control file we need to specify the dependencies in "Depends" field, So if we want to make a single package for different…
0
votes
1 answer

How can i get a specific item of a Selection field. Odoo 8

I need help in something what i want to achieve in Odoo 8. I have 2 selection. A and B. Depending on the value chosen in the selection A i need to show a specific value in the selection B. A piece of code for more clarify: selection_A =…
Osmani
  • 35
  • 8
0
votes
1 answer

parameterized depends targets in ant

I am working on a ant build script to deploy jars. i.e. to just update the final/beta application jar in specified folder. Its checks if the deployed jar is already up-to-date. If yes, it skips running the target using unless flag. Below is the…
Kuldeep Singh
  • 1,214
  • 4
  • 18
  • 45
0
votes
1 answer

how can we change the state value in a depends method?

how can we change the state value in a @api.depends method ? I tried the return {'value':{'stat':'done'}} and self.state='done' didn't work then self.browse(self.id).write({'state':'done' }) worked but on instant, we have to return to the list…
m3asmi
  • 1,252
  • 1
  • 16
  • 36
0
votes
0 answers

Using depends with ( "selector" ).rules( 'add', { .... } )

In my form the zipcode input comes before the State input. Therefore, I want to validate my zipcode only after my State input has been filled out. I have gotten the remote part to work. I have not been able to figure out how to use the "depends"…
ermSO
  • 325
  • 1
  • 2
  • 12
0
votes
1 answer

How can I define dependencies between INSTALLS targets in qmake?

I have several modules that I want to install (make install step) using qmake's INSTALLS: INSTALLS = module1 module2 module3. These install from different source folders, to same destination folder tree. Till now all nice and good... But when…
mBardos
  • 2,872
  • 1
  • 19
  • 16
0
votes
1 answer

Dynamic menu configuration section with conditional inputs on Magento custom module

I've followed this tutorial to create a custom dynamic backend configuration with serialized data, and everything is working as expected. yay But now I want to take another step and only show some inputs when a specific value is selected in a select…
Pablo
  • 510
  • 8
  • 22
0
votes
0 answers

jquery validation required depends

I'm using https://jqueryvalidation.org to validate my form. Now I have an input for IBAN, which is not required, only if another field is filled. But WHEN it is required, I want to start the IBAN-Check. When it's not required, I don't want the…
MrLumbergh
  • 63
  • 1
  • 9