Questions tagged [chained]

A series of things (events, functions, actions, and etc) connected or following in succession.

168 questions
31
votes
3 answers

Python - Mocking chained function calls

I have the following statement in one of the methods under unit test. db_employees = self.db._session.query(Employee).filter(Employee.dept == new_employee.dept).all() I want db_employees to get mock list of employees. I tried to achieve this…
Pradeep
  • 1,198
  • 3
  • 12
  • 22
16
votes
2 answers

Why does a chained dictionary .get() in python return a tuple when the default provided is not a tuple?

Python 2.6.6 when I call .get on the results of a .get the result is a tuple. This is making no sense to me. Example: box = {}.get('test1',{}).get('test2','hrmm'), print type(box) prints out this makes no sense to me. clearly the…
Blade McCool
  • 163
  • 1
  • 4
16
votes
4 answers

How to chain TFS builds?

I have a scenario where I want to call one TFS build from another, the first one does the build and the second one does staging. This will allow me do multiple custom staging for the same solution. I know, I can pull this off with an exec task in…
user22242
  • 432
  • 3
  • 13
12
votes
3 answers

How to chain animation in android to the same view?

I got some text views and I want to make the buzz effect of MSN. My plan is: take the view, let say 10dip to the left, take it back to its start position after that take it 10dip up then back down back left... and so on. My point is, I have some…
Lukap
  • 31,523
  • 64
  • 157
  • 244
11
votes
1 answer

What's the motive behind Chained Package clauses in Scala?

Chained package clause were introduced in Scala 2.8, as described by Martin Odersky on the Scala site. I don't quite get the intuition behind this. Following was the example in the Scala book for the nested packages: package bobsrockets { …
Monis Iqbal
  • 1,987
  • 7
  • 26
  • 42
10
votes
1 answer

Chained payments and refunds

I have a question regarding chained payments and refunds. We are developing an application that sets up a chained payment, with ourselves as the primary receiver and the provider of the service as the secondary receiver. We provide a mechanism for…
user2314254
  • 121
  • 1
  • 6
10
votes
1 answer

D3.js chain transitions for compound animations for different shapes

What I'm trying to do... I'm toying with D3 to make a compound animation. I have the following final state: Essentially I want to animation connecting the dots - add the first circle. Then draw the line to the second circle. Once the line is drawn,…
Jason McCreary
  • 71,546
  • 23
  • 135
  • 174
9
votes
4 answers

chained msi's/Bootstrapper/prerequisite?

I have a few component MSI packages that need to installed together to form the end application. The problem is: the components that make up the package can be updated and the component relaunched on the http file server. What approach should I…
7
votes
1 answer

SVG stop running chained animation ( tag)

I have an animated SVG where each starts after its previous . The first starts on click or 0s. I have a problem with stopping the animation (without JS, only in XML). I press click, the animation starts. Before the entire…
mihails.kuzmins
  • 1,140
  • 1
  • 11
  • 19
7
votes
6 answers

Jest mocking / spying on Mongoose chained (find, sort, limit, skip) methods

What I am looking to do: spy on the method calls chained onto find() used in a static Model method definition chained methods: sort(), limit(), skip() Sample call goal: to spy on the arguments passed to each of the methods in a static Model…
vampiire
  • 1,111
  • 2
  • 15
  • 27
7
votes
1 answer

Eslint indent with chained methods

How do I configure eslint to: Promise.all(promises) .then(() => { myExampleFunction() }) instead of: Promise.all(promises) .then(() => { myExampleFunction() }) We are using the following eslint packages: "eslint":…
Waltari
  • 1,052
  • 1
  • 30
  • 64
7
votes
1 answer

PayPal API Error -- This payment request must be authorized by the sender

In the delayed chained adaptive Paypal the primary pay is successfully sent when i execute a payment with the pay key it shows an error like this How could i authorize to send amount to secondary from primary receiver PayPal API…
jackyesind
  • 3,343
  • 14
  • 47
  • 74
7
votes
2 answers

Two or more PathParts chained ( Catalyst )

How can I have more than one pathpart in an action at the same time? I tried with Regex and LocalRegex but it realy doesnt work. This is the result I want: /typeone/*/*/something /typetwo/*/*/something I want to achieve this by using only one base…
LuRsT
  • 3,973
  • 9
  • 39
  • 51
6
votes
1 answer

React Select chained options based on another dropdown selected value

Using React Select Async what are the best practices to chain options. What I mean: I have 3 dropdowns the first one is populated from default with option values and the next 2 dropdowns are disabled. Selecting the first dropdown value should…
fefe
  • 8,755
  • 27
  • 104
  • 180
6
votes
2 answers

pandas: Composition for chained methods like .resample(), .rolling() etc

I would like to construct an extension of pandas.DataFrame — let's call it SPDF — which could do stuff above and beyond what a simple DataFrame can: import pandas as pd import numpy as np def to_spdf(func): """Transform generic output of…
Igor Pozdeev
  • 286
  • 2
  • 11
1
2 3
11 12