Questions tagged [extending]
302 questions
2
votes
2 answers
Extending Facebook server-side access tokens gracefully
I have an application that used to use offline_access, which obviously needs changing since that's going away.
We use this permission to publish messages to the facebook wall of a user when they interact without our backend through any number of…

Sloloem
- 1,587
- 2
- 15
- 37
1
vote
2 answers
Speed - embedding python in c++ or extending python with c++
I have some big mysql databases with data for calculations and some parts where I need to get data from external websites.
I used python to do the whole thing until now, but what shall I say: its not a speedster.
Now I'm thinking about mixing Python…
user945967
1
vote
2 answers
Extending ATEvent with an ImageField, exists:item_object/image return False
With archetypes.schemaextender I add an ImageField to ATEvent.
The code of extender.py can be found here : http://pastealacon.com/29670
And in the configure.zcml I have this :

Jihaisse
- 977
- 5
- 24
1
vote
1 answer
Good idea/Best way to extend Spine.Model
[background below]
I've got my data modelled out in SQLObject in Python on the back-end. Right now I'm converting an SQLObject to a dict, and grabbing all the keys from the dict and then exporting that as a JSON document (so just a JavaScript…

tkone
- 22,092
- 5
- 54
- 78
1
vote
1 answer
Python and Dynamically Extending C++ Classes
So I'm running into a problem with my custom types, functions and attributes in Python.
When I'm in Python, and I want to set an attribute on one of my custom types (for example Vector4), my code gets a NULL for the const char* attribute_name…

user994201
- 11
- 2
1
vote
1 answer
How to add a search domain to an existing search filter in Odoo?
I added a new title field to a Sales Order.
Now I want to also be able to search by that field in the sales order list view.
If I run the following code, it works, but it seems like an overkill:

MrWater
- 1,797
- 4
- 20
- 47
1
vote
0 answers
Center static textfield with jsfl: strange results
Using Flash CS3, I'm trying to center a static textfield with jsfl after I've altered its text, like so:
textElement.setTextString( text );
fl.outputPanel.trace( 'text width: ' + textElement.width );
textElement.x = -( textElement.width / 2…

Decent Dabbler
- 22,532
- 8
- 74
- 106
1
vote
2 answers
Extending Material UI's existing dark mode colors
Material UI's default theme ships a palette of colors, including a special set of dark colors (docs, code).
What makes these dark mode colors special is components who consume them don't need to depend on knowing the theme's palette.mode (aka…

paws
- 1,263
- 15
- 23
1
vote
2 answers
Replace only one nested block in twig
I have the following twig structure:
base.twig
{% block menu %}
{% include 'menu.twig' %}
{% endblock %}
…

user3507003
- 359
- 4
- 17
1
vote
1 answer
extending jquery (multiple extends) with require.js?
I'm in the process of converting some old website code to utilize AMD and on-demand loading where possible. One of the things I ran across is that the site uses an older version of jquery on some pages (I've figured out how to configure this prior…

Scott
- 7,983
- 2
- 26
- 41
1
vote
2 answers
Complex data structures while embedding\extending Python with C++
Python documentation gives a nice introduction to Extending and Embedding Python with C\C++. However, in many cases there's a need to transfer complex data structures between the languages.
What would be the best way to achieve this?

Jonathan Livni
- 101,334
- 104
- 266
- 359
1
vote
1 answer
How do I directly extend an SCSS parent selector?
I have the following code:
article.featured {
h4 {
margin-bottom: 20px
}
:first-child {
height: 100%;
padding-top: 0;
padding-left: 0;
background-position: center;
background-repeat: no-repeat;
background-size:…

Malekai
- 4,765
- 5
- 25
- 60
1
vote
3 answers
Can I extend Objects with +/- etc?
I tried extending native Objects using operators. It works. Would there be side effects you can think of?
Number.prototype['+++'] = function(n){
return this + (2*n);
};
String.prototype['+'] = function(){
return this +=…

KooiInc
- 119,216
- 31
- 141
- 177
1
vote
3 answers
C++ interface style programming. Need a way out
template
class BaseQueue
{
public :
virtual void push_back(T value) = 0;
//other virtual methods
};
template
class BaseDeque: public virtual BaseQueue
{
public:
virtual void push_front(T value)…

ChessMax
- 2,125
- 1
- 16
- 16
1
vote
0 answers
Why does my python extending type AttrCache runs much slower than dict of python
I try to implement a new Type that has the same function of PyDictObject. But I found that it runs much slower than PyDictObject.
Here is my new Type of python extending.
typedef struct
{
PyObject_HEAD
PyDictObject *m;
} AttrCache;
static…

Christliu
- 35
- 4